Skip to content

Commit 127f63e

Browse files
committed
fix: total calculation
1 parent 31acaed commit 127f63e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def set_total_asset_recovery_cost(self):
8080
total_cost = 0
8181
for data in self.assets_allocated:
8282
if data.action == "Recover Cost":
83-
total_cost += data.cost
83+
total_cost += flt(data.cost)
8484

8585
self.total_asset_recovery_cost = flt(total_cost, self.precision("total_asset_recovery_cost"))
8686

8787
def set_totals(self):
88-
total_payable = sum(row.amount for row in self.payables)
89-
total_receivable = sum(row.amount for row in self.receivables)
88+
total_payable = sum(flt(row.amount) for row in self.payables)
89+
total_receivable = sum(flt(row.amount) for row in self.receivables)
9090

9191
self.total_payable_amount = flt(total_payable, self.precision("total_payable_amount"))
9292
self.total_receivable_amount = flt(

0 commit comments

Comments
 (0)