Andrea Grazioso (agr-odoo) c042b0825a [FIX] account: round epd vals
Set "Cash Discount Tax Reduction" to "Always"
Crete the following taxes:
- fixed136:
  - Tax Computation: Fixed
  - Amount: 0.1360
  - Included in price: False
  - Affect Base of Subsequent Taxes: True
- fixed176:
  - Tax Computation: Fixed
  - Amount: 0.1760
  - Included in price: False
  - Affect Base of Subsequent Taxes: True
- 6%:
  - Tax Computation: Percentage of Price
  - Amount: 6
  - Included in price: False
  - Base Affected by Previous Taxes: True
- 12%:
  - Tax Computation: Percentage of Price
  - Amount: 12
  - Included in price: False
  - Base Affected by Previous Taxes: True
Create the following products:
- A:
  - Sales price: 116.00
  - Customer taxes: 6%
- B:
  - Sales price: 0.91
  - Customer taxes: 6%
- C:
  - Sales price: 194.21
  - Customer taxes: fixed136, 12%
- D:
  - Sales price: 31.46
  - Customer taxes: fixed176, 12%
Create a Payment Term "1/7 Net 30" with 1% discount if paid within 7
days
Create an invoice:
- Add payment term "1/7 Net 30"
- Create the lines
  - product A, quantity 6
  - product B, quantity 350
  - product C, quantity 1
  - product D, quantity 5
Save

Issue: An error will block the action
"""
The move (Draft Invoice (* 44)) is not balanced.
The total of debits equals $ 1,483.87 and the total of credits equals
$ 1,483.86.
You might want to specify a default account on journal "Customer
Invoices" to automatically balance each move.
"""

This occurs because we compute the balance amounts for epd without
rounding. Then in `needed` we sum up the amounts, ending up with 3 epd lines,
having respectively the following balance:
- 10.145 -> 10.15 after rounding
- -13.6601 -> 13.66 after rounding
- 3.5151 -> 3.52 after rounding

So, because of the rounding, we will have 1 extra cent in debit amount
and the invoice will result unbalanced

Fixing by rounding the partial epd amounts

opw-3327069

closes odoo/odoo#130596

X-original-commit: c9fc35ad5bb437c6e20ea4244178e4f15b7eeac3
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Andrea Grazioso (agr) <agr@odoo.com>
2023-08-03 09:23:33 +02:00
…
2023-08-03 09:23:33 +02:00
2023-08-02 05:10:21 +02:00
2023-08-02 17:29:27 +02:00
…
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%