fix(bill_delay):remove overlapping from all total

This commit is contained in:
shahzeydyfah
2025-05-29 14:02:31 +03:30
parent 3d792554b7
commit 106a6bb3d6
+2
View File
@@ -52,6 +52,8 @@ class BillDelayRepository(BaseRepository):
all_total += coding.extra_new_work
if coding.other:
all_total += coding.other
if coding.overlapping:
all_total -= coding.overlapping
if all_total:
coding.total_day = all_total
return coding