fix: batch_no doesn't maintain qty_after_transaction

This commit is contained in:
Ankush Menat 2022-05-10 15:06:46 +05:30
parent 6ab0046e9c
commit 287b255ad6

View File

@ -168,7 +168,7 @@ def get_periodic_data(entry, filters):
previous_balance = periodic_data[d.item_code]["balance"].copy()
periodic_data[d.item_code][period] = previous_balance
if d.voucher_type == "Stock Reconciliation":
if d.voucher_type == "Stock Reconciliation" and not d.batch_no:
if periodic_data.get(d.item_code) and periodic_data.get(d.item_code).get("balance").get(
d.warehouse
):