-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24174 - Supporting multiple payment methods on statement (#96)
* Supporting multiple payment methods on statement * further payment_method support * check for staff payments
- Loading branch information
1 parent
816c404
commit 86a9048
Showing
5 changed files
with
524 additions
and
569 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
report-api/report-templates/eft/eft_statement_details.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<table class="statement-details"> | ||
<tbody> | ||
<tr> | ||
<td colspan="2"> | ||
<div> | ||
<div><span class="font-bold">Account Number:</span> {{ account.id }}</div> | ||
{% if statement.is_interim_statement %} | ||
{% set total_paid = invoices|selectattr("payment_method", "equalto", payment_method)|sum(attribute='paid') %} | ||
<div><span class="font-bold">Total Amount Paid:</span> <span class="font-bold">${{ "{:,.2f}".format(total_paid)}}</span></div> | ||
{% endif %} | ||
{% if statement.is_interim_statement and payment_method_index.value == 0 %} | ||
<div><span class="font-bold">Total Amount Owing:</span> <span class="font-bold">${{ "{:,.2f}".format(total.due) if total.due else '0.00' }}</span></div> | ||
<div><span class="font-bold">Payment Received Date:</span> | ||
{% if statementSummary.latestStatementPaymentDate %} | ||
{{statementSummary.latestStatementPaymentDate | format_datetime('detail')}} | ||
{% endif %} | ||
</div> | ||
{% else %} | ||
{% if not statement.is_interim_statement and payment_method_index.value == 0 %} | ||
<div><span class="font-bold">Payment Due Date:</span> {{statementSummary.dueDate | format_datetime('mmm dd,yyyy')}}</div> | ||
{% endif %} | ||
{% endif %} | ||
{% if payment_method_index.value == 0 %} | ||
<div><span class="font-bold">Statement Number:</span> {{statement.id}}</div> | ||
{% endif %} | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters