Merge pull request #38440 from rtdany10/pe-split-message

fix(pe): show split alert only on splitting
This commit is contained in:
ruthra kumar
2023-12-01 12:39:39 +05:30
committed by GitHub

View File

@@ -1691,6 +1691,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)