fix: cost center should only show option of selectedcompany
This commit is contained in:
parent
5f299a08bd
commit
3819c0bf28
@ -113,6 +113,14 @@ cur_frm.cscript.calculate_total_amount = function(doc,cdt,cdn){
|
|||||||
cur_frm.cscript.calculate_total(doc,cdt,cdn);
|
cur_frm.cscript.calculate_total(doc,cdt,cdn);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cur_frm.fields_dict['cost_center'].get_query = function(doc) {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
"company": doc.company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
erpnext.expense_claim = {
|
erpnext.expense_claim = {
|
||||||
set_title: function(frm) {
|
set_title: function(frm) {
|
||||||
if (!frm.doc.task) {
|
if (!frm.doc.task) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user