Änderung ksef template und umrechnugn der Kurse

This commit is contained in:
Ralph Soika 2026-05-12 15:47:04 +02:00
parent 5b4401bb82
commit f72ef5cce6
3 changed files with 23 additions and 5 deletions

View file

@ -102,7 +102,13 @@ public class KSeFInvoiceLineBuilder {
String currency = workitem.getItemValueString("invoice.currency");
if (!"PLN".equalsIgnoreCase(currency) && !currency.isBlank()) {
BigDecimal exchangeRate = BigDecimal.valueOf(workitem.getItemValueDouble("invoice.rate"));
writeForeignCurrencyFields(model, elementFa, aggregates, exchangeRate);
// 11.05.2026 - Maciej Budas:
// Exchange rate in KSeF is used CargoSoft format (EUR=PLN), whereas it should
// be PLN=EUR (i.e., 4.2537). To get the correct data in KSeF, there is just to
// divide 1 by the current rate (1 / 0.235089).
BigDecimal invertedRate = BigDecimal.ONE.divide(exchangeRate, 4, RoundingMode.HALF_UP);
writeForeignCurrencyFields(model, elementFa, aggregates, invertedRate);
}
// Phase 4: remove all summary placeholders that were not filled.

View file

@ -85,8 +85,14 @@
<!-- Keine Selbstfakturierung -->
<P_17>2</P_17>
<!-- Kein Reverse Charge -->
<P_18>2</P_18>
<!-- Kein Reverse Charge
11.5.2026 Maciej Budas :
Please apply this change to all upcoming invoices to ensure the "Reverse Charge" (Odwrotne
obciazenie) flag is correctly set to "True".
Means we change the value from 2 to 1
-->
<P_18>1</P_18>
<!-- Kein Split Payment (Rechnung unter 15.000 PLN/EUR) -->
<P_18A>2</P_18A>

View file

@ -85,8 +85,14 @@
<!-- Keine Selbstfakturierung -->
<P_17>2</P_17>
<!-- Kein Reverse Charge -->
<P_18>2</P_18>
<!-- Kein Reverse Charge
11.5.2026 Maciej Budas :
Please apply this change to all upcoming invoices to ensure the "Reverse Charge" (Odwrotne
obciazenie) flag is correctly set to "True".
Means we change the value from 2 to 1
-->
<P_18>1</P_18>
<!-- Kein Split Payment (Rechnung unter 15.000 PLN/EUR) -->
<P_18A>2</P_18A>