diff options
| author | Olivier Colson <oco@odoo.com> | 2018-05-16 16:28:05 +0200 |
|---|---|---|
| committer | Olivier Colson <oco@odoo.com> | 2018-05-16 16:38:46 +0200 |
| commit | 87818f7fccc045f6011ab8f4f96c447740d6f41e (patch) | |
| tree | cd14ee593db36b141cd38ce09233edcdc0902d48 /addons/web/static/src | |
| parent | 92abf95a87505c95ad52febdd380b79da915621e (diff) | |
[FIX] purchase: anglosaxon accounting: use price difference account properly when making a refund
Before that, the following scenario failed due to FIFO handling of stock:
- make PO 1 for 10 x product A at 10€/piece, receive and invoice everything
- make PO 2 for 10 x product A at 20€/piece, receive and invoice everything
- refund and send back PO 2
=> With FIFO handling, it means the valuation corresponding to the return of product A consists of the first received products, hence 10x10=100€. The credit note, though, was made with the price of the invoice (200€) and did not (because of a too simple check) use the price difference account to post the missing amount (100€).
Test test_fifo_anglosaxon_return (purchase/tests/test_stockvaluation.py) failed because of that.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
