feat: add prompt qty flag to pick list
This commit is contained in:
parent
0a77c28594
commit
e9cf5cb4b0
@ -165,7 +165,8 @@ frappe.ui.form.on('Pick List', {
|
|||||||
items_table_name: 'locations',
|
items_table_name: 'locations',
|
||||||
qty_field: 'picked_qty',
|
qty_field: 'picked_qty',
|
||||||
max_qty_field: '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);
|
const barcode_scanner = new erpnext.utils.BarcodeScanner(opts);
|
||||||
barcode_scanner.process_scan();
|
barcode_scanner.process_scan();
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
"scan_barcode",
|
"scan_barcode",
|
||||||
"column_break_13",
|
"column_break_13",
|
||||||
"scan_mode",
|
"scan_mode",
|
||||||
|
"prompt_qty",
|
||||||
"section_break_15",
|
"section_break_15",
|
||||||
"locations",
|
"locations",
|
||||||
"amended_from",
|
"amended_from",
|
||||||
@ -151,11 +152,17 @@
|
|||||||
"fieldname": "scan_mode",
|
"fieldname": "scan_mode",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Scan Mode"
|
"label": "Scan Mode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "prompt_qty",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Prompt Qty"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-05-04 11:12:48.044239",
|
"modified": "2022-05-05 09:50:36.252445",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Pick List",
|
"name": "Pick List",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user