Skip to content

Un pagamento per più fatture con ritenuta genera importi sbagliati #5190

@SirPyTech

Description

@SirPyTech

Module

l10n_it_withholding_tax

Describe the bug

Lo stesso importo (nell'esempio 404) viene pagato per le ritenute di tutte le fatture selezionate: Image e Image

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Creare una ritenuta con coefficiente 40: Image
  2. Creare e confermare due fatture fornitore, contenenti la ritenuta creata:
    • una da 1000: Image
    • una da 10: Image
  3. Nella lista delle fatture, selezionarle entrambe e Azione > Registra pagamento
  4. Selezionare "Pagamento raggruppato" Image
  5. Confermare

Expected behavior
Le ritenute delle due fatture selezionate sono pagate solo per l'importo di loro competenza (nell'esempio 400 e 4): Image e Image

Additional context
Lo stesso comportamento si ottiene anche pagando entrambe le fatture con un ordine di pagamento (modulo account_payment_order).

Il problema era stato segnalato anche in

Questo problema mi risulta che sia tornato presente sulla 14.0

Image Image

Originally posted by @sergiocorato in #3771

Metadata

Metadata

Assignees

No one assigned

    Labels

    16.0bugneeds portingThis issue has already been resolved for some versionno staleUse this label to prevent the automated stale action from closing this PR/Issue.series:18.0

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions