Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050831
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo Localizations] Localization Italymajoralways2022-11-10 13:122022-11-14 12:17
ReporterucarrionView Statuspublic 
Assigned Tojetxarri 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Regression introduced in release
Summary

0050831: Discount tag is in the eInvoice XML even if the transaction has no discount related

DescriptionCurrently the eInvoice XML informs always the discount tag, even if in the related transaction No discount has been applied. In those cases, the discount tag is informed as below:

        <ScontoMaggiorazione>
          <Tipo>SC</Tipo>
          <Importo>0.00</Importo>
        </ScontoMaggiorazione>

Following the authorities' specs, there is NO need to inform this tag if there is no real discount in the transaction. See point 2.1.1.8. For the example attached check that, if the mentioned tag is removed, the https://www.fatturacheck.it/ [^] web validator validates perfectly the file.
Steps To Reproduce-Login an Italian terminal.
-Do a sales invoice adding a product with NO discount involved.
-Pay in cash and complete.
-Go to the backoffice and run the 'Export Italy Invoices to a XML file' background process.
Go to the Sales Order window and see the attachment generated for the record of the just generated invoice.
-Open the XML file and check.
Proposed SolutionThe <ScontoMaggiorazione> must be informed ONLY if there is a discount in the transaction (no matter if it is manual and/or automatic).
TagsNOR, NORAUTO
Attached Filesxml file icon IT06026940012_0lfvn.xml [^] (2,953 bytes) 2022-11-10 13:12
xls file icon Table view B2B Ordinary invoice (5).xls [^] (180,736 bytes) 2022-11-10 13:44

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0143437)
hgbot (developer)
2022-11-10 18:27

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/25 [^]
(0143519)
hgbot (developer)
2022-11-14 12:17

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/merge_requests/25 [^]
(0143520)
hgbot (developer)
2022-11-14 12:17

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice [^]
Changeset: 34b230fef0cbcc06661a5db4698797085eb4a635
Author: Javier Etxarri <javier.etxarri@openbravo.com>
Date: 14-11-2022 11:17:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.italy.einvoice/-/commit/34b230fef0cbcc06661a5db4698797085eb4a635 [^]

Fixes ISSUE-50831: Discount tag is in the eInvoice XML even if the transaction has no discount related

---
M src-test/org/openbravo/localization/italy/einvoice/TestItalyXMLCreationFromJson.java
M src/org/openbravo/localization/italy/einvoice/xmlengine/document/ItalyDettaglioLinee.java
---

- Issue History
Date Modified Username Field Change
2022-11-10 13:12 ucarrion New Issue
2022-11-10 13:12 ucarrion Assigned To => psanjuan
2022-11-10 13:12 ucarrion File Added: IT06026940012_0lfvn.xml
2022-11-10 13:12 ucarrion Tag Attached: NOR
2022-11-10 13:12 ucarrion Tag Attached: NORAUTO
2022-11-10 13:44 ucarrion File Added: Table view B2B Ordinary invoice (5).xls
2022-11-10 15:57 jetxarri Assigned To psanjuan => jetxarri
2022-11-10 18:27 hgbot Note Added: 0143437
2022-11-14 12:17 hgbot Note Added: 0143519
2022-11-14 12:17 hgbot Resolution open => fixed
2022-11-14 12:17 hgbot Status new => closed
2022-11-14 12:17 hgbot Note Added: 0143520


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker