fix: create Delivery Trip from Delivery Note list
(cherry picked from commit 6c6195bae6)
This commit is contained in:
@@ -14,7 +14,7 @@ frappe.listview_settings['Delivery Note'] = {
|
|||||||
return [__("Completed"), "green", "per_billed,=,100"];
|
return [__("Completed"), "green", "per_billed,=,100"];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onload: function (listview) {
|
onload: function (doclist) {
|
||||||
const action = () => {
|
const action = () => {
|
||||||
const selected_docs = doclist.get_checked_items();
|
const selected_docs = doclist.get_checked_items();
|
||||||
const docnames = doclist.get_checked_items(true);
|
const docnames = doclist.get_checked_items(true);
|
||||||
@@ -56,14 +56,14 @@ frappe.listview_settings['Delivery Note'] = {
|
|||||||
|
|
||||||
// doclist.page.add_actions_menu_item(__('Create Delivery Trip'), action, false);
|
// doclist.page.add_actions_menu_item(__('Create Delivery Trip'), action, false);
|
||||||
|
|
||||||
listview.page.add_action_item(__('Create Delivery Trip'), action);
|
doclist.page.add_action_item(__('Create Delivery Trip'), action);
|
||||||
|
|
||||||
listview.page.add_action_item(__("Sales Invoice"), ()=>{
|
doclist.page.add_action_item(__("Sales Invoice"), ()=>{
|
||||||
erpnext.bulk_transaction_processing.create(listview, "Delivery Note", "Sales Invoice");
|
erpnext.bulk_transaction_processing.create(doclist, "Delivery Note", "Sales Invoice");
|
||||||
});
|
});
|
||||||
|
|
||||||
listview.page.add_action_item(__("Packaging Slip From Delivery Note"), ()=>{
|
doclist.page.add_action_item(__("Packaging Slip From Delivery Note"), ()=>{
|
||||||
erpnext.bulk_transaction_processing.create(listview, "Delivery Note", "Packing Slip");
|
erpnext.bulk_transaction_processing.create(doclist, "Delivery Note", "Packing Slip");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user