Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0051030Openbravo LocalizationsLocalization Italypublic2022-11-29 12:202022-11-30 11:09
ucarrion 
jetxarri 
urgentmajoralways
closedfixed 
5
 
 
0051030: Incorrect <Importo> when more than one unit per line
The eInvoice web validator is raising and error because of and incorrect <PrezzoTotale> when submitting an invoice with a line with quantity >1 due to an incorrect value in the <ScontoMaggiorazzione><Importo> tag.
-Login an Italian terminal.
-Do sales INVOICES including discounts.
-Do sales INVOICES including no discounts.
-In the backoffice, execute the "Export Italy Invoices to a XML file" background process.
-In the sales invoice window check the files generated for any of the invoices created.
-In case of need, you can check the file validity in: https://www.fatturacheck.it/ [^]
The problem is that the importo of the discount, should be by unit and not the total discount.
Exactly the column
 c_invoice.c_invoiceLine.c_InvoiceLine_Offer.Amtoffer
NOR, NORAUTO
related to defect 0050642 closed jetxarri Incorrect <PrezzoTotale> when a return invoice contains a discount 
png PrezzoUnitario.png (71,777) 2022-11-29 12:20
https://issues.openbravo.com/file_download.php?file_id=17893&type=bug
png

png PrezzoUnitario_2lines.png (46,572) 2022-11-29 12:20
https://issues.openbravo.com/file_download.php?file_id=17894&type=bug
png

xls Table view B2B Ordinary invoice (5).xls (180,736) 2022-11-29 12:21
https://issues.openbravo.com/file_download.php?file_id=17895&type=bug
Issue History
2022-11-29 12:20ucarrionNew Issue
2022-11-29 12:20ucarrionAssigned To => Triage Omni OMS
2022-11-29 12:20ucarrionFile Added: PrezzoUnitario.png
2022-11-29 12:20ucarrionFile Added: PrezzoUnitario_2lines.png
2022-11-29 12:21ucarrionFile Added: Table view B2B Ordinary invoice (5).xls
2022-11-29 12:22ucarrionRelationship addedrelated to 0050642
2022-11-29 19:13aferrazAssigned ToTriage Omni OMS => jetxarri
2022-11-30 09:41jetxarriProposed Solution updated
2022-11-30 09:46hgbotNote Added: 0144239
2022-11-30 09:52ucarrionSummaryIncorrect <PrezzoTotale> cause by an incorrect <PrezzoUnitario> => Incorrect <Importo> when more than one unit per line
2022-11-30 09:52ucarrionDescription Updatedbug_revision_view_page.php?rev_id=25191#r25191
2022-11-30 09:52ucarrionProposed Solution updated
2022-11-30 09:53ucarrionTag Attached: NOR
2022-11-30 09:53ucarrionTag Attached: NORAUTO
2022-11-30 10:10ucarrionIssue Monitored: javietxe
2022-11-30 11:09hgbotResolutionopen => fixed
2022-11-30 11:09hgbotStatusnew => closed
2022-11-30 11:09hgbotNote Added: 0144242
2022-11-30 11:09hgbotNote Added: 0144243

Notes
(0144239)
hgbot   
2022-11-30 09:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/29 [^]
(0144242)
hgbot   
2022-11-30 11:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^]
Changeset: f7e5696d2a361bb19fbf922d03141ae16d910361
Author: Javier <javieretxarri@ekinbe.com>
Date: 30-11-2022 10:09:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/f7e5696d2a361bb19fbf922d03141ae16d910361 [^]

Fixes ISSUE-51030: Incorrect <Importo> when more than one unit per line

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDettaglioLinee.java
---
(0144243)
hgbot   
2022-11-30 11:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/29 [^]