mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
[fix][patch] Delete Bin for non-stock item
This commit is contained in:
@@ -27,3 +27,9 @@ def execute():
|
|||||||
update_bin_qty(item_code, warehouse, {
|
update_bin_qty(item_code, warehouse, {
|
||||||
"reserved_qty": get_reserved_qty(item_code, warehouse)
|
"reserved_qty": get_reserved_qty(item_code, warehouse)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
frappe.db.sql("""delete from tabBin
|
||||||
|
where exists(
|
||||||
|
select name from tabItem where name=tabBin.item_code and ifnull(is_stock_item, 0) = 0
|
||||||
|
)
|
||||||
|
""")
|
||||||
Reference in New Issue
Block a user