Query for warehouse and editable fields in grid
This commit is contained in:
parent
f3090b01c1
commit
5f82a5387d
@ -15,6 +15,12 @@ frappe.ui.form.on("Stock Reconciliation", {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (frm.doc.company) {
|
||||
erpnext.queries.setup_queries(frm, "Warehouse", function() {
|
||||
return erpnext.queries.warehouse(frm.doc);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
refresh: function(frm) {
|
||||
@ -132,6 +138,13 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user