fix: Not able to save salary slip

This commit is contained in:
Rohit Waghchaure
2019-06-07 11:44:51 +05:30
parent e0333c0756
commit d72f4d7959

View File

@@ -443,7 +443,7 @@ class SalarySlip(TransactionBase):
else:
component_row.additional_amount = amount
if not overwrite:
if not overwrite and component_row.default_amount:
amount += component_row.default_amount
component_row.amount = amount