Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0050486Openbravo LocalizationsLocalization Italypublic2022-10-11 13:372022-10-26 10:58
ucarrion 
ucarrion 
highmajoralways
closedfixed 
5
 
 
0050486: A particular customer must be informed with name and surname instead of with the commercial name in the e-invoice XML file
When issuing a e-invoice xml file for a particular customer, the tags to inform the name and surname must be <Nome> and <Cognome> instead of <Denominazione> that is the one used for the companies.

See spec excel file attached, point 1.4.1.3.1, 1.4.1.3.2 and 1.4.1.3.3

What we get currently:

<CessionarioCommittente>
      <DatiAnagrafici>
        <IdFiscaleIVA>
          <IdPaese>IT</IdPaese>
          <IdCodice>CGLHZG29L02D712W</IdCodice>
        </IdFiscaleIVA>
        <Anagrafica>
          <Denominazione>JULIO CESAR</Denominazione>
        </Anagrafica>
      </DatiAnagrafici>
-Login an Italian terminal
-Do a full invoice for a particular customer
-Go to the backoffice, run the background process to export the XML files
-Sales invoice window, select your invoice and go to the attachments to download the xml file
-Check the xml file
What we should get:

<CessionarioCommittente>
      <DatiAnagrafici>
        <IdFiscaleIVA>
          <IdPaese>IT</IdPaese>
          <IdCodice>CGLHZG29L02D712W</IdCodice>
        </IdFiscaleIVA>
        <Anagrafica>
          <Nome>JULIO</Nome>
          <Cognome>CESAR</Cognome>
        </Anagrafica>
      </DatiAnagrafici>
NOR, NORAUTO
xls Table view B2B Ordinary invoice (6).xls (180,736) 2022-10-11 13:37
https://issues.openbravo.com/file_download.php?file_id=17609&type=bug
xml companyIT06026940012_0lftt.xml (3,132) 2022-10-14 12:55
https://issues.openbravo.com/file_download.php?file_id=17649&type=bug
xml particularIT06026940012_0lftu.xml (2,947) 2022-10-14 12:55
https://issues.openbravo.com/file_download.php?file_id=17650&type=bug
Issue History
2022-10-11 13:37ucarrionNew Issue
2022-10-11 13:37ucarrionAssigned To => psanjuan
2022-10-11 13:37ucarrionFile Added: Table view B2B Ordinary invoice (6).xls
2022-10-11 13:37ucarrionTag Attached: NOR
2022-10-11 13:37ucarrionTag Attached: NORAUTO
2022-10-11 13:38ucarrionIssue Monitored: remibrunet
2022-10-13 09:17psanjuanNote Added: 0142001
2022-10-13 09:17psanjuanAssigned Topsanjuan => jetxarri
2022-10-13 09:23ucarrionNote Added: 0142002
2022-10-13 10:19hgbotNote Added: 0142003
2022-10-13 10:32hgbotNote Added: 0142005
2022-10-13 11:01psanjuanNote Added: 0142007
2022-10-13 11:02psanjuanNote Deleted: 0142007
2022-10-13 14:43hgbotNote Added: 0142019
2022-10-13 14:43hgbotResolutionopen => fixed
2022-10-13 14:43hgbotStatusnew => closed
2022-10-13 14:43hgbotNote Added: 0142020
2022-10-13 14:48hgbotNote Added: 0142023
2022-10-13 14:48hgbotNote Added: 0142024
2022-10-14 12:54ucarrionNote Added: 0142068
2022-10-14 12:54ucarrionNote Added: 0142069
2022-10-14 12:54ucarrionStatusclosed => new
2022-10-14 12:54ucarrionResolutionfixed => open
2022-10-14 12:54ucarrionNote Deleted: 0142068
2022-10-14 12:55ucarrionFile Added: companyIT06026940012_0lftt.xml
2022-10-14 12:55ucarrionFile Added: particularIT06026940012_0lftu.xml
2022-10-26 10:57ucarrionStatusnew => scheduled
2022-10-26 10:57ucarrionAssigned Tojetxarri => ucarrion
2022-10-26 10:58ucarrionStatusscheduled => resolved
2022-10-26 10:58ucarrionResolutionopen => fixed
2022-10-26 10:58ucarrionStatusresolved => closed

Notes
(0142001)
psanjuan   
2022-10-13 09:17   
In last versions of OB there is a new field in the header of the BP window that allows to distinguish between final consumer and companies, among others.

If the customer is an individual the fields Nome and Cognome from Ad_user, fields First Name and Last Name.

As far as I know there is also a field to make this distinction in Norauto. Let us review that.
(0142002)
ucarrion   
2022-10-13 09:23   
Exactly, I'm referring to what Patricia is mentioning. I confirm that in Norauto we use this field to distinguish between particulars and companies.
(0142003)
hgbot   
2022-10-13 10:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/93 [^]
(0142005)
hgbot   
2022-10-13 10:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/16 [^]
(0142019)
hgbot   
2022-10-13 14:43   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/93 [^]
(0142020)
hgbot   
2022-10-13 14:43   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: a09466e5eb34a1b84f43a0a4798c1019e070f479
Author: Javier <javieretxarri@ekinbe.com>
Date: 13-10-2022 12:43:18
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/a09466e5eb34a1b84f43a0a4798c1019e070f479 [^]

Fixed ISSUE-50486: Add business partner type to determine what kind of bp is

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0142023)
hgbot   
2022-10-13 14:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^]
Changeset: 9188c5d7148090e81ed78d2157bf4ddde078d123
Author: Javier <javieretxarri@ekinbe.com>
Date: 13-10-2022 12:48:31
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/9188c5d7148090e81ed78d2157bf4ddde078d123 [^]

Fixed ISSUE-50486: A particular customer must be informed with name and surname instead of with the commercial name in the e-invoice XML file

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyAnagrafica.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiAnagraficiCessionario.java
---
(0142024)
hgbot   
2022-10-13 14:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/16 [^]
(0142069)
ucarrion   
2022-10-14 12:54   
Even if now is OK for particulars and employees informing <Nome> and <Cognome>, now the companies are also informed with those tags. In that case they should remain infomed with <Denominazione>.