Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][FIX] stock_account: Correct order in candidates_receipt search for FIFO valuation #1230

Open
wants to merge 1 commit into
base: 12.0
Choose a base branch
from

Commits on May 16, 2024

  1. [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.
    kanda999 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    02fb389 View commit details
    Browse the repository at this point in the history