summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2020-06-24 06:58:48 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-06-30 14:48:05 +0000
commit359202aa182b740d57501a5f5f03b3848fec1a27 (patch)
treeb579807c04626a1fea7cb4a95a70d018b4bb3912 /doc/reference/javascript_reference.rst
parent0f2cab4aebcc33ca9e278c9395fed2cc8934ed38 (diff)
[FIX] point_of_sale: fix closing with multiple taxes and fiscal position
- Install Accounting, Point of Sale - Go to Accounting > Configuration > Taxes - Create 2 taxes (e.g. Tax 15% and Tax 21%) - Go to Accounting > Configuration > Fiscal Positions - Create a new Fiscal Postion with the following line for Tax Mapping: * Tax on Product: Tax 21% * Tax to Apply: Tax 15% - Go to Point of Sale > Products > Products - Create a new Product (e.g. Test Product) with "Tax 15%" and "Tax 21%" in Customer Taxes (Make sure that the Tax 15% is the same than the one for the "Tax to Apply" in the Fiscal Position) - Go to Point of Sale and configure a POS: * Activate "Fiscal Position per Order" and choose the created Fiscal Position * Add Bank as Payment Method - Start a POS session - Search "Test Product" and add it - Click on Tax button and select the created Fiscal Position - Proceed to payment - Choose Bank and validate - Exit the POS session - Click on "CLOSE" and "VALIDATE CLOSING & POST ENTRIES" An error message appeared with the following message: "Cannot create unbalanced journal entry" When closing and posting entries, an account move and account move lines are created from the session orders. For each order lines, taxes are computed from taxes on product and fiscal position of the order. In this case, the product has 2 taxes applied (Tax 15% and Tax 21%). Due to the chosen Fiscal Position, the Tax 15% is applied instead of Tax 21%. For the order line, Tax 15% is applied 2 times. But during the account move lines generation, the original Tax 15% and the converted Tax 15% are merged together, because they represent the same tax (same model id). So the Tax 15% is only applied once, which results on unbalanced amounts during reconciliation. In Sales, for the same case, the tax is only applied once. To stay consistent with Sales behavior, the tax will also be applied once in Point of Sale. opw-2278826 closes odoo/odoo#53880 X-original-commit: 17a9feff69ec772bf3427dda886ae122fd6c7c2c Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions