Discount for customer

@Parker1090 is correct, there is an example here. Using this method you can also discount off particular sales codes.

http://community.quickfile.co.uk/t/how-to-apply-discount-to-an-invoice/295/2