fix(Salary Slip): Consider Leave without Pay for calculation (#17023)

Please read the pull request checklist to make sure your changes are merged: https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist
This commit is contained in:
Himanshu 2019-03-29 18:32:23 +05:30 committed by Faris Ansari
parent 92797eee87
commit 6b54649bfe

View File

@ -452,7 +452,7 @@ class SalarySlip(TransactionBase):
self.set_loan_repayment()
self.net_pay = flt(self.gross_pay) - (flt(self.total_deduction) + flt(self.total_loan_repayment))
self.net_pay = (flt(self.gross_pay) - (flt(self.total_deduction) + flt(self.total_loan_repayment))) * flt(self.payment_days / self.total_working_days)
self.rounded_total = rounded(self.net_pay,
self.precision("net_pay") if disable_rounded_total else 0)