From a272c8bdb44bd83fc29df723edbedc67db09d60e Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Tue, 12 May 2026 23:09:30 +0200 Subject: [PATCH] new tax code CARGO_023 --- .../java/com/alexanderlogistics/einvoice/TaxCode.java | 8 +++++++- .../com/alexanderlogistics/ksef/api/KSeFAdapterTest.java | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/einvoice/TaxCode.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/einvoice/TaxCode.java index e6eb42f..079a043 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/einvoice/TaxCode.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/einvoice/TaxCode.java @@ -78,7 +78,13 @@ public enum TaxCode { * (Art. 28b UStG-PL, excluding Art. 100 sec. 1 no. 4). * NOT reportable in VAT-UE. */ - CARGO_NPT("NPT", "np I", "P_13_8", null); + CARGO_NPT("NPT", "np I", "P_13_8", null), + + /** + * Art. 83 ust. 1 pkt 23 ustawy o VAT — usługi transportu międzynarodowego (z + * definicją z ust. 3) + */ + CARGO_023("023", "0 KR", "P_13_6_1", null); private final String cargosoftCode; private final String p12Value; 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 419b5e1..32eaeba 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 @@ -327,7 +327,7 @@ public class KSeFAdapterTest { } /** - * Negative test: an unknown CargoSoft VAT code (here the mixed code "023" + * Negative test: an unknown CargoSoft VAT code (here the mixed code "0xx" * which is intentionally not mapped) must abort processing with a * PluginException. This guards against silently producing JPK_V7-invalid * invoices when CargoSoft is extended with a new code. @@ -356,7 +356,7 @@ public class KSeFAdapterTest { .setItemValue("datev.umsatz", 1000.00) .setItemValue("datev.vatrate", 23.0) // 023 is the CargoSoft mixed code - NOT mapped, expected to fail - .setItemValue("cargosoft.vat.code", "023"); + .setItemValue("cargosoft.vat.code", "0xx"); childItems.add(lineItem.getAllItems()); workitem.setItemValue("_childitems", childItems);