mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
Merge branch 'stable'
This commit is contained in:
@@ -378,7 +378,7 @@ class DocType(TransactionBase):
|
|||||||
if not self.doc.cash_bank_account:
|
if not self.doc.cash_bank_account:
|
||||||
msgprint("Cash/Bank Account is mandatory for POS entry")
|
msgprint("Cash/Bank Account is mandatory for POS entry")
|
||||||
raise Exception
|
raise Exception
|
||||||
if (flt(self.doc.paid_amount) + flt(self.doc.write_off_amount) - flt(self.doc.grand_total))>0.001:
|
if (flt(self.doc.paid_amount) + flt(self.doc.write_off_amount) - round(flt(self.doc.grand_total), 2))>0.001:
|
||||||
msgprint("(Paid amount + Write Off Amount) can not be greater than Grand Total")
|
msgprint("(Paid amount + Write Off Amount) can not be greater than Grand Total")
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user