Skip to content

Commit

Permalink
[FIX] ddmrp_history: print correctly execution history.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow authored and LoisRForgeFlow committed May 2, 2024
1 parent a8f5a63 commit c50ddde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ddmrp_history/models/stock_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def stacked(df, categories):
domain, order="on_hand_position desc", limit=1
)
history_tog = history_model.search(
domain, order="top_of_green desc", limit=1
domain + [("top_of_green", "!=", False)],
order="top_of_green desc",
limit=1,
)
finish_stack = max(history_oh.on_hand_position, history_tog.top_of_green)

Expand Down

0 comments on commit c50ddde

Please sign in to comment.