- Fix payment_priority() to include ALL refund statuses (EXPIRED_REFUNDED, UNDERPAID_REFUNDED, OUT_OF_STOCK_REFUNDED) not just DOUBLEPAY_REFUND - Auto-sweep operations (CONFIRMED, CONFIRMED_OVERPAID, NO_REFUND) now have lowest priority (3) - Refactor to use match/case statements for better readability - Add comprehensive docstring explaining priority system - Ensure refunds processed before auto-sweep for customer service priority Priority order: 0=refunds, 1=incoming, 2=other (pending/terminals), 3=auto-sweep |
||
|---|---|---|
| .. | ||
| lib | ||
| models | ||
| scripts | ||
| static | ||
| templates | ||
| tests | ||
| views | ||
| __init__.py | ||
| config_jinja2.py | ||
| request_methods.py | ||
| routes.py | ||