Discount on invoice

Hi, How do I give a buyer a discount on multiple purchases on a combined invoice. Everytime I try to do it, it says invalid. Thanks.