Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow salary slip preview for draft salary structure assignments #1827

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Vikas8600
Copy link

@Vikas8600 Vikas8600 commented May 30, 2024

Description:
This PR introduces functionality to preview salary slips for draft salary structure assignments. It includes the following changes:

  •     Updates the make_salary_slip to fetch and display the file content in an HTML table cell.
    
  •     Implements a feature to allow users to preview salary slips before finalizing the salary structure.
    

Issue: #1823

@@ -725,14 +725,14 @@ def add_earning_for_hourly_wages(self, doc, salary_component, amount):
}
doc.append("earnings", wages_row)

def set_salary_structure_assignment(self):
def set_salary_structure_assignment(self,docstatus=1):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also allow passing any custom salary structure assignment?
Just passing in draft would not allow use the preview salary slip for a particular salary structure assignment

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@chromonav
Copy link

Also we will need to do changes in the exposed API.

@ruchamahabal ruchamahabal self-assigned this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants