-
- Downloads
[FIX] purchase: fix anglosaxon valuation
Before that, when receiving, then invoicing with price diff, the value in interim account corresponded to the price on the invoice instead of the original valuation one. Scenario to reproduce the issue: * create PO with 1 product, FIFO valuation, price=10 * receive PO: the entry in stock interim account has debit=credit=10 * create invoice, with price=15 instead of 10 * the invoice entry should be: payable: C=15 ; price diff: D=5 ; interim account: D=10 ==> Instead, we had payable: C=20 ; price diff: D=5 ; interim account: D=15 => this was wrong Also added a test case for the same scenario, verifying the amounts written in the different accounts (and refactored a bit ValuationReconciliationTestCase for easiness) Closes #27394
Showing
- addons/purchase/models/account_invoice.py 6 additions, 2 deletionsaddons/purchase/models/account_invoice.py
- addons/purchase/tests/test_anglo_saxon_valuation_reconciliation.py 40 additions, 33 deletions...rchase/tests/test_anglo_saxon_valuation_reconciliation.py
- addons/purchase/tests/test_stockvaluation.py 50 additions, 0 deletionsaddons/purchase/tests/test_stockvaluation.py
- addons/sale_stock/tests/test_anglo_saxon_valuation_reconciliation.py 53 additions, 17 deletions..._stock/tests/test_anglo_saxon_valuation_reconciliation.py
- addons/stock_account/tests/test_anglo_saxon_valuation_reconciliation_common.py 12 additions, 6 deletions...tests/test_anglo_saxon_valuation_reconciliation_common.py
Loading
Please register or sign in to comment