Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0050557Openbravo LocalizationsLocalization Italypublic2022-10-17 13:292022-10-18 15:52
ucarrion 
jetxarri 
highmajoralways
closedfixed 
5
 
 
0050557: <IdFiscaleIVA> must not be infomed if the customer has only Codice Fiscale
<IdFiscaleIVA> must not be infomed if the customer has only Codice Fiscale in the eInvoice XMl file.

As specified by the tax authorities (see point 1.4.1.1) the <IdFiscaleIVA> tag is NOT mandatory so will be informed just if the customer has a valid Partita IVA.
-Login an Italian terminal
-Do an invoice for a particular customer that just have a Codice Fiscale
-Pay and complete the transaction
-Export the XML file (executing 'Export Italy Invoices to a XML file' background process)
-Check that the XML file contains the <IdFiscaleIVA> when it is NOT expected
If the customer has ONLY Codice Fiscale --> The <IdFiscaleIVA> is not informed in the XML, only <CodiceFiscale>.

If the customer has ONLY Partita IVA --> The <CodiceFiscale> is not informed in the XML, only <IdFiscaleIVA>.

If the customer has BOTH Codice Fiscale and Partita IVA --> Both the <IdFiscaleIVA> and <CodiceFiscale are informed in the XML.
NOR, NORAUTO
xls Table view B2B Ordinary invoice (5).xls (180,736) 2022-10-17 13:29
https://issues.openbravo.com/file_download.php?file_id=17664&type=bug
Issue History
2022-10-17 13:29ucarrionNew Issue
2022-10-17 13:29ucarrionAssigned To => psanjuan
2022-10-17 13:29ucarrionFile Added: Table view B2B Ordinary invoice (5).xls
2022-10-17 13:30ucarrionTag Attached: NOR
2022-10-17 13:30ucarrionTag Attached: NORAUTO
2022-10-17 13:43aferrazAssigned Topsanjuan => jetxarri
2022-10-17 18:57hgbotNote Added: 0142189
2022-10-18 08:47ucarrionIssue Monitored: sebastien_liron
2022-10-18 15:52hgbotResolutionopen => fixed
2022-10-18 15:52hgbotStatusnew => closed
2022-10-18 15:52hgbotNote Added: 0142237
2022-10-18 15:52hgbotNote Added: 0142238

Notes
(0142189)
hgbot   
2022-10-17 18:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/20 [^]
(0142237)
hgbot   
2022-10-18 15:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^]
Changeset: 6976fcb39b5258012c48c85c04ea324bd81171ae
Author: Javier Etxarri <javier.etxarri@openbravo.com>
Date: 18-10-2022 15:51:11
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/6976fcb39b5258012c48c85c04ea324bd81171ae [^]

Fixes ISSUE-50557: <IdFiscaleIVA> must not be infomed if the customer has only Codice Fiscale.
Now the values are added only if they have a value

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiAnagraficiCessionario.java
---
(0142238)
hgbot   
2022-10-18 15:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/20 [^]