Merge pull request #13979 from KanchanChauhan/driver-filter

[Minor] Show only active driver in Delivery Trip
This commit is contained in:
rohitwaghchaure 2018-05-10 12:36:42 +05:30 committed by GitHub
commit fdb7156c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {