mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 05:32:46 +01:00
fix(pe): show split alert only on splitting
This commit is contained in:
@@ -1703,12 +1703,13 @@ def split_invoices_based_on_payment_terms(outstanding_invoices, company) -> list
|
|||||||
if not split_rows:
|
if not split_rows:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
frappe.msgprint(
|
if len(split_rows) > 1:
|
||||||
_("Splitting {0} {1} into {2} rows as per Payment Terms").format(
|
frappe.msgprint(
|
||||||
_(entry.voucher_type), frappe.bold(entry.voucher_no), len(split_rows)
|
_("Splitting {0} {1} into {2} rows as per Payment Terms").format(
|
||||||
),
|
_(entry.voucher_type), frappe.bold(entry.voucher_no), len(split_rows)
|
||||||
alert=True,
|
),
|
||||||
)
|
alert=True,
|
||||||
|
)
|
||||||
outstanding_invoices_after_split += split_rows
|
outstanding_invoices_after_split += split_rows
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user