mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
[minor] validate invoice number is selected in Payment Reconciliation
This commit is contained in:
@@ -141,6 +141,9 @@ class PaymentReconciliation(Document):
|
|||||||
|
|
||||||
def reconcile(self, args):
|
def reconcile(self, args):
|
||||||
for e in self.get('payments'):
|
for e in self.get('payments'):
|
||||||
|
if not e.invoice_number:
|
||||||
|
frappe.throw(_("Row {0}: Please select Invoice Number for reconcilation").format(e.idx))
|
||||||
|
|
||||||
if " | " in e.invoice_number:
|
if " | " in e.invoice_number:
|
||||||
e.invoice_type, e.invoice_number = e.invoice_number.split(" | ")
|
e.invoice_type, e.invoice_number = e.invoice_number.split(" | ")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user