mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Merge pull request #50889 from frappe/mergify/bp/version-15-hotfix/pr-50888
fix: cost center not reset (backport #50888)
This commit is contained in:
@@ -1093,6 +1093,14 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
this.frm.refresh_field("payment_schedule");
|
this.frm.refresh_field("payment_schedule");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cost_center(doc) {
|
||||||
|
this.frm.doc.items.forEach((item) => {
|
||||||
|
item.cost_center = doc.cost_center;
|
||||||
|
});
|
||||||
|
|
||||||
|
this.frm.refresh_field("items");
|
||||||
|
}
|
||||||
|
|
||||||
due_date(doc, cdt, cdn) {
|
due_date(doc, cdt, cdn) {
|
||||||
// due_date is to be changed, payment terms template and/or payment schedule must
|
// due_date is to be changed, payment terms template and/or payment schedule must
|
||||||
// be removed as due_date is automatically changed based on payment terms
|
// be removed as due_date is automatically changed based on payment terms
|
||||||
|
|||||||
Reference in New Issue
Block a user