fix(bill_delay):remove overlapping from all total
This commit is contained in:
@@ -52,6 +52,8 @@ class BillDelayRepository(BaseRepository):
|
|||||||
all_total += coding.extra_new_work
|
all_total += coding.extra_new_work
|
||||||
if coding.other:
|
if coding.other:
|
||||||
all_total += coding.other
|
all_total += coding.other
|
||||||
|
if coding.overlapping:
|
||||||
|
all_total -= coding.overlapping
|
||||||
if all_total:
|
if all_total:
|
||||||
coding.total_day = all_total
|
coding.total_day = all_total
|
||||||
return coding
|
return coding
|
||||||
|
|||||||
Reference in New Issue
Block a user