optionally display payments/credits on invoice based on date received, #24850
allow for taxes when using "fee" event to negate credit balance, #24991
minor convenience for invoice templates, #24850