Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0050516Openbravo LocalizationsLocalization Italypublic2022-10-13 14:292022-10-24 09:49
remibrunet 
jetxarri 
normalmajoralways
closedfixed 
5
 
 
0050516: [TI-ITALY] - Return Invoice e-invoice xml contains wrong values
When doing an e-invoice of a return invoice, the xml contains wrong values.

The field Quantity is negative while it should be greater or equal to 0.

The field TipoDocumento has the value TD01, while it should be TD04.


Attached to this the xml generated.
Go on a POS
Do a return with an invoice.
Go to the BackOffice
Generate the XML.
On the return invoice, open the XML.

if you try to validate this xml on the fiscal test site, the xml isn't correct.
Set the Quantita field value positive.

Set the TipoDocumento value to TD04 in case of return.
NOR, NORAUTO
xml IT06026940012_0lftm.xml (3,037) 2022-10-13 14:29
https://issues.openbravo.com/file_download.php?file_id=17641&type=bug
xml IT06026940012_0lfuu.xml (2,951) 2022-10-20 15:22
https://issues.openbravo.com/file_download.php?file_id=17695&type=bug
Issue History
2022-10-13 14:29remibrunetNew Issue
2022-10-13 14:29remibrunetAssigned To => psanjuan
2022-10-13 14:29remibrunetFile Added: IT06026940012_0lftm.xml
2022-10-13 14:32remibrunetProposed Solution updated
2022-10-13 14:55psanjuanAssigned Topsanjuan => jetxarri
2022-10-13 14:58ucarrionIssue Monitored: ucarrion
2022-10-14 08:09hgbotNote Added: 0142051
2022-10-14 08:11hgbotNote Added: 0142052
2022-10-18 16:13hgbotResolutionopen => fixed
2022-10-18 16:13hgbotStatusnew => closed
2022-10-18 16:13hgbotNote Added: 0142241
2022-10-18 16:13hgbotNote Added: 0142242
2022-10-18 18:05hgbotNote Added: 0142249
2022-10-18 18:05hgbotNote Added: 0142250
2022-10-20 15:21ucarrionNote Added: 0142358
2022-10-20 15:22ucarrionNote Deleted: 0142358
2022-10-20 15:22ucarrionNote Added: 0142359
2022-10-20 15:22ucarrionStatusclosed => new
2022-10-20 15:22ucarrionResolutionfixed => open
2022-10-20 15:22ucarrionTag Attached: NOR
2022-10-20 15:22ucarrionTag Attached: NORAUTO
2022-10-20 15:22ucarrionFile Added: IT06026940012_0lfuu.xml
2022-10-24 09:45hgbotNote Added: 0142433
2022-10-24 09:49hgbotResolutionopen => fixed
2022-10-24 09:49hgbotStatusnew => closed
2022-10-24 09:49hgbotNote Added: 0142434
2022-10-24 09:49hgbotNote Added: 0142435

Notes
(0142051)
hgbot   
2022-10-14 08:09   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/19 [^]
(0142052)
hgbot   
2022-10-14 08:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/94 [^]
(0142241)
hgbot   
2022-10-18 16:13   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-50516: Adding is return property to the order and invoice using the document type

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0142242)
hgbot   
2022-10-18 16:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/94 [^]
(0142249)
hgbot   
2022-10-18 18:05   
Directly closing issue as related merge request is already approved.

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

Fixes ISSUE-50516: [TI-ITALY] - Return Invoice e-invoice xml contains wrong values. Negative Quantity and wrong document type

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiGeneral.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiGeneraliDocumento.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDettaglioLinee.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyFattureElettronicaBody.java
---
(0142250)
hgbot   
2022-10-18 18:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/19 [^]
(0142359)
ucarrion   
2022-10-20 15:22   
Still KO for me. Even if the <TipoDocumento> tag changes to TD04 whenever it is a return, the amounts are still negative while they are expected to be positive.

Find file attached.
(0142433)
hgbot   
2022-10-24 09:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/21 [^]
(0142434)
hgbot   
2022-10-24 09:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^]
Changeset: a9b84c6fb181f578d197d586ae6684570bb22bf1
Author: Javier <javieretxarri@ekinbe.com>
Date: 24-10-2022 07:49:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/a9b84c6fb181f578d197d586ae6684570bb22bf1 [^]

Fixes ISSUE-50516: Apart from quantity, amounts must be also positive

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiGeneraliDocumento.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDatiRiepilogo.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDettaglioLinee.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyScontoMaggiorazione.java
---
(0142435)
hgbot   
2022-10-24 09:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/21 [^]