mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
* feat: allow to pick manually qty / batches / serial nos
(cherry picked from commit 50dd9fa8a3)
# Conflicts:
# erpnext/stock/doctype/pick_list/pick_list.json
# erpnext/stock/doctype/pick_list/pick_list.py
* chore: fix conflicts
* chore: fix conflicts
---------
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
"parent_warehouse",
|
"parent_warehouse",
|
||||||
"consider_rejected_warehouses",
|
"consider_rejected_warehouses",
|
||||||
"get_item_locations",
|
"get_item_locations",
|
||||||
|
"pick_manually",
|
||||||
"section_break_6",
|
"section_break_6",
|
||||||
"scan_barcode",
|
"scan_barcode",
|
||||||
"column_break_13",
|
"column_break_13",
|
||||||
@@ -192,11 +193,18 @@
|
|||||||
"fieldname": "consider_rejected_warehouses",
|
"fieldname": "consider_rejected_warehouses",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Consider Rejected Warehouses"
|
"label": "Consider Rejected Warehouses"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"description": "If enabled then system won't override the picked qty / batches / serial numbers.",
|
||||||
|
"fieldname": "pick_manually",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Pick Manually"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-01-24 17:05:20.317180",
|
"modified": "2024-03-27 22:49:16.954637",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Pick List",
|
"name": "Pick List",
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ class PickList(Document):
|
|||||||
|
|
||||||
def before_save(self):
|
def before_save(self):
|
||||||
self.update_status()
|
self.update_status()
|
||||||
self.set_item_locations()
|
if not self.pick_manually:
|
||||||
|
self.set_item_locations()
|
||||||
|
|
||||||
if self.get("locations"):
|
if self.get("locations"):
|
||||||
self.validate_sales_order_percentage()
|
self.validate_sales_order_percentage()
|
||||||
|
|||||||
Reference in New Issue
Block a user