[Minor] Show only active driver in Delivery Trip

This commit is contained in:
Kanchan Chauhan 2018-05-10 10:42:56 +05:30
parent fbe548e4be
commit d560da950d

View File

@ -3,6 +3,14 @@
frappe.ui.form.on('Delivery Trip', {
setup: function(frm) {
frm.set_query("driver", function() {
return {
filters: {
"status": "Active"
}
};
});
frm.set_query("address", "delivery_stops", function(doc, cdt, cdn) {
var row = locals[cdt][cdn];
if (row.customer) {