apply_payments/apply_credits fixes from moving them to Billing.pm