Skip to content

l10n_it_withholding_tax: pagando più fatture il rimane un amount_residual pari al valore delle ritenute  #3771

@ventre

Description

@ventre

Module

l10n_it_withholding_tax

Describe the bug

PAgando più fatture con ritenuta , il valore dell'amount residual rimane pari al valore delle ritenute con segno negativo perchè riconcilia la fattura sul totale e non sul totale al netto delle ritenute

To Reproduce

Affected versions:

versione modulo 16.0.1.1.2

penso di aver risolto con questa modifica al codice

if (
float_compare(
amount,
invoice.amount_net_pay,
precision_rounding=digits_rounding_precision,
)
== 1
):
vals.update({"amount": invoice.amount_net_pay})
vals.update({"credit_amount_currency": invoice.amount_net_pay})
vals.update({"debit_amount_currency": invoice.amount_net_pay})

aggiungendo le parti in neretto

Metadata

Metadata

Assignees

No one assigned

    Labels

    16.0bughotfixneeds functional reviewneeds portingThis issue has already been resolved for some versionno staleUse this label to prevent the automated stale action from closing this PR/Issue.

    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