mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix (pos closing entry): validation for 100 pc discount on pos invoice (#44899)
(cherry picked from commit cfcc24a341)
Co-authored-by: Diptanil Saha <50792171+diptanilsaha@users.noreply.github.com>
This commit is contained in:
@@ -507,7 +507,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):
|
||||
|
||||
Reference in New Issue
Block a user