User story
Customer has auto-payments enabled. After some time, customer find paid invoice with wrong charge.
Use case #1: Refund money to the current billing period
Roles: Administrator, Customer
Preconditions: Customer has invoice with amount paid = 100$, amount net = 100$, adjustments = 0$
Scenario:
Administrator make adjustment with 'Credit adjustment Amount to current billing period' checked, adjust amount - 30$. After submitting, 30$ will appear in the customer unallocated payments, or it will be used to cover another unpaid invoices.
Use case #2: Refund money to the credit card
Roles: Administrator, Customer
Preconditions: Customer has invoice with amount paid = 100$, amount net = 100$, adjustments = 30$, allowed refund for the credit card = 40$
Scenario:
Administrator make adjustment with 'Refund adjustment Amount to original Payment Method' checked, maximum available adjust amount - 40$. After submitting, 40$ will be refunded to the credit card. If some amount (up to 40$) wasn't successfully refunded to credit card, it will appear in the unallocated payments.