Skip to content

Commit

Permalink
Merge PR #1768 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Nov 18, 2024
2 parents fee2358 + 5b24c84 commit ce10808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stock_account_product_run_fifo_hook/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def _run_fifo_new(self, quantity, company):
tmp_value = 0 # to accumulate the value taken on the candidates
taken_data = {}
for candidate in candidates:
qty_taken_on_candidate = min(
qty_to_take_on_candidates, candidate.remaining_qty
qty_taken_on_candidate = self._get_qty_taken_on_candidate(
qty_to_take_on_candidates, candidate
)
taken_data[candidate.id] = {"quantity": qty_taken_on_candidate}
candidate_unit_cost = candidate.remaining_value / candidate.remaining_qty
Expand Down

0 comments on commit ce10808

Please sign in to comment.