mirror of
https://github.com/frappe/erpnext.git
synced 2026-07-02 13:16:55 +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["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']]:
|
||||
# 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"):
|
||||
|
||||
Reference in New Issue
Block a user