Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0] l10n_it_withholding_tax: WT not printed in pdf #2185

Closed
1 task
aleuffre opened this issue Mar 25, 2021 · 2 comments
Closed
1 task

[12.0] l10n_it_withholding_tax: WT not printed in pdf #2185

aleuffre opened this issue Mar 25, 2021 · 2 comments

Comments

@aleuffre
Copy link
Contributor

aleuffre commented Mar 25, 2021

Versioni coinvolte:

  • 12.0
    Non ho testato altre versioni

Passi per riprodurre: Stampare invoice con ritenute d'acconto in pdf

Comportamento osservato: Nella form della fattura viene correttamente visualizzato il prezzo totale, la ritenuta d'acconto, e il netto da pagare. Tuttavia, nella stampa pdf della fattura viene stampato il prezzo totale, senza ritenuta d'acconto e netto da pagare. Risulta fuorviante.

Comportamento atteso: Stampare anche nella fattura pdf, in maniera analoga alla form view, i campi "withholding_tax_amount" e "net_to_pay". Eventualmente si può aggiungere anche "net_to_pay_residual". Insomma, replicare queste righe:

<xpath expr="//group[hasclass('oe_subtotal_footer', 'oe_right')]/field[@name='amount_total']" position="after">
<field name="withholding_tax_amount" widget="monetary" options="{'currency_field': 'currency_id'}"
attrs="{'invisible': [('withholding_tax', '=', False)]}"/>
<field name="amount_net_pay" widget="monetary" options="{'currency_field': 'currency_id'}" class="oe_subtotal_footer_separator"
attrs="{'invisible': [('withholding_tax', '=', False)]}"/>
</xpath>
<xpath expr="//group[hasclass('oe_subtotal_footer', 'oe_right')]/field[@name='residual']" position="after">
<field name="amount_net_pay_residual" widget="monetary" options="{'currency_field': 'currency_id'}"
attrs="{'invisible': ['|', ('state', '=', 'draft'), ('withholding_tax', '=', False)]}" class="oe_subtotal_footer_separator"/>
</xpath>

Posso creare volentieri io una PR per aggiungere i due/tre campi nella fattura pdf. Non so se è meglio aggiungerlo al modulo l10n_it_wirthholding_tax, o creare un altro modulo a parte solo per questo.

@eLBati
Copy link
Member

eLBati commented Mar 25, 2021

@aleuffre grazie della segnalazione. C'era già #1504 quindi chiudo.
Se vuoi fare le modifiche per la 12, puoi prendere spunto da quella per la 11 #1543

@eLBati eLBati closed this as completed Mar 25, 2021
@aleuffre
Copy link
Contributor Author

Scusami, avevo cercato per vedere se fosse già stato segnalato, ma non avevo trovato l'issue.

Grazie mille per i riferimenti!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants