Skip to content

Commit

Permalink
fix: create Delivery Trip from Delivery Note list
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Feb 15, 2023
1 parent d3ff289 commit 6c6195b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions erpnext/stock/doctype/delivery_note/delivery_note_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ frappe.listview_settings['Delivery Note'] = {
return [__("Completed"), "green", "per_billed,=,100"];
}
},
onload: function (listview) {
onload: function (doclist) {
const action = () => {
const selected_docs = doclist.get_checked_items();
const docnames = doclist.get_checked_items(true);
Expand Down Expand Up @@ -56,14 +56,14 @@ frappe.listview_settings['Delivery Note'] = {

// 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"), ()=>{
erpnext.bulk_transaction_processing.create(listview, "Delivery Note", "Sales Invoice");
doclist.page.add_action_item(__("Sales Invoice"), ()=>{
erpnext.bulk_transaction_processing.create(doclist, "Delivery Note", "Sales Invoice");
});

listview.page.add_action_item(__("Packaging Slip From Delivery Note"), ()=>{
erpnext.bulk_transaction_processing.create(listview, "Delivery Note", "Packing Slip");
doclist.page.add_action_item(__("Packaging Slip From Delivery Note"), ()=>{
erpnext.bulk_transaction_processing.create(doclist, "Delivery Note", "Packing Slip");
});
}
};

0 comments on commit 6c6195b

Please sign in to comment.