commit | 73579028025c40a1132fc191d89e16237a23c381 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Wed Jul 27 17:34:23 2016 +0530 |
committer | GitHub <noreply@github.com> | Wed Jul 27 17:34:23 2016 +0530 |
tree | fe7bdda49906da18f3f3f3d8842706033206427d | |
parent | 95f53cca44206e89291422bb8a450878a6740169 [diff] | |
parent | fa97b3cac7f443789d5cecf9d8f3887505451b73 [diff] |
Merge pull request #5896 from nabinhait/fix_112 [fix] repost gle only if there is any stock account without warehouse
diff --git a/erpnext/patches/v7_0/fix_nonwarehouse_ledger_gl_entries_for_transactions.py b/erpnext/patches/v7_0/fix_nonwarehouse_ledger_gl_entries_for_transactions.py index ba1d067..174bb11 100644 --- a/erpnext/patches/v7_0/fix_nonwarehouse_ledger_gl_entries_for_transactions.py +++ b/erpnext/patches/v7_0/fix_nonwarehouse_ledger_gl_entries_for_transactions.py
@@ -15,6 +15,8 @@ and (warehouse is null or warehouse = '')""") if 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 from `tabStock Ledger Entry` sle