Decimals on Item Gross Price & Item Net Price

There is no decimal limit on Item Net price but this is creating an issue when we are calculating Item Net price by providing Item gross price & Item Price discount.

Getting this error: BR-KSA-EN16931-07:Item net price (BT-146) must equal (Gross price (BT-148) - Allowance amount (BT-147)) when gross price is provided.

 <cac:Price>
            <cbc:PriceAmount currencyID="SAR">1212.4442452</cbc:PriceAmount>
            <cac:AllowanceCharge>
                <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                <cbc:BaseAmount currencyID="SAR">1212.44</cbc:BaseAmount>
                <cac:TaxCategory>
                    <cac:TaxScheme>
                        <cbc:ID>VAT</cbc:ID>
                    </cac:TaxScheme>
                </cac:TaxCategory>
            </cac:AllowanceCharge>
        </cac:Price>

Does this mean the Item Gross price should also have unlimited decimals?

Please retry changing the base amount to include all decimal places.
<cbc:BaseAmount currencyID=β€œSAR”>1212.4442452</cbc:BaseAmount>

@Ankit_Tiwari Passing the decimal number in Item Gross Price equal to the no. of decimals present in Item Net Price will resolve the issue. However the issue is with the requirement whether there is no limit on no. of decimals on Item gross price as well.

Dear @Jiten, please note that there is no decimal place restriction rule assigned to BT-148 and therefore the number of decimals for BT-148 is not restricted to 2 digits.

1 Like