Any solution for rounding issues?

Is there any solution for 1 halal difference between ERP system calculations and Zatca API since the ERP uses 8 decimals and Zatca force to use only 2 decimals.
What is the solution for 1 halala difference between tow results?

2 Likes

@engbassel

I haven’t encountered this issue, but maybe this sample invoice in Zatca eInvoice SDK can help you.

“\zatca-einvoicing-sdk-238-R3.3.6\Data\Samples\Standard\Invoice\Standard Invoice with Payable Rounding Adjustment.xml”

    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="SAR">869.57</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="SAR">869.57</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="SAR">1000.01</cbc:TaxInclusiveAmount>
        <cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount>
        <cbc:ChargeTotalAmount currencyID="SAR">0</cbc:ChargeTotalAmount>
        <cbc:PrepaidAmount currencyID="SAR">0</cbc:PrepaidAmount>
        <cbc:PayableRoundingAmount currencyID="SAR">-0.01</cbc:PayableRoundingAmount>
        <cbc:PayableAmount currencyID="SAR">1000.00</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>