Skip to content

Commit

Permalink
fix (pos closing entry): validation for 100 pc discount on pos invoice (
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanilsaha authored Dec 27, 2024
1 parent 4f29908 commit cfcc24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def validate_pos_return(self):
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):
Expand Down

0 comments on commit cfcc24a

Please sign in to comment.