count overpay as debts when fronted + add debt writeoff
This commit is contained in:
1 parent
2939415f76
commit
7ec95ee24a
8 files changed
+194
-5
No files matched your search
@@ -54,6 +54,13 @@
|
||||
{{ session.total_player_owes_cents | money }}
|
||||
</strong>
|
||||
</article>
|
||||
|
||||
<article class="panel stat-card">
|
||||
<span>Written off</span>
|
||||
<strong class="{{ 'negative' if session.total_front_writeoff_cents > 0 else '' }}">
|
||||
{{ session.total_front_writeoff_cents | money }}
|
||||
</strong>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -87,6 +94,7 @@
|
||||
<th class="detail-col">Gross due</th>
|
||||
<th class="detail-col">Paid</th>
|
||||
<th class="detail-col">Rolled out</th>
|
||||
<th class="detail-col">Written off</th>
|
||||
<th>Still owed</th>
|
||||
<th>Status</th>
|
||||
<th>Notes</th>
|
||||
@@ -111,7 +119,7 @@
|
||||
</td>
|
||||
|
||||
<td class="detail-col">
|
||||
{% if entry.player_owes_cents > 0 %}
|
||||
{% if entry.raw_player_owes_cents > 0 %}
|
||||
—
|
||||
{% else %}
|
||||
{{ entry.gross_payout_cents | money }}
|
||||
@@ -120,10 +128,13 @@
|
||||
|
||||
<td class="detail-col">{{ entry.paid_cents | money }}</td>
|
||||
<td class="detail-col">{{ entry.rollover_out_cents | money }}</td>
|
||||
<td class="detail-col">{{ entry.front_writeoff_applied_cents | money }}</td>
|
||||
|
||||
<td class="{% if entry.player_owes_cents > 0 %}negative{% elif entry.current_due_cents > 0 %}negative{% else %}positive{% endif %}">
|
||||
<td class="{% if entry.player_owes_cents > 0 %}negative{% elif entry.front_writeoff_applied_cents > 0 %}negative{% elif entry.current_due_cents > 0 %}negative{% else %}positive{% endif %}">
|
||||
{% if entry.player_owes_cents > 0 %}
|
||||
Owes {{ entry.player_owes_cents | money }}
|
||||
{% elif entry.front_writeoff_applied_cents > 0 %}
|
||||
Written off {{ entry.front_writeoff_applied_cents | money }}
|
||||
{% else %}
|
||||
{{ entry.current_due_cents | money }}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user