fix: indentation
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index 421d44b..905f6fb 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -161,7 +161,7 @@
}
if (this.frm.fields_dict["items"].grid.get_field("cost_center")) {
this.frm.set_query("cost_center", "items", function(doc) {
- return {
+ return {
filters: {
"company": doc.company,
"is_group": 0
@@ -170,9 +170,9 @@
});
}
- 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) {
- return {
+ return {
filters: {
"company": doc.company
}
@@ -180,7 +180,6 @@
});
}
-
if(frappe.meta.get_docfield(this.frm.doc.doctype, "pricing_rules")) {
this.frm.set_indicator_formatter('pricing_rule', function(doc) {
return (doc.rule_applied) ? "green" : "red";