fix: Validation for receivingfrom customer against negative outstanding

This commit is contained in:
Deepesh Garg
2021-08-10 14:04:31 +05:30
parent 8da3a5cdd4
commit c26f95e3b2
2 changed files with 9 additions and 5 deletions

View File

@@ -559,7 +559,7 @@ def remove_ref_doc_link_from_pe(ref_type, ref_no):
except Exception as e:
msg = _("There were issues unlinking payment entry {0}.").format(pe_doc.name)
msg += '<br>'
msg += _("Please cancel payment entry manually first and then resubmit")
msg += _("Please cancel payment entry manually first")
frappe.throw(msg, title=_("Payment Unlink Error"))
frappe.db.sql("""update `tabPayment Entry` set total_allocated_amount=%s,