Query for warehouse and editable fields in grid
diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js
index ead110c..61e36e6 100644
--- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js
+++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js
@@ -15,6 +15,12 @@
}
}
});
+
+ if (frm.doc.company) {
+ erpnext.queries.setup_queries(frm, "Warehouse", function() {
+ return erpnext.queries.warehouse(frm.doc);
+ });
+ }
},
refresh: function(frm) {
@@ -132,6 +138,13 @@
}
}
}
+
+ this.frm.get_field('items').grid.editable_fields = [
+ {fieldname: 'item_code', columns: 3},
+ {fieldname: 'warehouse', columns: 3},
+ {fieldname: 'qty', columns: 2},
+ {fieldname: 'valuation_rate', columns: 3}
+ ];
},
refresh: function() {