fix (pos closing entry): validation for 100 pc discount on pos invoice (#44899)

This commit is contained in:
Diptanil Saha
2024-12-27 11:34:41 +05:30
committed by GitHub
parent 4f29908aa9
commit cfcc24a341

View File

@@ -506,7 +506,7 @@ class SalesInvoice(SellingController):
frappe.throw(_("Total payments amount can't be greater than {}").format(-invoice_total))
def validate_pos_paid_amount(self):
if len(self.payments) == 0 and self.is_pos:
if len(self.payments) == 0 and self.is_pos and flt(self.grand_total) > 0:
frappe.throw(_("At least one mode of payment is required for POS invoice."))
def check_if_consolidated_invoice(self):