diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js index 48f3e458633..b12b38a3613 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js @@ -40,6 +40,14 @@ erpnext.stock.StockReconciliation = erpnext.stock.StockController.extend({ } } } + this.frm.fields_dict["cost_center"].get_query = function() { + return { + "filters": { + 'company': me.frm.doc.company, + 'group_or_ledger': 'Ledger' + } + } + } } },