Update sales_invoice.py

This commit is contained in:
Nabin Hait 2018-08-31 14:56:16 +05:30 committed by GitHub
parent 3c56aa9c1d
commit 1b73505391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -999,7 +999,7 @@ class SalesInvoice(SellingController):
def verify_payment_amount_is_negative(self):
for entry in self.payments:
if entry.amount > 0:
frappe.throw(_("Row #{0} (Payment Table): Amount must be negative").format(entry.idx))
frappe.throw(_("Row #{0} (Payment Table): Amount must be negative").format(entry.idx))
# collection of the loyalty points, create the ledger entry for that.
def make_loyalty_point_entry(self):