Skip to content

Commit

Permalink
refactoring - added new e-invoice dependency (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Dec 29, 2024
1 parent 5ba6662 commit a20a074
Showing 10 changed files with 13 additions and 1,658 deletions.
7 changes: 7 additions & 0 deletions imixs-archive-documents/pom.xml
Original file line number Diff line number Diff line change
@@ -39,6 +39,13 @@
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.imixs.util</groupId>
<artifactId>imixs-e-invoice</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>


<!-- Apache PDFBox -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@
import java.math.RoundingMode;
import java.util.logging.Logger;

import org.imixs.archive.documents.einvoice.EInvoiceModel;
import org.imixs.archive.documents.einvoice.EInvoiceModelFactory;
import org.imixs.archive.documents.einvoice.TradeParty;
import org.imixs.einvoice.EInvoiceModel;
import org.imixs.einvoice.EInvoiceModelFactory;
import org.imixs.einvoice.TradeParty;
import org.imixs.workflow.FileData;
import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.exceptions.AdapterException;
@@ -56,7 +56,6 @@ public ItemCollection execute(ItemCollection workitem, ItemCollection event)
byte[] xmlData = readXMLContent(eInvoiceFileData);
try {
EInvoiceModel model = EInvoiceModelFactory.read(new ByteArrayInputStream(xmlData));

resolveItemValues(workitem, model);

} catch (FileNotFoundException e) {
Loading

0 comments on commit a20a074

Please # to comment.