Skip to content

Commit

Permalink
fix: Stock Ledger Invariant Check report
Browse files Browse the repository at this point in the history
(cherry picked from commit d7daedc)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Sep 29, 2024
1 parent 4146bdf commit 4426384
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def add_invariant_check_fields(sles):
balance_qty = 0.0
balance_stock_value = 0.0
for idx, sle in enumerate(sles):
queue = json.loads(sle.stock_queue)
queue = json.loads(sle.stock_queue) if sle.stock_queue else []

fifo_qty = 0.0
fifo_value = 0.0
Expand Down

0 comments on commit 4426384

Please sign in to comment.