mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
[Minor] Show only active driver in Delivery Trip
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user