diff --git a/office-alexander-logistics-app/pom.xml b/office-alexander-logistics-app/pom.xml
index ccee67d..d8e0ab9 100644
--- a/office-alexander-logistics-app/pom.xml
+++ b/office-alexander-logistics-app/pom.xml
@@ -129,6 +129,9 @@
${basedir}/../reports
+
+ ${basedir}/../workflow
+
${basedir}/src/test/resources
diff --git a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAPIServiceTest.java b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAPIServiceTest.java
index fabe3e5..ce9bae4 100644
--- a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAPIServiceTest.java
+++ b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAPIServiceTest.java
@@ -15,6 +15,7 @@ import org.imixs.workflow.FileData;
import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.exceptions.PluginException;
import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
@@ -40,7 +41,8 @@ public class KSeFAPIServiceTest {
// Test config
manager.setKsefToken(Params.TOKEN);
manager.setKsefNip(Params.NIP);
- manager.setKsefEndpoint("https://ksef-test.mf.gov.pl/api/v2");
+ // manager.setKsefEndpoint("https://ksef-test.mf.gov.pl/api/v2");
+ manager.setKsefEndpoint("https://api-test.ksef.mf.gov.pl/v2");
manager.setDebug(false);
// init() ausführen
@@ -52,6 +54,7 @@ public class KSeFAPIServiceTest {
}
+ @Disabled
@Test
@DisplayName("Upload Invoice XML (AES-256 + RSA)")
public void testUploadInvoice() {
@@ -83,7 +86,7 @@ public class KSeFAPIServiceTest {
private ItemCollection createWorkitem() throws IOException {
ItemCollection workitem = new ItemCollection();
// ---------- 2) XML laden ----------
- Path xmlPath = Paths.get("src/test/resources/ksef/example-invoice-01.xml");
+ Path xmlPath = Paths.get("src/test/resources/ksef/cargosoft-example-01.xml");
byte[] invoiceXml = Files.readAllBytes(xmlPath);
FileData fileData = new FileData("example-invoice-01.xml", invoiceXml, null, null);
diff --git a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAdapterTest.java b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAdapterTest.java
index a502738..5a8d850 100644
--- a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAdapterTest.java
+++ b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAdapterTest.java
@@ -54,7 +54,8 @@ public class KSeFAdapterTest {
private static Logger logger = Logger.getLogger(KSeFAdapterTest.class.getName());
- private static final String TEMPLATE_FILE = "ksef/ksef.xml";
+ // private static final String TEMPLATE_FILE = "ksef/ksef.xml";
+ private static final String TEMPLATE_FILE = "pl/e-invoice/templates/ksef.xml";
ItemCollection businessPartner;
diff --git a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAuthManagerTest.java b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAuthManagerTest.java
index 15b2c23..bc230b5 100644
--- a/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAuthManagerTest.java
+++ b/office-alexander-logistics-app/src/test/java/com/alexanderlogistics/ksef/api/KSeFAuthManagerTest.java
@@ -18,6 +18,7 @@ import javax.crypto.spec.SecretKeySpec;
import org.imixs.workflow.ItemCollection;
import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
@@ -75,6 +76,7 @@ public class KSeFAuthManagerTest {
}
+ @Disabled
@Test
@Order(4)
@DisplayName("Upload Invoice XML (AES-256 + RSA)")
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/cargosoft-example-01.xml b/office-alexander-logistics-app/src/test/resources/ksef/cargosoft-example-01.xml
new file mode 100644
index 0000000..0a21013
--- /dev/null
+++ b/office-alexander-logistics-app/src/test/resources/ksef/cargosoft-example-01.xml
@@ -0,0 +1,257 @@
+
+
+
+ CARGOSOFT
+ CUSTOMER
+ UTC
+ 1
+
+ 2024-08-14T11:51:03
+
+
+
+
+
+ Alexander Global Logistics GmbH
+
+ 001
+
+
+
+ Alexander Global Logistics GmbH
+
+ BRE
+
+
+ 224225
+
+ Ausgangsrechnung
+
+ R
+
+
+
+ EURO
+
+ EUR
+
+
+
+
+
+
+ EURO
+
+EUR
+
+
+ 3752.95
+
+
+
+
+ steuerfrei Ausfuhr
+
+ 0
+
+ 0.0
+
+
+
+
+EURO
+
+ EUR
+
+
+ 0.0
+
+
+
+
+ false
+
+ 202408
+ false
+ false
+
+ IM-ZEL
+
+ 40
+
+
+
+ 2024-08-14T00:00:00
+
+
+ D15445
+
+
+ Wancaster
+
+
+ Hochbuchstr. 17
+ 78253
+ Eigeltingen
+
+
+
+ DE319845483
+
+
+
+
+
+ A1972
+
+
+ Alexander Global Logistics GmbH
+ Museumstr. 2-6
+ Museumstr. 2-6
+ 28195
+ Bremen
+
+ DE
+ DEUTSCHLAND
+
+
+
+ 460/104/05589
+ DE250152875
+
+ Sparkasse Bremen
+ Sparkasse Bremen
+ USD - Account 555102599
+ IBAN: DE98 2905 0101 0555 1025 99
+ SWIFT: SBREDE22XXX
+ IBAN : DE97 2905 0101 0081 2163 92
+
+
+
+
+ Sofort zahlbar
+
+ 01
+
+
+ 2024-08-14T00:00:00
+
+
+ 2024-08-14T00:00:00
+ 00:00:00
+
+ Mohamed Kanaan
+ mkanaan@alexander-logistics.com
+ +49 421 56 646-191
+ +49 421 56 646-200
+
+
+
+ IM-GCA-2408-116
+ IMPORT
+ 1
+ 2023.2.6300 Terminals
+ 3265.865
+ 0.0
+ 0
+
+
+ 1004
+
+
+
+ 001_224225_240814_R.pdf
+
+
+
+
+
+
+ 5
+ IM-GCA-2408-116
+
+
+ EUST
+
+
+
+ Einfuhrumsatzsteuer laut Auslagen
+ ATC400012650820242452
+
+
+
+
+
+EURO
+
+ EUR
+
+
+ 3591.34
+
+
+
+
+ steuerfrei Ausfuhr
+
+0
+
+ 0.0
+
+
+
+
+ EUSt
+
+ EUST
+
+
+ 3591.340
+
+
+ 10
+ IM-GCA-2408-116
+
+
+ VP
+
+
+
+ Vorlageprovision 4,5 %
+ bei einer Einhaltung einer Zahlung
+ binnen 8 Banktagen kann der Betrag
+ in Abzug gebracht werden
+
+
+
+
+
+EURO
+
+ EUR
+
+
+ 161.61
+
+
+
+
+ steuerfrei Ausfuhr
+
+0
+
+ 0.0
+
+
+
+
+ other charges
+
+ SONST
+
+
+ 4.500
+
+
+
+
\ No newline at end of file
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/ksef.xml b/office-alexander-logistics-app/src/test/resources/ksef/ksef.xml
deleted file mode 100644
index 7a4dd4e..0000000
--- a/office-alexander-logistics-app/src/test/resources/ksef/ksef.xml
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
- FA
- 3
- 2026-06-05T02:45:33.422866Z
- Imixs eInvoice
-
-
-
-
- PL
-
- 9552521552
- ALEXANDER GLOBAL LOGISTICS POLAND sp. z o.o.
-
-
- PL
- ul. Gdańska 36, 70-660 Szczecin
-
-
- MBudas@alexander-logistics.com
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #CDTR-NUMBER#
- 2
- 2
-
-
-
-
- #CURRENCY#
-
-
- Szczecin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2
-
-
- 2
-
-
- 2
-
-
- 2
-
-
-
- 1
-
-
-
-
- 1
-
-
-
- 2
-
-
-
- 1
-
-
-
- VAT
-
-
-
-
-
-
-
- 6
-
-
-
- PL79116022020000000654306674
- BIGBPLPWXXX
- Bank Millennium S.A.
- Konto PLN
-
-
- PL16116022020000000654910469
- BIGBPLPWXXX
- Bank Millennium S.A.
- Konto EUR
-
-
- PL72116022020000000654911595
- BIGBPLPWXXX
- Bank Millennium S.A.
- Konto USD
-
-
-
-
\ No newline at end of file
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-eu-service-np.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-eu-service-np.xml
index d1e2876..703d868 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-eu-service-np.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-eu-service-np.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T15:43:22.241612Z
+ 2026-05-14T09:50:45.122365080Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/7470
- 2026-05-13
+ 2026-05-14
4620.00
4620.00
0.2326
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-mixed-rates.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-mixed-rates.xml
index 9f155ae..d7364b1 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-mixed-rates.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-mixed-rates.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T16:16:33.813835Z
+ 2026-05-14T09:50:45.516800880Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/7471
- 2026-05-13
+ 2026-05-14
3960.00
910.80
14040.00
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-np.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-np.xml
index 928c3e2..a0dcd88 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-np.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-np.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T16:21:25.551812Z
+ 2026-05-14T09:50:45.478749958Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/001
- 2026-05-13
+ 2026-05-14
10000.00
10000.00
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-npt.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-npt.xml
index f541add..2a86850 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-npt.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-npt.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T16:19:55.031750Z
+ 2026-05-14T09:50:45.408813197Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/001
- 2026-05-13
+ 2026-05-14
10000.00
10000.00
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-simple.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-simple.xml
index 78fc3fb..00f7f7f 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-simple.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/invoice-simple.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T16:14:40.127715Z
+ 2026-05-14T09:50:45.613224263Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/001
- 2026-05-13
+ 2026-05-14
10000.00
2300.00
12300.00
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/ksef.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/ksef.xml
deleted file mode 100644
index 05f17af..0000000
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/ksef.xml
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
- FA
- 3
- 2026-03-09T10:26:42.182273594Z
- Imixs eInvoice
-
-
-
-
- 9552521552
- Alexander Global Logistics
-
-
- PL
- Gdanska 36
- 70-660 Szczecin
-
-
- MBudas@alexander-logistics.com
-
-
-
-
-
-
-
- 8961576426
- AIRCOM PCC-PL SPÓŁKA Z OGRANICZONĄ
-
-
- PL
- ul. Fabryczna 20B
- 55-080 Pietrzykowice
-
-
- D21662
- 2
-
- 2
-
-
-
-
- USD
- 2026-01-23
-
- 6816
-
- 2026-02-22
-
-
-
- -180.00
- 0.00
- -180.00
-
-
- 2
-
- 2
-
- 2
-
- 2
-
-
- 1
-
-
-
- 1
-
-
- 2
-
-
- 1
-
-
-
- KOR
-
-
- 2026-01-23
- 6815
- 1
-
-
- 1
- 65f28c5b-e090-48e3-8731-a2673afdb433
- IM-GDY-2601-005
- szt.
- 1
- 0.00
- 0.00
-
-
- 2
- 759b4417-f34a-4919-9bb1-55ded4f6cf15
- IM-GDY-2601-005
- szt.
- 1
- -180.00
- -180.00
-
-
- 3
- 8963d345-06d6-41d3-b967-31d08fd51327
- IM-GDY-2601-005
- szt.
- 1
- 0.00
- 0.00
-
-
- 4
- 493564ea-db05-40fd-95ad-a28fdbc45200
- IM-GDY-2601-005
- szt.
- 1
- 0.00
- 0.00
-
-
- 5
- 6da7bc35-41fe-4072-b897-117edcfac889
- IM-GDY-2601-005
- szt.
- 1
- 0.00
- 0.00
-
-
-
diff --git a/office-alexander-logistics-app/src/test/resources/ksef/output/test-korrekturrechnung.xml b/office-alexander-logistics-app/src/test/resources/ksef/output/test-korrekturrechnung.xml
index 3fe9b47..b71fafd 100644
--- a/office-alexander-logistics-app/src/test/resources/ksef/output/test-korrekturrechnung.xml
+++ b/office-alexander-logistics-app/src/test/resources/ksef/output/test-korrekturrechnung.xml
@@ -6,7 +6,7 @@
FA
3
- 2026-05-13T15:41:50.791480Z
+ 2026-05-14T09:50:45.565082350Z
Imixs eInvoice
@@ -42,7 +42,7 @@
2025-02-10
Szczecin
FV/2025/001
- 2026-05-13
+ 2026-05-14
-900.00
-207.00
-48.15
@@ -51,7 +51,7 @@
2
2
- 1
+ 2
2
1