OCA / l10n-italy

Odoo Italian localization
https://www.odoo-italia.org
GNU Affero General Public License v3.0
142 stars 297 forks source link

l10n_it_withholding_tax: wrong WT entry when paying multiple invoices #4158

Open eLBati opened 1 month ago

eLBati commented 1 month ago

Affected versions:

Steps to reproduce the behavior:

  1. Create 2 supplier invoices like the following:

image

  1. Using account_reconcile_oca, create a payment line like the following:

image

  1. Start reconciliation and set the amounts like this:

image

  1. Validate

Observed behavior

The following entries are generated:

image

details:

image

and the 2 invoices are paid

image

Expected behavior

2 WT entries are generated, 1 per invoice. Total balance of "260200 Debiti per ritenute da versare" must be 40