# Document Level Discount Calculation in XML

**URL:** <https://zatca1.discourse.group/t/document-level-discount-calculation-in-xml/8910>\
**Category:** General\
**Created:** [October 28, 2025, 11:11am UTC](https://zatca1.discourse.group/t/document-level-discount-calculation-in-xml/8910 "2025-10-28T11:11:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ucitco](https://avatars.discourse-cdn.com/v4/letter/u/4bbf92/32.png) [@ucitco](https://zatca1.discourse.group/u/ucitco)\
**Post date:** [October 28, 2025, 11:11am UTC](https://zatca1.discourse.group/t/document-level-discount-calculation-in-xml/8910/1 "2025-10-28T11:11:42Z")

</div>

Hello,

What should I do exactly in document level discount?

for example

I sold an item with 100 subtotal =\> 115 inclusive  
I have a discount for the customer with 15

what should be filled in the XML for invoice lines and totals?

Regards
