mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
revert: wrong formula
This commit is contained in:
@@ -454,7 +454,7 @@ class SalarySlip(TransactionBase):
|
|||||||
|
|
||||||
self.net_pay = 0
|
self.net_pay = 0
|
||||||
if self.total_working_days:
|
if self.total_working_days:
|
||||||
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.net_pay = flt(self.gross_pay) - (flt(self.total_deduction) + flt(self.total_loan_repayment))
|
||||||
|
|
||||||
self.rounded_total = rounded(self.net_pay,
|
self.rounded_total = rounded(self.net_pay,
|
||||||
self.precision("net_pay") if disable_rounded_total else 0)
|
self.precision("net_pay") if disable_rounded_total else 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user