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:
@@ -859,7 +859,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
|||||||
final String chargesTotalLine = "<ram:ChargeTotalAmount>" + currencyFormat(calc.getChargesForPercent(null)) + "</ram:ChargeTotalAmount>";
|
final String chargesTotalLine = "<ram:ChargeTotalAmount>" + currencyFormat(calc.getChargesForPercent(null)) + "</ram:ChargeTotalAmount>";
|
||||||
|
|
||||||
xml += "<ram:SpecifiedTradeSettlementHeaderMonetarySummation>";
|
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 += "<ram:LineTotalAmount>" + currencyFormat(calc.getTotal()) + "</ram:LineTotalAmount>";
|
||||||
xml += chargesTotalLine
|
xml += chargesTotalLine
|
||||||
+ allowanceTotalLine;
|
+ allowanceTotalLine;
|
||||||
|
|||||||
Reference in New Issue
Block a user