mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix(buying): fetch Cost Center from Project
(cherry picked from commit bdabcb081a)
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
// License: GNU General Public License v3. See license.txt
|
// License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
frappe.provide("erpnext.buying");
|
frappe.provide("erpnext.buying");
|
||||||
// cur_frm.add_fetch('project', 'cost_center', 'cost_center');
|
|
||||||
|
|
||||||
erpnext.buying = {
|
erpnext.buying = {
|
||||||
setup_buying_controller: function() {
|
setup_buying_controller: function() {
|
||||||
@@ -11,6 +10,7 @@ erpnext.buying = {
|
|||||||
super.setup();
|
super.setup();
|
||||||
this.toggle_enable_for_stock_uom("allow_to_edit_stock_uom_qty_for_purchase");
|
this.toggle_enable_for_stock_uom("allow_to_edit_stock_uom_qty_for_purchase");
|
||||||
this.frm.email_field = "contact_email";
|
this.frm.email_field = "contact_email";
|
||||||
|
this.frm.add_fetch("project", "cost_center", "cost_center");
|
||||||
}
|
}
|
||||||
|
|
||||||
onload(doc, cdt, cdn) {
|
onload(doc, cdt, cdn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user