Error when providing base amount for line level charges

Hi,

We are uploading a transaction which has line level discount and charges along with base amount and percentage. The error received is
Item net price (BT-146) must equal (Gross price (BT-148) - Allowance amount (BT-147)) when gross price is provided.
The data being sent is
cac:Price
<cbc:PriceAmount currencyID=“SAR”>520000.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode=“OTH”>1000.000000</cbc:BaseQuantity>
cac:AllowanceCharge
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:MultiplierFactorNumeric8.00</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID=“SAR”>40000.00</cbc:Amount>
<cbc:BaseAmount currencyID=“SAR”>500000.00</cbc:BaseAmount>
</cac:AllowanceCharge>
cac:AllowanceCharge
cbc:ChargeIndicatortrue</cbc:ChargeIndicator>
cbc:MultiplierFactorNumeric12.00</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID=“SAR”>60000.00</cbc:Amount>
<cbc:BaseAmount currencyID=“SAR”>500000.00</cbc:BaseAmount>
</cac:AllowanceCharge>
</cac:Price>

If we dont provide the base amount and percentage in the charges section, the xml gets validated but we we provide these values, there is an error. It seems that the charges amount are not considered in the calculation as it is not mentioned in the error message also,

Kindly resolve this error ASAP as our client is already LIVE in Production

I have requested a sample xml with these amounts several times in the past but I have still not received it as part of SDK

Regards
Vivek

Hello @vivek.kedia,
Here is the attach file you will find all the clarification on it
20230519_ZATCA_Electronic_Invoice_XML_Implementation_Standard_ vF.pdf (1.0 MB)
and for samples you can find it when download SDK from sandbox in this path (zatca-einvoicing-sdk-238-R3.3.3\zatca-einvoicing-sdk-238-R3.3.3\Data\Samples)

Regards,