feat: Add LineTotalAmount for BASICWL profile

In the Factur-X 1.07.2 specifications the tag LineTotalAmount must be present not only for BASIC profile but also BASICWL profile.
This commit is contained in:
Adriann LERAY
2025-02-04 09:25:24 +01:00
parent 5ec06bd74b
commit 8b48e2070c

View File

@@ -859,7 +859,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
final String chargesTotalLine = "<ram:ChargeTotalAmount>" + currencyFormat(calc.getChargesForPercent(null)) + "</ram:ChargeTotalAmount>";
xml += "<ram:SpecifiedTradeSettlementHeaderMonetarySummation>";
if ((getProfile() != Profiles.getByName("Minimum")) && (getProfile() != Profiles.getByName("BASICWL"))) {
if ((getProfile() != Profiles.getByName("Minimum"))) {
xml += "<ram:LineTotalAmount>" + currencyFormat(calc.getTotal()) + "</ram:LineTotalAmount>";
xml += chargesTotalLine
+ allowanceTotalLine;