How to enter one or more discounts when I receive a payment?

How to enter one or more discounts when I receive a payment?

Really the problema is more complex..
In Argentina when our customers pay for something normally they must "retain" some of our money as a TAX paid in advanced. When the year ends, we discount all this money from tne yearly TAX.
How can I put this discounted value in the receipt to balance our Bank with our TAXES and consider also this money in advanced as the correspondig TAX in the reports?

Thanks in advanced.