[fix][patch] Delete Bin for non-stock item
This commit is contained in:
parent
712fccd876
commit
24998a6ca7
@ -26,4 +26,10 @@ def execute():
|
|||||||
for item_code, warehouse in repost_for:
|
for item_code, warehouse in repost_for:
|
||||||
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
|
||||||
|
)
|
||||||
|
""")
|
Loading…
Reference in New Issue
Block a user