Stock reconciliation: cost center filters

This commit is contained in:
Nabin Hait 2014-01-31 17:05:09 +05:30
parent 759f9ee973
commit d7fb6dce89

View File

@ -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'
}
}
}
}
},