Profit/Loss Statement
{% if report.startDate %}
(From {{report.startDateUsingFormatter}}
{% if report.endDate %}
To {{report.endDateUsingFormatter}})
{% else %}
To Present)
{% /if %}
{% /if %}
{% decimalMath totIncome = 0 %}
{% decimalMath totExpense = 0 %}
{% decimalMath profit = 0 %}
{% for item in transactionsByClient %}
{% if item.transaction.isPayment %}
{% decimalMath totIncome = totIncome + item.transaction.transactionValue %}
{% decimalMath profit = profit + item.transaction.transactionValue %}
{% /if %}
{% /for %}
{% for entry in expenses %}
{% decimalMath totExpense = totExpense + entry.cost %}
{% decimalMath profit = profit - entry.cost %}
{% /for %}
Income |
{{totIncome | currency_format}} |
Expense |
{{totExpense | currency_format}} |
Profit/Loss
| {{profit | currency_format}} |
Income |
Total |
{% decimalMath totalPaid = 0 %}
{% decimalMath clientPaid = 0 %}
{% decimalMath start = 0 %}
{% for item in transactionsByClient %}
{% if start == 0 %}
{{ item.transaction.client.displayName.escapedForHTML }} |
{% set clientId item.transaction.client.uuid %}
{% decimalMath start = 1 %}
{% else %}
{% if clientId isnotequaltostring item.transaction.client.uuid %}
{{clientPaid | currency_format}} |
{% decimalMath clientPaid = 0 %}
{{ item.transaction.client.displayName.escapedForHTML }} |
{% /if %}
{% /if %}
{% set clientId item.transaction.client.uuid %}
{% if item.transaction.isPayment %}
{% decimalMath totalPaid = totalPaid + item.transaction.transactionValue %}
{% decimalMath clientPaid = clientPaid + item.transaction.transactionValue %}
{% /if %}
{% /for %}
{% if start == 1 %}
{{clientPaid | currency_format}} |
{% /if %}
Income Totals: |
{{totalPaid | currency_format}} |
Expenses |
Amount |
{% decimalMath catExpense = 0 %}
{% decimalMath totExpense = 0 %}
{% for cat in expenseCategories %}
{% for entry in expenses %}
{% if cat.name isequaltostring entry.expenseCategoryName %}
{% decimalMath catExpense = catExpense + entry.cost %}
{% decimalMath totExpense = totExpense + entry.cost %}
{% /if %}
{% /for %}
{{ cat.name }} |
{{catExpense | currency_format}} |
{% decimalMath catExpense = 0 %}
{% /for %}
Expense Total: |
{{totExpense | currency_format}} |
Reported generated on {% now | date_format: "MMM dd yyyy 'at' HH:mm:ss" %}.