Deducting Store Credit (During Checkout)
Apply store credit to orders during POS checkout.
- During POS checkout, select customer for the order
- System displays customer's available store credit balance
- Select "Store Credit" payment method or use in split payment
- Enter amount to apply (defaults to full balance if sufficient)
- System validates:
- Customer has sufficient balance
- Deduction amount doesn't exceed balance
- Customer record exists and is valid
- If valid, store credit is deducted locally
- If Shopify integration active, balance is synced via debit mutation
- Transaction history is updated
- Remaining order total is displayed for additional payment
Balance Validation: System checks customer.storeCredit >== deduction amount before processing. If insufficient, warning is shown and transaction proceeds with remaining payment methods. Balance is checked both locally and (if possible) from Shopify before allowing deduction.