Merge pull request #38788 from barredterra/bp-38440

fix(pe): show split alert only on splitting (backport #38440)
This commit is contained in:
Raffael Meyer
2023-12-15 16:26:33 +01:00
committed by GitHub

View File

@@ -1703,6 +1703,7 @@ def split_invoices_based_on_payment_terms(outstanding_invoices, company) -> list
if not split_rows: if not split_rows:
continue continue
if len(split_rows) > 1:
frappe.msgprint( frappe.msgprint(
_("Splitting {0} {1} into {2} rows as per Payment Terms").format( _("Splitting {0} {1} into {2} rows as per Payment Terms").format(
_(entry.voucher_type), frappe.bold(entry.voucher_no), len(split_rows) _(entry.voucher_type), frappe.bold(entry.voucher_no), len(split_rows)