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_reverse_charge supporting "with_supplier_self_invoice" for e-invoices + link supplier self invoice to e-invoice #2790

Merged
merged 8 commits into from
Jul 19, 2022

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented May 12, 2022

Vedi #2869

Si veda la nuova configurazione:

image

image

Poi, anche #2731

@eLBati eLBati requested a review from OpenCode May 12, 2022 14:07
@eLBati eLBati changed the title [12.0] l10n_it_reverse_charge supporting "with_supplier_self_invoice" for e-invoices [12.0] l10n_it_reverse_charge supporting "with_supplier_self_invoice" for e-invoices + link supplier self invoice to e-invoice May 12, 2022
@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch 2 times, most recently from 6857600 to 0149ef8 Compare May 19, 2022 07:05
@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch 3 times, most recently from 4870e27 to 3f351be Compare May 28, 2022 14:28
@zeroincombenze
Copy link

SI può testare?

@eLBati
Copy link
Member Author

eLBati commented May 31, 2022

SI può testare?

@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch from 3f351be to c2329b0 Compare June 5, 2022 16:15
@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch 2 times, most recently from 6ca0587 to 2b96e88 Compare June 23, 2022 09:34
@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch from 2b96e88 to 2c230b8 Compare July 2, 2022 06:08
Copy link
Contributor

@SirTakobi SirTakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Ho proposto una piccola fix in eLBati#106.
Prima di proporre altre modifiche o approvare avrei bisogno dei chiarimenti qui sotto

for tax_mapping in rc_type.tax_ids:
for line_tax_id in line_tax_ids:
if tax_mapping.original_purchase_tax_id == line_tax_id:
tax_ids.append(tax_mapping.purchase_tax_id.id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se un mapping avesse due righe con la stessa original_purchase_tax_id e quell'imposta fosse in una riga fattura, allora nella riga fattura verrebbero incluse tutte le imposte mappate, questo non poteva succedere con l'implementazione precedente a queste modifiche.
È davvero il comportamento voluto o basterebbe trovarne una e uscire? Un'altra soluzione sarebbe impedire che i mapping abbiano più righe con la stessa original_purchase_tax_id.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

È davvero il comportamento voluto o basterebbe trovarne una e uscire?

Bisognerebbe uscire una volta trovata una

if tax_mapping.original_purchase_tax_id == line_tax_id:
tax_ids.append(tax_mapping.purchase_tax_id.id)
if not tax_ids:
raise UserError(_("Tax code used is not a RC tax.\nCan't "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questo in pratica impedisce di utilizzare i tipi di inversione contabile with_supplier_self_invoice che hanno solo righe senza original_purchase_tax_id (non obbligatorio): devono essere ancora supportate?

Ho guardato https://docs.google.com/document/d/1C7LB2d1jOd7jJc9UA84h07EBjDFWJGjB-kYmRKEJUXw/edit# ma non capisco se il vecchio flusso deve essere ancora supportato o meno.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

che hanno solo righe senza original_purchase_tax_id (non obbligatorio): devono essere ancora supportate?

Il modulo non prevede più l'utilizzo della modalità with_supplier_self_invoice senza original_purchase_tax_id, quindi, dopo aver aggiornato con queste modifiche, gli utenti con with_supplier_self_invoice dovranno ri-configurare la mappatura andando a valorizzare original_purchase_tax_id

Copy link
Contributor

@SirTakobi SirTakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho fatto eLBati#107 per risolvere quanto trovato in #2790 (review), puoi controllarla ed eventualmente mergiare?

Per il resto la PR mi pare ok

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@eLBati eLBati force-pushed the 12.0-rc-supplier-invoice branch from 500a891 to a00977c Compare July 17, 2022 12:17
@eLBati
Copy link
Member Author

eLBati commented Jul 17, 2022

Conflitti risolti

@eLBati
Copy link
Member Author

eLBati commented Jul 19, 2022

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-2790-by-eLBati-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 42b4f86 into OCA:12.0 Jul 19, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9d0008c. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

5 participants