Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock_account: Correct order in candidates_receipt search for F…
…IFO valuation When decreasing `qty_done` in an outgoing stock move, the search query for `candidates_receipt` was ordering by `date` in ascending order, resulting in the selection of the oldest record instead of the most recent one. This commit changes the order to `date desc, id desc` to ensure the most recent record is selected, as intended by the comments in the write method.
- Loading branch information