diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-09-23 12:55:35 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-09-30 09:17:29 +0000 |
| commit | 286ea6b681e9ba77357f91b546052449f6342f20 (patch) | |
| tree | 7b6916feffebd3ef7444263f7d194b49bae3c5ef /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 825411626d1f58f07a11b5d73067ba3846cd1825 (diff) | |
[FIX] purchase_stock: small discount at invoicing
- Create stockable product P: FIFO, Automated Valuation
- Set the price difference account
- Configure Decimal Accuracy for Discounts to 5.
- Create a PO
- Add a line with:
Product P
Quantity: 10,000
Price unit: 100
A tax
- Confirm the PO, receive the product and create the invoice
- Set a discount of 0.92431 on the invoice line
- Post the invoice
The journal entries for the invoices contains the price difference move,
the amount must be 9,243.10 but is 9,200.00.
In case taxes are defined on the the invoice line, we call `compute_all`
which will round the `price_unit`. In this case, we don't want to round
it.
Fixes #56832
opw-2329028
X-original-commit: 498238fb02c32285f9d9ac779884105ae9eaa1e4
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
