fix(Salary Slip): TypeError while clearing any amount field in components (#29931)
This commit is contained in:
parent
4738367d64
commit
d011a3f82c
@ -1268,7 +1268,7 @@ class SalarySlip(TransactionBase):
|
|||||||
for i, earning in enumerate(self.earnings):
|
for i, earning in enumerate(self.earnings):
|
||||||
if earning.salary_component == salary_component:
|
if earning.salary_component == salary_component:
|
||||||
self.earnings[i].amount = wages_amount
|
self.earnings[i].amount = wages_amount
|
||||||
self.gross_pay += self.earnings[i].amount
|
self.gross_pay += flt(self.earnings[i].amount, earning.precision("amount"))
|
||||||
self.net_pay = flt(self.gross_pay) - flt(self.total_deduction)
|
self.net_pay = flt(self.gross_pay) - flt(self.total_deduction)
|
||||||
|
|
||||||
def compute_year_to_date(self):
|
def compute_year_to_date(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user