I have an invoice with a partial credit on it and whn I go to pay it the discount wont apply it just stays as the original invoie amount less the credit memo amount. I want the amount to be paid the original invoice amount less the discount less the credit.