Skip to content

Commit

Permalink
fix: set default to zero on salary component. (#552)
Browse files Browse the repository at this point in the history
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
  • Loading branch information
Lucky-Tsuma and ruchamahabal committed May 31, 2023
1 parent f8bb10c commit d846d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/payroll/doctype/salary_slip/salary_slip.py
Expand Up @@ -956,7 +956,7 @@ def add_structure_components(self, component_type):
# update statitical component amount in reference data based on payment days
# since row for statistical component is not added to salary slip

self.default_data[struct_row.abbr] = amount
self.default_data[struct_row.abbr] = flt(amount)
if struct_row.depends_on_payment_days:
joining_date, relieving_date = self.get_joining_and_relieving_dates()
payment_days_amount = (
Expand Down

0 comments on commit d846d84

Please sign in to comment.