mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
committed by
mergify-bot
parent
ad0aca2fc6
commit
104b317929
@@ -160,7 +160,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
}
|
}
|
||||||
if (this.frm.fields_dict["items"].grid.get_field("cost_center")) {
|
if (this.frm.fields_dict["items"].grid.get_field("cost_center")) {
|
||||||
this.frm.set_query("cost_center", "items", function(doc) {
|
this.frm.set_query("cost_center", "items", function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
"company": doc.company,
|
"company": doc.company,
|
||||||
"is_group": 0
|
"is_group": 0
|
||||||
@@ -169,9 +169,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.frm.fields_dict["items"].grid.get_field("expense_account")) {
|
if (this.frm.fields_dict["items"].grid.get_field("expense_account")) {
|
||||||
this.frm.set_query("expense_account", "items", function(doc) {
|
this.frm.set_query("expense_account", "items", function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
"company": doc.company
|
"company": doc.company
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(frappe.meta.get_docfield(this.frm.doc.doctype, "pricing_rules")) {
|
if(frappe.meta.get_docfield(this.frm.doc.doctype, "pricing_rules")) {
|
||||||
this.frm.set_indicator_formatter('pricing_rule', function(doc) {
|
this.frm.set_indicator_formatter('pricing_rule', function(doc) {
|
||||||
return (doc.rule_applied) ? "green" : "red";
|
return (doc.rule_applied) ? "green" : "red";
|
||||||
|
|||||||
Reference in New Issue
Block a user