mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 07:28:39 +00:00
fix: skip qty over-allowance check for non-stock items only
This commit is contained in:
@@ -275,6 +275,12 @@ class StatusUpdater(Document):
|
|||||||
item["idx"] = d.idx
|
item["idx"] = d.idx
|
||||||
item["target_ref_field"] = args["target_ref_field"].replace("_", " ")
|
item["target_ref_field"] = args["target_ref_field"].replace("_", " ")
|
||||||
|
|
||||||
|
# skip qty over-allowance check for non-stock items
|
||||||
|
if "qty" in args.get("target_ref_field", "") and not frappe.get_cached_value(
|
||||||
|
"Item", item["item_code"], "is_stock_item"
|
||||||
|
):
|
||||||
|
continue
|
||||||
|
|
||||||
# if not item[args['target_ref_field']]:
|
# if not item[args['target_ref_field']]:
|
||||||
# msgprint(_("Note: System will not check over-delivery and over-booking for Item {0} as quantity or amount is 0").format(item.item_code))
|
# msgprint(_("Note: System will not check over-delivery and over-booking for Item {0} as quantity or amount is 0").format(item.item_code))
|
||||||
if args.get("no_allowance"):
|
if args.get("no_allowance"):
|
||||||
|
|||||||
Reference in New Issue
Block a user