Document Level Discount Calculation in XML

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