It would be very helpful to have the option to apply credit balances (either from memos or prepayments) at the time the invoice is created. Not having this option causes confusion becuase customers get the invoices and think they still have to pay, resulting in duplicate payments.