Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0050642 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo Localizations] Localization Italy | major | always | 2022-10-26 10:15 | 2022-10-27 10:58 | |||
| Reporter | ucarrion | View Status | public | |||||
| Assigned To | jetxarri | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | |||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | approved | |||||||
| Regression date | ||||||||
| Regression introduced by commit | ||||||||
| Regression level | ||||||||
| Support ticket | ||||||||
| OBNetwork customer | Gold | |||||||
| Regression introduced in release | ||||||||
| Summary | 0050642: Incorrect <PrezzoTotale> when a return invoice contains a discount | |||||||
| Description | The total price of a return invoice (see the tag <PrezzoTotale> in the XML) is incorrectly calculated when the transaction contains a discount. Then, the validator raises an error: "PrezzoTotale non calcolato secondo le specifiche tecniche" Find two examples attached (IT06026940012_0lfva has discount and IT06026940012_0lfv8 has NO discount). | |||||||
| Steps To Reproduce | -Login an italian terminal -Do a sales invoice including a discount -Return the previous invoiced sale -Run the export XML process in the backoffice -Get the XMLs generated as attachment in the Sales Invoice window -Repeat the same process by using the same product with no discount now -Submit both XML files in the https://www.fatturacheck.it/ [^] web validator and check that the first of the files gets the error message while the second one normally is OK | |||||||
| Proposed Solution | Below the current result: <DettaglioLinee> <NumeroLinea>1</NumeroLinea> <CodiceArticolo> <CodiceTipo>EAN</CodiceTipo> <CodiceValore>0000003475614</CodiceValore> </CodiceArticolo> <Descrizione>FAROL ESQ H4 VALEO</Descrizione> <Quantita>1.00</Quantita> <PrezzoUnitario>44.60</PrezzoUnitario> <ScontoMaggiorazione> <Tipo>SC</Tipo> <Importo>7.00</Importo> </ScontoMaggiorazione> <PrezzoTotale>51.60</PrezzoTotale> <AliquotaIVA>22.00</AliquotaIVA> <AltriDatiGestionali> <TipoDato>SCONTRINO</TipoDato> </AltriDatiGestionali> </DettaglioLinee> Below the expected result: <DettaglioLinee> <NumeroLinea>1</NumeroLinea> <CodiceArticolo> <CodiceTipo>EAN</CodiceTipo> <CodiceValore>0000003475614</CodiceValore> </CodiceArticolo> <Descrizione>FAROL ESQ H4 VALEO</Descrizione> <Quantita>1.00</Quantita> <PrezzoUnitario>51.60</PrezzoUnitario> <ScontoMaggiorazione> <Tipo>SC</Tipo> <Importo>7.00</Importo> </ScontoMaggiorazione> <PrezzoTotale>51.60</PrezzoTotale> <AliquotaIVA>22.00</AliquotaIVA> <AltriDatiGestionali> <TipoDato>SCONTRINO</TipoDato> </AltriDatiGestionali> </DettaglioLinee> The <PrezzoUnitario> must be: [c_invoice.c_invoiceLine.PriceActual] + [c_invoice.c_invoiceLine.c_InvoiceLine_Offer.Amtoffer] | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||
|
||||||||
Notes |
|
|
(0142630) hgbot (developer) 2022-10-27 07:31 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/22 [^] |
|
(0142635) hgbot (developer) 2022-10-27 10:58 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^] Changeset: 0e9b7fa2d20cb1b6d09bf953863bfc7ddd74d6ce Author: Javier <javieretxarri@ekinbe.com> Date: 27-10-2022 08:58:19 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/0e9b7fa2d20cb1b6d09bf953863bfc7ddd74d6ce [^] Fixes ISSUE-50642: Incorrect <PrezzoTotale> when a return invoice contains a discount --- M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDettaglioLinee.java --- |
|
(0142636) hgbot (developer) 2022-10-27 10:58 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/22 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2022-10-26 10:15 | ucarrion | New Issue | |
| 2022-10-26 10:15 | ucarrion | Assigned To | => psanjuan |
| 2022-10-26 10:15 | ucarrion | File Added: IT06026940012_0lfva.xml | |
| 2022-10-26 10:15 | ucarrion | OBNetwork customer | => Gold |
| 2022-10-26 10:16 | ucarrion | File Added: IT06026940012_0lfv8.xml | |
| 2022-10-26 15:59 | ucarrion | Proposed Solution updated | |
| 2022-10-26 16:13 | psanjuan | Assigned To | psanjuan => jetxarri |
| 2022-10-27 07:31 | hgbot | Merge Request Status | => open |
| 2022-10-27 07:31 | hgbot | Note Added: 0142630 | |
| 2022-10-27 10:58 | hgbot | Merge Request Status | open => approved |
| 2022-10-27 10:58 | hgbot | Resolution | open => fixed |
| 2022-10-27 10:58 | hgbot | Status | new => closed |
| 2022-10-27 10:58 | hgbot | Note Added: 0142635 | |
| 2022-10-27 10:58 | hgbot | Note Added: 0142636 | |
| 2022-11-29 12:22 | ucarrion | Relationship added | related to 0051030 |
| Copyright © 2000 - 2009 MantisBT Group |