- Notifications
You must be signed in to change notification settings - Fork56
Closed
Labels
Description
Hi guys,
since the latest 1.3.3 update, the following UBL block is invalid:
<cac:LegalMonetaryTotal> <cbc:LineExtensionAmountcurrencyID="EUR">10781.25</cbc:LineExtensionAmount> <cbc:TaxExclusiveAmountcurrencyID="EUR">10781.25</cbc:TaxExclusiveAmount> <cbc:TaxInclusiveAmountcurrencyID="EUR">12829.69</cbc:TaxInclusiveAmount> <cbc:AllowanceTotalAmountcurrencyID="EUR">0</cbc:AllowanceTotalAmount> <cbc:ChargeTotalAmountcurrencyID="EUR">0</cbc:ChargeTotalAmount> <cbc:PrepaidAmountcurrencyID="EUR">12829.69</cbc:PrepaidAmount> <cbc:PayableRoundingAmountcurrencyID="EUR">0</cbc:PayableRoundingAmount> <cbc:PayableAmountcurrencyID="EUR">0</cbc:PayableAmount> </cac:LegalMonetaryTotal>
I think the calculation model would now requireTaxInclusiveAmount
to be 0???
[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).]]; (exists(cbc:PrepaidAmount) and not(exists(cbc:PayableRoundingAmount)) and (xs:decimal(cbc:PayableAmount) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(xs:decimal(cbc:PrepaidAmount)) and not(xs:decimal(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount)) or (xs:decimal(cbc:PrepaidAmount) and xs:decimal(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(xs:decimal(cbc:PrepaidAmount)) and xs:decimal(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = xs:decimal(cbc:TaxInclusiveAmount)))