# Calculation of Discount 

**URL:** <https://zatca1.discourse.group/t/calculation-of-discount/9334>\
**Category:** General\
**Created:** [December 11, 2025, 10:38am UTC](https://zatca1.discourse.group/t/calculation-of-discount/9334 "2025-12-11T10:38:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HassanDiab](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@HassanDiab](https://zatca1.discourse.group/u/HassanDiab)\
**Post date:** [December 11, 2025, 10:38am UTC](https://zatca1.discourse.group/t/calculation-of-discount/9334/1 "2025-12-11T10:38:46Z")

</div>

I have invoice this invoice include discount as attached :

Discount : 95.45

and Discount Into SAP System : 28245.000

the Gross Value : 29590.000

when trying to send this payload to zatca the response ; Invalid value for the field EInvoice.InvoiceLine.[0].AllowanceCharge.[0].Amount.value. Send the correct the value and try again the issue in the calculation based upon the percentage i have send to zatca cause when we will claculate the value the value based upon provided percentage the value must be :

28243.655000 not 23245.0000

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/2X/c/c5478dce9762f4f6a2dcf16a42522dcd5b06d5f9.png)

since the issue because the percentage not accept only rounded 2 decimales

Regards

Please help in this issue

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [December 11, 2025, 11:54am UTC](https://zatca1.discourse.group/t/calculation-of-discount/9334/2 "2025-12-11T11:54:20Z")

</div>

@HassanDiab instead of providing the discount amount as “base” multiplied by “percentage” you can directly provide the discount as absolute value without providing the base and percentage.
