commit | 7ff30a4b2b64df191836f0d7695c7007167fb076 | [log] [tgz] |
---|---|---|
author | Noah Jacob <noahjacobkurian@gmail.com> | Fri Nov 26 17:33:57 2021 +0530 |
committer | GitHub <noreply@github.com> | Fri Nov 26 17:33:57 2021 +0530 |
tree | 579442700733cb978d7442d2802834d3a4f4149c | |
parent | efec85d5cd59eacd8cce4d519caf914740cc6c12 [diff] |
fix: incorrect balance for warehouses (#28583)
diff --git a/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/warehouse_wise_item_balance_age_and_value.py b/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/warehouse_wise_item_balance_age_and_value.py index d3af5f6..4d1491b 100644 --- a/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/warehouse_wise_item_balance_age_and_value.py +++ b/erpnext/stock/report/warehouse_wise_item_balance_age_and_value/warehouse_wise_item_balance_age_and_value.py
@@ -46,8 +46,8 @@ item_balance.setdefault((item, item_map[item]["item_group"]), []) total_stock_value = 0.00 for wh in warehouse_list: - row += [qty_dict.bal_qty] if wh.name in warehouse else [0.00] - total_stock_value += qty_dict.bal_val if wh.name in warehouse else 0.00 + row += [qty_dict.bal_qty] if wh.name == warehouse else [0.00] + total_stock_value += qty_dict.bal_val if wh.name == warehouse else 0.00 item_balance[(item, item_map[item]["item_group"])].append(row) item_value.setdefault((item, item_map[item]["item_group"]),[])