diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-05-13 07:32:55 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-05-14 08:19:20 +0000 |
| commit | 92393a6b8e64e99591ff4ead166e93caa8da2dcb (patch) | |
| tree | 0fff217fbeab49ac107bd0c04f3e95b08b236594 /odoo/addons/base/static/src/js | |
| parent | 4927d4c5acc7df5b1f7f711c1d39fd8538cd1a18 (diff) | |
[FIX] purchase_stock: discount on invoice
- Create a product P
Costing Method: FIFO
Inventory Valuation: Perpetual (automated)
Price Difference Account set
- Create a PO with P, set a price of 100 (no tax).
- Receive the product
2 journal items are generated:
| Account | Debit| Credit|
|-------------------------|--------|--------|
| Stock Valuation | 100.0| 0.0|
| Stock Interim (Received)| 0.0| 100.0|
- Create the corresponding invoice
- Change the:
Discount: 10
- Validate the invoice (for a total of 90.0)
2 journal items are generated:
| Account | Debit| Credit|
|-------------------------|--------|--------|
| Account Payable | 0.0| 90.0|
| Stock Interim (Received)| 90.0| 0.0|
This is not correct, it should be:
| Account | Debit| Credit|
|-------------------------|--------|--------|
| Account Payable | 0.0| 90.0|
| Difference Account | 0.0| 10.0|
| Stock Interim (Received)| 100.0| 0.0|
This comes from the fact that the valuation price is compared to the
price unit without the discount.
opw-1974002
closes odoo/odoo#33296
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'odoo/addons/base/static/src/js')
0 files changed, 0 insertions, 0 deletions
