Merge pull request #23709 from marination/cashier-closing-type-issue

fix: Cashier Closing Type Issue
This commit is contained in:
Marica 2020-10-23 14:43:18 +05:30 committed by GitHub
commit 99dfbfc365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ class CashierClosing(Document):
for i in self.payments:
total += flt(i.amount)
self.net_amount = total + self.outstanding_amount + self.expense - self.custody + self.returns
self.net_amount = total + self.outstanding_amount + flt(self.expense) - flt(self.custody) + flt(self.returns)
def validate_time(self):
if self.from_time >= self.time: