Skip to content

Commit

Permalink
feat: add prompt qty flag to pick list
Browse files Browse the repository at this point in the history
  • Loading branch information
dj12djdjs committed May 5, 2022
1 parent 0a77c28 commit e9cf5cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion erpnext/stock/doctype/pick_list/pick_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
9 changes: 8 additions & 1 deletion erpnext/stock/doctype/pick_list/pick_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"scan_barcode",
"column_break_13",
"scan_mode",
"prompt_qty",
"section_break_15",
"locations",
"amended_from",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e9cf5cb

Please sign in to comment.