mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
fix: account & cost center filter by company
This commit is contained in:
@@ -3,6 +3,22 @@
|
|||||||
|
|
||||||
frappe.ui.form.on('Shipping Rule', {
|
frappe.ui.form.on('Shipping Rule', {
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
frm.set_query("cost_center", function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
company: frm.doc.company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
frm.set_query("account", function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
company: frm.doc.company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
frm.trigger('toggle_reqd');
|
frm.trigger('toggle_reqd');
|
||||||
},
|
},
|
||||||
calculate_based_on: function(frm) {
|
calculate_based_on: function(frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user