diff --git a/report-api/report-templates/eft/eft_statement_details.html b/report-api/report-templates/eft/eft_statement_details.html deleted file mode 100644 index 6c3dd7b5..00000000 --- a/report-api/report-templates/eft/eft_statement_details.html +++ /dev/null @@ -1,26 +0,0 @@ -
-
-
- Account Number: {{account.id}}
- {% if statement.is_interim_statement %}
- Total Amount Paid: ${{ "{:,.2f}".format(total.paid)}}
- {% endif %}
- Total Amount Owing: ${{ "{:,.2f}".format(total.due) if total.due else '0.00' }}
- {% if statement.is_interim_statement%}
- Payment Received Date:
- {% if statementSummary.latestStatementPaymentDate %}
- {{statementSummary.latestStatementPaymentDate | format_datetime('mmm dd,yyyy')}}
- {% endif %}
-
- {% else %}
- Payment Due Date: {{statementSummary.dueDate | format_datetime('mmm dd,yyyy')}}
- {% endif %}
-
- Statement Number: {{statement.id}}
- |
-
+
+
+ Account Number: {{ account.id }}
+ {% if statement.is_interim_statement %}
+ {% set total_paid = invoices|selectattr("payment_method", "equalto", payment_method)|sum(attribute='paid') %}
+ Total Amount Paid: ${{ "{:,.2f}".format(total_paid)}}
+ {% endif %}
+ {% if statement.is_interim_statement and payment_method_index.value == 0 %}
+ Total Amount Owing: ${{ "{:,.2f}".format(total.due) if total.due else '0.00' }}
+ Payment Received Date:
+ {% if statementSummary.latestStatementPaymentDate %}
+ {{statementSummary.latestStatementPaymentDate | format_datetime('detail')}}
+ {% endif %}
+
+ {% else %}
+ {% if not statement.is_interim_statement and payment_method_index.value == 0 %}
+ Payment Due Date: {{statementSummary.dueDate | format_datetime('mmm dd,yyyy')}}
+ {% endif %}
+ {% endif %}
+ {% if payment_method_index.value == 0 %}
+ Statement Number: {{statement.id}}
+ {% endif %}
+ |
+
-
- {% endif %}
BC Registries and Online Services
- 161 - 4000 Seymour Place
- Victoria BC V8X 4S8
- - Toll Free: 1-800-663-6102
- Email: bcolhelp@gov.bc.ca
-
- {% if statement.payment_methods[0] == 'EFT' %}
- Account Statement
+ {% if is_payment_instructions %}
+ ELECTRONIC FUNDS TRANSFER INSTRUCTIONS
+ {% elif payment_method == 'EFT' %}
+ ACCOUNT STATEMENT - ELECTRONIC FUNDS TRANSFER
+ {% elif payment_method == 'PAD' %}
+ ACCOUNT STATEMENT - PRE-AUTHORIZED DEBIT
+ {% elif payment_method == 'ONLINE_BANKING' %}
+ ACCOUNT STATEMENT - ONLINE BANKING
+ {% elif payment_method == 'CC' %}
+ ACCOUNT STATEMENT - CREDIT CARD
+ {% elif payment_method == 'EJV' %}
+ ACCOUNT STATEMENT - ELECTRONIC JOURNAL VOUCHER
+ {% elif payment_method == 'DRAWDOWN' %}
+ ACCOUNT STATEMENT - BC ONLINE
+ {% elif payment_method == 'DIRECT_PAY' %}
+ ACCOUNT STATEMENT - DIRECT PAY
+ {% elif payment_method == 'INTERNAL' and is_staff_payment %}
+ ACCOUNT STATEMENT - STAFF PAYMENT
+ {% elif payment_method == 'INTERNAL' %}
+ ACCOUNT STATEMENT - ROUTING SLIP
{% else %}
- Deposit Account Statement
+ ACCOUNT STATEMENT
{% endif %}
- {% if statement.from_date or statement.to_date %}
-
- {% if 'DAILY' == statement.frequency %}
- {{statement.from_date}}
- {% else %}
- {{statement.from_date}} to {{statement.to_date}}
- {% endif %}
-
- {% endif %}
- |
- |
- {{ account.name|upper }}
- |
- |
- - | -|
- {% if account and account.name %}
-
-
- {% endif %}
- ATTN: {{account.name}}
- {% if account and account.contact %}
- {{account.contact.street}}
- {{account.contact.streetAdditional}}
- {{account.contact.city}} {{account.contact.region}}
- {{account.contact.postalCode}}
-
- {{account.contact.country}}
- {% endif %}
- |
-
- {% if account.paymentPreference and account.paymentPreference.bcOnlineAccountId %}
-
-
- {% endif %}
- {% if statement.from_date or statement.to_date %}
- BCOL Account Number:
- #{{account.paymentPreference.bcOnlineAccountId}}
-
-
- Statement Period:
-
+ {% if is_payment_instructions %}
+
- {% endif %}
- {% if statement.dueDate %}
- BC Registries And Online Services
+ {% elif statement.from_date or statement.to_date %}
+
{% if 'DAILY' == statement.frequency %}
{{statement.from_date}}
{% else %}
- {{statement.from_date}} to {{statement.to_date}}
+ {{statement.from_date}} - {{statement.to_date}}
{% endif %}
-
-
- {% endif %}
- Due Date:
- {{statement.dueDate}}
- |
+ {% endif %}
+
+
-
-
+ Total Amount:
- ${{"%.2f"|format(total.fees) if total.fees else '0.00'}}
- {{ account.name|upper }}
|
- |
+ + | +
-
+
Transactions
|
|||||||||||
+ {% set filtered_invoices = invoices|selectattr("payment_method", "equalto", payment_method)|list %}
- Number of Transactions: {{invoices|length}}
+ Number of Transactions: {{filtered_invoices|length}}
|
Product Purchased | -Folio | -Date | -Fee | -GST | -Service Charge | -Total | +Product Purchased | +Date | +Fee | +GST | +Service Fee | +Total | - {% for item in invoices %} + {% set totals = namespace(total=0, fees=0) %} + {% for invoice in invoices if invoice.payment_method == payment_method %}
---|---|---|---|---|---|---|---|---|---|---|---|
- {% for lineItemProduct in item.line_items %}
- {{'(Cancelled) ' if (item.status_code == 'CANCELLED') else ''}}{{lineItemProduct.description}}
+ {% for lineItemProduct in invoice.line_items %}
+ {{'(Cancelled) ' if (invoice.status_code == 'CANCELLED') else ''}}{{lineItemProduct.description}}
{% endfor %}
- {% if item.details and item.details|length > 0 %}
+ {% if invoice.details and invoice.details|length > 0 %}
- {% for detail in item.details %}
+ {% for detail in invoice.details %}
{% endif %}
{{detail.label}} {{detail.value}}
{% endfor %}
|
- {{item.get('folio_number', '-')}} | -{{item.created_on | format_datetime('mmm dd,yyyy')}} | -${{"%.2f"|format((item.total - item.service_fees)) if (item.service_fees and item.total) else - '0.00'}} - | -${{"%.2f"|format(item.gst) if item.gst else '0.00'}} | -${{"%.2f"|format(item.service_fees) if item.service_fees else '0.00'}} | -${{"%.2f"|format(item.total) if item.total else '0.00'}} | + +{{invoice.created_on | format_datetime('mmm dd,yyyy')}} | + +${{"%.2f"|format((invoice.total - invoice.service_fees)) if (invoice.service_fees and invoice.total) else '0.00'}} | + +${{"%.2f"|format(invoice.gst) if invoice.gst else '0.00'}} | + +${{"%.2f"|format(invoice.service_fees) if invoice.service_fees else '0.00'}} | + +${{"%.2f"|format(invoice.total) if invoice.total else '0.00'}} | + {% set totals.total = totals.total + invoice.total %}