When to record credit transaction?