[fix] repost gle only if there is any stock account without warehouse
This commit is contained in:
parent
95f53cca44
commit
fa97b3cac7
@ -15,6 +15,8 @@ def execute():
|
|||||||
and (warehouse is null or warehouse = '')""")
|
and (warehouse is null or warehouse = '')""")
|
||||||
if warehouses:
|
if warehouses:
|
||||||
warehouses = set_warehouse_for_stock_account(warehouses)
|
warehouses = set_warehouse_for_stock_account(warehouses)
|
||||||
|
if not warehouses:
|
||||||
|
return
|
||||||
|
|
||||||
stock_vouchers = frappe.db.sql("""select distinct sle.voucher_type, sle.voucher_no
|
stock_vouchers = frappe.db.sql("""select distinct sle.voucher_type, sle.voucher_no
|
||||||
from `tabStock Ledger Entry` sle
|
from `tabStock Ledger Entry` sle
|
||||||
|
Loading…
Reference in New Issue
Block a user