[fix][patch] Repost reserved qty for stock item

This commit is contained in:
Nabin Hait 2015-08-20 14:59:25 +05:30
parent 35cd427463
commit 712fccd876

View File

@ -18,7 +18,9 @@ def execute():
select distinct item_code, warehouse
from `tabPacked Item` where docstatus=1 and parenttype='Sales Order'
)
) items
) so_item
where
exists(select name from tabItem where name=so_item.item_code and ifnull(is_stock_item, 0)=1)
""")
for item_code, warehouse in repost_for: