[Fix] Purchase invoice validation issue
This commit is contained in:
parent
8fa2a04024
commit
3485d2467a
@ -71,7 +71,7 @@ class PurchaseInvoice(BuyingController):
|
|||||||
frappe.throw(_("Cash or Bank Account is mandatory for making payment entry"))
|
frappe.throw(_("Cash or Bank Account is mandatory for making payment entry"))
|
||||||
|
|
||||||
if flt(self.paid_amount) + flt(self.write_off_amount) \
|
if flt(self.paid_amount) + flt(self.write_off_amount) \
|
||||||
- flt(self.base_grand_total) > 1/(10**(self.precision("base_grand_total") + 1)):
|
- flt(self.grand_total) > 1/(10**(self.precision("base_grand_total") + 1)):
|
||||||
frappe.throw(_("""Paid amount + Write Off Amount can not be greater than Grand Total"""))
|
frappe.throw(_("""Paid amount + Write Off Amount can not be greater than Grand Total"""))
|
||||||
|
|
||||||
def create_remarks(self):
|
def create_remarks(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user