{% assign price_split = receipt.amount | round: 2 | split: "." %} {% assign receipt_integer =
price_split[0] %} {% assign receipt_fractional = price_split[1] | append: "00" | truncate: 2, "" %}
|
| {%- if receipt.display_amount -%} {{receipt.display_amount }} {%- else -%} ${{ receipt_integer }}.{{ receipt_fractional
}} {%- endif -%} |
{{ receipt.date }} |
|
| Invoice Name: |
Receipt number: |
|
| {{ organization.company_name | escape }} |
#{{ receipt.transaction_id }} |
|
| {{ receipt.charged_to | escape }} |
|
{%- if accounts -%}
{%- endif -%}
{%- for account in accounts -%}
{%- for invoice in account.invoiced_items -%} {%- if invoice and invoice.size > 0 -%} {% assign price_split = invoice.charge_amount | round: 2 | split: "." %} {% assign integer = price_split[0] %} {%
assign fractional = price_split[1] | append: "00" | truncate: 2, "" %}
| {{ invoice.charge_name | replace: 'Montly', 'Monthly' }} |
{%- if invoice.display_amount -%} {{ invoice.display_amount }} {%- else -%} ${{ integer
}}.{{ fractional }} {%- endif -%} |
| From {{ invoice.service_start_date }} to {{
invoice.service_end_date }} |
{%- endif -%} {%- endfor -%}
|
{%- endfor -%}
|
|