Olivier Colson
e6228402e7
[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
2018-10-25 18:03:27 +02:00
..
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 13:59:45 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-08-14 18:59:57 +02:00
2018-08-27 13:26:20 +02:00
2018-07-13 15:10:12 +02:00
2018-07-18 17:59:23 +02:00
2018-10-01 10:44:38 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-07-29 07:17:30 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-09-17 18:03:41 +02:00
2018-10-18 15:30:59 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-08-21 16:58:17 +02:00
2018-07-24 16:43:26 +02:00
2018-09-21 16:36:47 +02:00
2018-09-26 19:37:29 +02:00
2018-09-26 19:37:29 +02:00
2018-07-30 15:51:38 +02:00
2018-07-26 19:16:14 +02:00
2018-07-26 19:16:14 +02:00
2018-07-24 16:43:26 +02:00
2018-09-27 14:59:50 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 18:10:32 +02:00
2018-08-21 16:58:17 +02:00
2018-09-26 19:37:29 +02:00
2018-09-17 18:03:41 +02:00
2018-08-14 14:42:23 +02:00
2018-10-01 10:44:38 +02:00
2018-10-01 10:44:38 +02:00
2018-09-30 00:29:10 +02:00
2018-09-17 18:03:41 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-07-24 16:43:26 +02:00
2018-09-05 18:52:27 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 13:59:45 +02:00
2018-10-24 11:10:29 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 13:59:45 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 13:59:45 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 13:59:45 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 18:03:27 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 13:59:45 +02:00
2018-10-14 03:21:07 +02:00
2018-08-07 13:59:40 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 18:03:27 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-07-11 10:16:33 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 18:03:27 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-21 03:22:16 +02:00
2018-10-21 03:22:16 +02:00
2018-10-09 19:04:59 +02:00
2018-10-14 03:21:07 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-08-02 10:18:12 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 13:59:45 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00
2018-10-18 11:59:43 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-08-01 02:42:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-21 03:22:16 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 13:59:45 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-07-29 07:17:30 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-25 10:21:44 +02:00
2018-10-14 03:21:07 +02:00
2018-10-25 10:21:44 +02:00