commit | 72264697be0a770147bded3d231b7016622a7707 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 07 11:44:51 2019 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 07 11:46:27 2019 +0530 |
tree | f219d5b0f55b08bda2b4c6bfa1b95b555ce3311e | |
parent | 3fa54905a23cf7c395bedb800c524b5fe21e5509 [diff] |
fix: Not able to save salary slip
diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.py b/erpnext/hr/doctype/salary_slip/salary_slip.py index 6bba0c5..7b2fa36 100644 --- a/erpnext/hr/doctype/salary_slip/salary_slip.py +++ b/erpnext/hr/doctype/salary_slip/salary_slip.py
@@ -446,7 +446,7 @@ 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