{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Correct Result{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('error') %}
Fix the winning combinations below and preview. Only tickets whose outcome or payout changes are touched: wrong payouts are taken back from the player (the wallet can go negative), commission paid on tickets that now win is taken back from the agents, and the correct winners are paid. Applying re-grades the affected tickets automatically — you don't need to settle the race again.
{% if dividendRows is not empty %}New result saved for {{ changedLabels|join(', ') }}. Re-grading tickets… keep this page open until it finishes.
Back to raceOnly {{ changedLabels|join(', ') }} tickets are affected — every other bet type on this race keeps its settlement.
No settled ticket changes with these combinations.
{% else %}| Ticket | Player | Bet type | Picks | Was | Becomes | Wallet change | Commission back |
|---|---|---|---|---|---|---|---|
| {{ c.reference }} | {{ c.player }} | {{ c.betType|replace({'_': ' '})|title }} | {{ c.picks }} | {{ c.oldStatus|capitalize }}{% if c.oldStatus == 'won' %} ₱{{ c.oldPayout|number_format(2) }}{% endif %} | {{ c.newStatus|capitalize }}{% if c.newStatus == 'won' %} ₱{{ c.newPayout|number_format(2) }}{% endif %} | {{ c.walletDelta < 0 ? '-' : '+' }}₱{{ c.walletDelta|abs|number_format(2) }} | {{ c.commissionReversed > 0 ? '₱' ~ c.commissionReversed|number_format(2) : '—' }} |
+ {{ preview.changeCount - preview.changes|length }} more ticket(s) not listed (included in the totals).
{% endif %} {% endif %} {% if preview.negativeUsers is not empty %}