From e9cf5cb4b0118d50dee2e38339285c06722cec2f Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Thu, 5 May 2022 10:47:06 -0400 Subject: [PATCH] feat: add prompt qty flag to pick list --- erpnext/stock/doctype/pick_list/pick_list.js | 3 ++- erpnext/stock/doctype/pick_list/pick_list.json | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.js b/erpnext/stock/doctype/pick_list/pick_list.js index 70e530cbfe0..82663e3f02d 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.js +++ b/erpnext/stock/doctype/pick_list/pick_list.js @@ -165,7 +165,8 @@ frappe.ui.form.on('Pick List', { items_table_name: 'locations', qty_field: 'picked_qty', max_qty_field: 'qty', - dont_allow_new_row: true + dont_allow_new_row: true, + prompt_qty: frm.doc.prompt_qty }; const barcode_scanner = new erpnext.utils.BarcodeScanner(opts); barcode_scanner.process_scan(); diff --git a/erpnext/stock/doctype/pick_list/pick_list.json b/erpnext/stock/doctype/pick_list/pick_list.json index f2d7543cae9..28cd5df8368 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.json +++ b/erpnext/stock/doctype/pick_list/pick_list.json @@ -20,6 +20,7 @@ "scan_barcode", "column_break_13", "scan_mode", + "prompt_qty", "section_break_15", "locations", "amended_from", @@ -151,11 +152,17 @@ "fieldname": "scan_mode", "fieldtype": "Check", "label": "Scan Mode" + }, + { + "default": "0", + "fieldname": "prompt_qty", + "fieldtype": "Check", + "label": "Prompt Qty" } ], "is_submittable": 1, "links": [], - "modified": "2022-05-04 11:12:48.044239", + "modified": "2022-05-05 09:50:36.252445", "modified_by": "Administrator", "module": "Stock", "name": "Pick List",