# Allowance Charge Total Exclusive from VAT at document level

**URL:** <https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849>\
**Category:** General\
**Created:** [October 13, 2023, 1:03pm UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849 "2023-10-13T13:03:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![integration](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@integration](https://zatca1.discourse.group/u/integration)\
**Post date:** [October 13, 2023, 1:03pm UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/1 "2023-10-13T13:03:51Z")

</div>

I’m attempting to apply a discount Exclusive from VAT at document level, but the rules are not allowing me. invoice containing three invoice lines with a VAT category of ‘S’. this is my example:

“allowanceCharge”: {  
“allowanceReason”: “discount”,  
“amount”: “100.00”,  
“taxCategory”: {  
“id”: “O”,  
“percent”: “0.00”  
}  
},  
“legalMonetaryTotal”: {  
“lineExtensionAmount”: “300”,  
“allowanceTotalAmount”: “100.00”,  
“taxExclusiveAmount”: “300.0”,  
“taxInclusiveAmount”: “345.00”,  
“prePaidAmount”: “0.00”,  
“payableAmount”: “245.00”  
},

and the calculation is totally correct following this formula:

- 300 SAR \* 15%(VAT) = 345 SAR - 100 SAR(DISC.) = 245 SAR \*

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [October 25, 2023, 6:54am UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/2 "2023-10-25T06:54:54Z")

</div>

Dear @integration ,

please share with us the invoice through the relationship manager, as the VAT categories are not fully clear S or O also multiple fields are included in the calculations.

Regards,

---

<div class="post-metadata">

**Author:** ![integration](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@integration](https://zatca1.discourse.group/u/integration)\
**Post date:** [October 25, 2023, 1:43pm UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/3 "2023-10-25T13:43:02Z")

</div>

Dear @kiaziz  
my question is totally simple:  
there are two types of discounts in KSA. one is a discount including the vat and one is a discount excluding the vat, I’m asking about the second one is the \*\*discount excluding of vat \*\*.  
how we can integrate it in the xml!

\*\*this is an example: \*\*

```auto
"allowanceCharge": {
"allowanceReason": "discount",
"amount": "100.00",
"taxCategory": {
"id": "O",
"percent": "0.00"
}
},
"legalMonetaryTotal": {
"lineExtensionAmount": "300",
"taxExclusiveAmount": "300.0",
"taxInclusiveAmount": "345.00",
"prePaidAmount": "0.00",
"allowanceTotalAmount": "100.00",
"payableAmount": "245.00"
},

```

and the calculation is totally correct following this formula:

```auto
300 SAR * 15% (VAT) = 300 SAR + 45 VAT = 345 SAR ( taxInclusiveAmount )

```

So, the discount will be after like

```auto
345.00 - 100.00 ( allowanceTotalAmount ) = 245.00 ("payableAmount")
(NB : VAT Still 45.00)

```

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [October 26, 2023, 6:01am UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/4 "2023-10-26T06:01:10Z")

</div>

yes it’s correct like this.

we asked for the invoice to check the invoice lines calculations as well,  
but if you are asking about this one only, then no need to share the invoice.  
it’s correct.

Regards,

---

<div class="post-metadata">

**Author:** ![mah-dc](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mah-dc](https://zatca1.discourse.group/u/mah-dc)\
**Post date:** [August 22, 2024, 2:19pm UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/5 "2024-08-22T14:19:53Z")

</div>

I have a similar scenario and could not have a valid XML.

I have a line level discount that need to be excluded from VAT amount calculation.

Example:  
Qty = 1  
Price = 100  
Line Level Allowance = 10 (%10)

But I need the VAT Amount to be calculated on 100 (Qty \* Price) = 15

The output should be like this:  
TaxInclusiveAmount = (Qty \* Price) + Tax Amount - Discount  
TaxInclusiveAmount = 100 + 15 - 10 = 105

What is the correct XML for the above scenario ?

---

<div class="post-metadata">

**Author:** ![diedna](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@diedna](https://zatca1.discourse.group/u/diedna)\
**Post date:** [September 2, 2024, 9:43am UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/6 "2024-09-02T09:43:03Z")

</div>

Do you have a solution to this problem and perhaps an example of an XML file? Thank you.

---

<div class="post-metadata">

**Author:** ![arjun\_tech24](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@arjun\_tech24](https://zatca1.discourse.group/u/arjun_tech24)\
**Post date:** [July 14, 2025, 3:59pm UTC](https://zatca1.discourse.group/t/allowance-charge-total-exclusive-from-vat-at-document-level/849/7 "2025-07-14T15:59:01Z")

</div>

@integration , @kiaziz , @mah-dc , @diedna

**has anyone found a solution for this scenario?**

Would appreciate any guidance or confirmation based on your experience.
