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

[fatturapa] Field "Data riferimento termini di pagamento" not present in XML #2774

Closed
1 of 3 tasks
mmaridev opened this issue Apr 29, 2022 · 6 comments · May be fixed by #3892
Closed
1 of 3 tasks

[fatturapa] Field "Data riferimento termini di pagamento" not present in XML #2774

mmaridev opened this issue Apr 29, 2022 · 6 comments · May be fixed by #3892
Labels
12.0 14.0 16.0 bug no stale Use this label to prevent the automated stale action from closing this PR/Issue. triaged

Comments

@mmaridev
Copy link

mmaridev commented Apr 29, 2022

Module

FatturaPA export

Describe the bug

When importing an Odoo-generated XML in the "Agenzia delle Entrate" wizard, the field "Data riferimento termini di pagamento" is marked as missing and compulsory.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Create a new invoice
  2. Export XML
  3. Import XML in AE's tool

Expected behavior
Field is valorized with a meaningful date, e.g. today or the invoice date.

Additional context
Possibly related to #1594 #1364

@mmaridev mmaridev added the bug label Apr 29, 2022
@mmaridev mmaridev changed the title [fatturapa] Field "Data riferimento termini di pagamento" not present in XML [12.0][fatturapa] Field "Data riferimento termini di pagamento" not present in XML Apr 29, 2022
@TheMule71
Copy link
Contributor

Hello, we need more details, can you upload the XML that causes the problem, please? Maybe anonymized. TY

@mmaridev mmaridev changed the title [12.0][fatturapa] Field "Data riferimento termini di pagamento" not present in XML [fatturapa] Field "Data riferimento termini di pagamento" not present in XML Dec 25, 2023
@mmaridev
Copy link
Author

Hi,
I realize I have never provided an anonymized XML but the issue is still there. I tested from another instance running 14.0 and the generation of the XML still does not compile the 2.4.2.3 field ("DataRiferimentoTerminiPagamento") still won't get any value.
You can just generate any invoice from Odoo and export the XML. You'll notice there is no such attribute inside the "DettaglioPagamento" node and if you try to import it in the generation wizard by AdE and go back to step 3, the field will be marked red and warned it needs completion.

@SirAionTech
Copy link
Contributor

Thanks for reporting this, I have done a little research and node DataRiferimentoTerminiPagamento does not seem to be compulsory according to the XSD schema https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/Schema_del_file_xml_FatturaPA_v1.2.2.xsd and to the other specifications in https://www.fatturapa.gov.it/it/norme-e-regole/documentazione-fattura-elettronica/formato-fatturapa/.
For instance, in https://www.fatturapa.gov.it/export/documenti/fatturapa/v1.2.2/RappresentazioneTabellareFattOrdinariav123.pdf it says:

2.4.2.3 <DataRiferimentoTerminiPagamento> | ... | <0.1>

where <0.1> means not compulsory and only 1 occurrence allowed (extracted from the header of the table in the link).

Do you have any more details on why is the field DataRiferimentoTerminiPagamento shown as compulsory?

I agree that this can be implemented, here I am just trying to understand whether this is an urgent fix (we are creating electronic invoices that are not compliant) or not (we are creating electronic invoices without an optional node).

@mmaridev
Copy link
Author

Hi @SirAionTech ,

Do you have any more details on why is the field DataRiferimentoTerminiPagamento shown as compulsory?

it's probably just the tool by AdE that has been implemented not following the specifications.
Anyway, if you import the generated XML in the generation wizard by AdE, the field will be marked red and the export of the XML prevented until it's valorized.

Yes, at the end of the day is just setting to the same value as the invoice date...

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 28, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
@mmaridev
Copy link
Author

PR per 16.0 in attesa di review e merge

@francesco-ooops francesco-ooops added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
12.0 14.0 16.0 bug no stale Use this label to prevent the automated stale action from closing this PR/Issue. triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants