Merge pull request #40051 from barredterra/transaction-due-date-translatability

This commit is contained in:
Raffael Meyer 2024-02-22 18:43:19 +01:00 committed by GitHub
commit 2e0aaf3521
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -960,11 +960,16 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
to_clear.push("Payment Schedule Table");
}
frappe.msgprint(
frappe.confirm(
__(
"Please clear the selected {0}",
"Do you want to clear the selected {0}?",
[frappe.utils.comma_and(to_clear.map(dt => __(dt)))]
)
),
() => {
this.frm.set_value("payment_terms_template", "");
this.frm.clear_table("payment_schedule");
this.frm.refresh_field("payment_schedule");
}
);
}
}