diff --git a/server/controllers/finance/reports/cashflow/report.handlebars b/server/controllers/finance/reports/cashflow/report.handlebars index 88acb21108..019bf0f430 100644 --- a/server/controllers/finance/reports/cashflow/report.handlebars +++ b/server/controllers/finance/reports/cashflow/report.handlebars @@ -1,99 +1,34 @@ {{> head title="TREE.CASHFLOW" }} -
+ -
-
-

{{ metadata.enterprise.name }}

-

- {{translate 'FORM.LABELS.PROJECT'}}: {{ metadata.project.name }}
- {{translate 'FORM.LABELS.PHONE'}}: {{ metadata.enterprise.phone }}
- {{translate 'FORM.LABELS.EMAIL'}}: {{ metadata.enterprise.email }}
- {{translate 'FORM.LABELS.ADDRESS'}}: {{ metadata.enterprise.location }} -

-
- -
-

- {{translate 'TREE.CASHFLOW'}}
- {{date dateFrom }} - {{date dateTo }} -

-
- -
-

- {{ accountName }} -

-
-
- -
- -
- - -

{{translate 'FORM.LABELS.SUMMARY'}}

- - - - - - - - {{#each periodRange as |period $index|}} - - {{/each}} - - - - - - - - - - - {{#each periodStartArray as |period $index|}} - - {{/each}} - - - - - - {{#each periodStartArray as |period $index|}} - - {{/each}} - -
- {{date period.start 'MMM'}} / {{date period.start 'YYYY'}} - {{#if ../weekly}}
- - {{translate 'FORM.LABELS.WEEK'}} {{add $index 1}}: - {{date period.start 'DD/MM'}} - {{date period.end 'DD/MM'}} - - {{/if}} -
{{translate 'REPORT.OPENING_BALANCE'}} - {{#if (look ../periodicOpenningBalance period)}} - {{currency (look ../periodicOpenningBalance period) ../metadata.enterprise.currency_id}} - {{/if}} -
{{translate 'REPORT.CLOSING_BALANCE'}} - {{#if (look ../periodicBalance period)}} - {{currency (look ../periodicBalance period) ../metadata.enterprise.currency_id}} - {{/if}} -
- - -

{{translate 'FORM.LABELS.DETAILS'}}

- - - - - - - + {{> header }} + +

+ + {{translate 'TREE.CASHFLOW'}}
+ {{date dateFrom }} - {{date dateTo }} +
+

+ +

+ {{ accountName }} +

+
+
+ +
+ + +

{{translate 'FORM.LABELS.SUMMARY'}}

+ + +
+ + + {{#each periodRange as |period $index|}} {{/each}} - - - - - - - {{#each periodStartArray as |period $index|}} - - {{/each}} - - + - + - - - - - {{#each incomesLabels as |label|}} - - - {{#each ../periodStartArray as |period $index|}} + + {{#each periodStartArray as |period $index|}} {{/each}} - {{/each}} - + - + {{#each periodStartArray as |period $index|}} - - {{/each}} - - - - - - - - - - - - - - {{#each expensesLabels as |label|}} - - - {{#each ../periodStartArray as |period $index|}} {{/each}} - {{/each}} - - - - - {{#each periodStartArray as |period $index|}} - +
@@ -107,125 +42,179 @@
{{translate 'REPORT.OPENING_BALANCE'}} - - {{#if (look ../periodicOpenningBalance period)}} - {{currency (look ../periodicOpenningBalance period) ../metadata.enterprise.currency_id}} - {{/if}} - -
- {{translate 'REPORT.CASH_INCOME'}} -
{{translate label}}{{translate 'REPORT.OPENING_BALANCE'}} - {{#if (look ../../incomes period label)}} - {{currency (look ../../incomes period label) ../../metadata.enterprise.currency_id}} - {{/if}} + {{#if (look ../periodicOpenningBalance period)}} + {{currency (look ../periodicOpenningBalance period) ../metadata.enterprise.currency_id}} + {{/if}}
{{translate 'FORM.LABELS.TOTAL'}}{{translate 'REPORT.CLOSING_BALANCE'}} - {{currency (look ../totalIncomes period) ../metadata.enterprise.currency_id}} -
- {{translate 'REPORT.CASH_EXPENSE'}} -
{{translate label}} - {{#if (look ../../expenses period label)}} - {{currency (look ../../expenses period label) ../../metadata.enterprise.currency_id}} - {{/if}} + {{#if (look ../periodicBalance period)}} + {{currency (look ../periodicBalance period) ../metadata.enterprise.currency_id}} + {{/if}}
{{translate 'FORM.LABELS.TOTAL'}} - {{currency (look ../totalExpenses period) ../metadata.enterprise.currency_id}} -
+ + +

{{translate 'FORM.LABELS.DETAILS'}}

+ + + + + + + + + {{#each periodRange as |period $index|}} + + {{/each}} + + + + + + + + {{#each periodStartArray as |period $index|}} + + {{/each}} + + + + + + + + + + + + + + {{#each incomesLabels as |label|}} + + + {{#each ../periodStartArray as |period $index|}} + + {{/each}} + {{/each}} - - - - - - - - - - {{#each periodStartArray as |period $index|}} - + + + + {{#each periodStartArray as |period $index|}} + + {{/each}} + + + + + + + + + + + + + + {{#each expensesLabels as |label|}} + + + {{#each ../periodStartArray as |period $index|}} + + {{/each}} + {{/each}} - - - - - {{#each periodStartArray as |period $index|}} - - {{/each}} - - -
+ {{date period.start 'MMM'}} / {{date period.start 'YYYY'}} + {{#if ../weekly}}
+ + {{translate 'FORM.LABELS.WEEK'}} {{add $index 1}}: + {{date period.start 'DD/MM'}} - {{date period.end 'DD/MM'}} + + {{/if}} +
{{translate 'REPORT.OPENING_BALANCE'}} + + {{#if (look ../periodicOpenningBalance period)}} + {{currency (look ../periodicOpenningBalance period) ../metadata.enterprise.currency_id}} + {{/if}} + +
+ {{translate 'REPORT.CASH_INCOME'}} +
{{translate label}} + {{#if (look ../../incomes period label)}} + {{currency (look ../../incomes period label) ../../metadata.enterprise.currency_id}} + {{/if}} +
{{translate 'REPORT.MONTHLY_BALANCE'}} - {{currency (substract (look ../totalIncomes period) (look ../totalExpenses period)) ../metadata.enterprise.currency_id}} -
{{translate 'FORM.LABELS.TOTAL'}} + {{currency (look ../totalIncomes period) ../metadata.enterprise.currency_id}} +
+ {{translate 'REPORT.CASH_EXPENSE'}} +
{{translate label}} + {{#if (look ../../expenses period label)}} + {{currency (look ../../expenses period label) ../../metadata.enterprise.currency_id}} + {{/if}} +
{{translate 'REPORT.CLOSING_BALANCE'}} - {{currency (look ../periodicBalance period) ../metadata.enterprise.currency_id}} -
+ + + {{translate 'FORM.LABELS.TOTAL'}} + {{#each periodStartArray as |period $index|}} + + {{currency (look ../totalExpenses period) ../metadata.enterprise.currency_id}} + + {{/each}} + + + + + + + + + + {{translate 'REPORT.MONTHLY_BALANCE'}} + {{#each periodStartArray as |period $index|}} + + {{currency (substract (look ../totalIncomes period) (look ../totalExpenses period)) ../metadata.enterprise.currency_id}} + + {{/each}} + + + + + {{translate 'REPORT.CLOSING_BALANCE'}} + {{#each periodStartArray as |period $index|}} + + {{currency (look ../periodicBalance period) ../metadata.enterprise.currency_id}} + + {{/each}} + + + +
-
- + +