fix: component pay calculation

This commit is contained in:
Rucha Mahabal
2022-05-11 16:43:13 +05:30
committed by Nabin Hait
parent 34925a3a8c
commit 2b65c9616f
2 changed files with 14 additions and 10 deletions

View File

@@ -253,6 +253,7 @@ def make_salary_slip(
source_name,
target_doc=None,
employee=None,
posting_date=None,
as_print=False,
print_format=None,
for_preview=0,
@@ -269,6 +270,9 @@ def make_salary_slip(
target.designation = employee_details.designation
target.department = employee_details.department
if posting_date:
target.posting_date = posting_date
target.run_method("process_salary_structure", for_preview=for_preview)
doc = get_mapped_doc(