mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Improve report boxes one by one #2428
This commit is contained in:
		| @@ -94,9 +94,9 @@ | ||||
|  | ||||
|             <td style="text-align: right;"> | ||||
|                 <span style="margin-right:5px;"> | ||||
|                     {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                     {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                 {% if null != journal.foreign_amount %} | ||||
|                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                 {% endif %} | ||||
|                 </span> | ||||
|             </td> | ||||
|   | ||||
| @@ -25,13 +25,13 @@ TODO: hide and show columns | ||||
|                 <td colspan="2" style="border-top:1px #aaa solid;"> | ||||
|                     {% for sum in group.sums %} | ||||
|                         {% if group.transaction_type == 'Deposit' %} | ||||
|                             {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_symbol_decimal_places) }}{% if loop.index != group.sums|length %},{% endif %} | ||||
|                             {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places) }}{% if loop.index != group.sums|length %},{% endif %} | ||||
|                         {% elseif group.transaction_type == 'Transfer' %} | ||||
|                             <span class="text-info"> | ||||
|                             {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_symbol_decimal_places, false) }}{% if loop.index != group.sums|length %},{% endif %}X | ||||
|                             {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places, false) }}{% if loop.index != group.sums|length %},{% endif %}X | ||||
|                             </span> | ||||
|                         {% else %} | ||||
|                             {{ formatAmountBySymbol(sum.amount, sum.currency_symbol, sum.currency_symbol_decimal_places) }}{% if loop.index != group.sums|length %},{% endif %} | ||||
|                             {{ formatAmountBySymbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}{% if loop.index != group.sums|length %},{% endif %} | ||||
|                         {% endif %} | ||||
|                     {% endfor %} | ||||
|                 </td> | ||||
| @@ -90,21 +90,21 @@ TODO: hide and show columns | ||||
|                 </td> | ||||
|                 <td style=" {{ style|raw }}"> | ||||
|                     {% if transaction.transaction_type_type == 'Deposit' %} | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                         {% if null != transaction.foreign_amount %} | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                         {% endif %} | ||||
|                     {% elseif transaction.transaction_type_type == 'Transfer' %} | ||||
|                         <span class="text-info"> | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places, false) }} | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }} | ||||
|                         {% if null != transaction.foreign_amount %} | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }}) | ||||
|                         {% endif %} | ||||
|                             </span> | ||||
|                         {% else %} | ||||
|                             {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                             {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                             {% if null != transaction.foreign_amount %} | ||||
|                                 ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                                 ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                             {% endif %} | ||||
|                     {% endif %} | ||||
|                 </td> | ||||
|   | ||||
| @@ -63,23 +63,23 @@ | ||||
|  | ||||
|             <td> | ||||
|                 {% if transaction.transaction_type_type == 'Deposit' %} | ||||
|                     {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                     {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                     {% if null != transaction.foreign_amount %} | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                     {% endif %} | ||||
|                     {% set sum = (sum + (transaction.amount*-1)) %} | ||||
|                 {% elseif transaction.transaction_type_type == 'Transfer' %} | ||||
|                     <span class="text-info"> | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places, false) }} | ||||
|                         {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }} | ||||
|                         {% if null != transaction.foreign_amount %} | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                             ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }}) | ||||
|                         {% endif %} | ||||
|                             </span> | ||||
|                     {% set sum = (sum + transaction.amount*-1) %} | ||||
|                 {% else %} | ||||
|                     {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                     {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                     {% if null != transaction.foreign_amount %} | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                     {% endif %} | ||||
|                     {% set sum = (sum + transaction.amount) %} | ||||
|                 {% endif %} | ||||
|   | ||||
| @@ -250,7 +250,7 @@ | ||||
|  | ||||
|  | ||||
|                                 <td data-value="{{ row.amount}}" style="text-align: right;"> | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_symbol_decimal_places) }} | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }} | ||||
|                                 </td> | ||||
|  | ||||
|                                 </tr> | ||||
|   | ||||
| @@ -283,7 +283,7 @@ | ||||
|                                     </a> | ||||
|                                 </td> | ||||
|                                 <td data-value="{{ row.amount }}" style="text-align: right;"> | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_symbol_decimal_places) }} | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }} | ||||
|                                 </td> | ||||
|                                 </tr> | ||||
|                             {% endfor %} | ||||
| @@ -404,7 +404,7 @@ | ||||
|                                     </a> | ||||
|                                 </td> | ||||
|                                 <td data-value="{{ row.amount }}" style="text-align: right;"> | ||||
|                                     {{ formatAmountBySymbol(row.amount*-1, row.currency_symbol, row.currency_symbol_decimal_places) }} | ||||
|                                     {{ formatAmountBySymbol(row.amount*-1, row.currency_symbol, row.currency_decimal_places) }} | ||||
|                                 </td> | ||||
|                                 </tr> | ||||
|                             {% endfor %} | ||||
|   | ||||
| @@ -14,28 +14,35 @@ | ||||
|                 <a href="{{ route('accounts.show',account.id) }}" title="{{ account.name }}">{{ account.name }}</a> | ||||
|             </td> | ||||
|             <td class="hidden-xs" data-value="{{ account.start_balance }}" style="text-align: right;"> | ||||
|                 {{ formatAmountByCurrency(account.currency, account.start_balance) }} | ||||
|                 {{ formatAmountBySymbol(account.start_balance, account.currency_symbol, account.currency_decimal_places) }} | ||||
|             </td> | ||||
|             <td class="hidden-xs" data-value="{{ account.end_balance }}" style="text-align: right;"> | ||||
|                 {{ formatAmountByCurrency(account.currency, account.end_balance) }}</td> | ||||
|                 {{ formatAmountBySymbol(account.end_balance, account.currency_symbol, account.currency_decimal_places) }} | ||||
|             </td> | ||||
|             <td style="text-align: right;" | ||||
|                 data-value="{{ (account.end_balance - account.start_balance) }}"> | ||||
|                 {{ formatAmountByCurrency(account.currency, (account.end_balance - account.start_balance)) }} | ||||
|                 {{ formatAmountBySymbol(account.end_balance - account.start_balance, account.currency_symbol, account.currency_decimal_places) }} | ||||
|             </td> | ||||
|         </tr> | ||||
|     {% endfor %} | ||||
|     <tr> | ||||
|         <td colspan="4"><em>{{ 'sumOfSums'|_ }}</em></td> | ||||
|     </tr> | ||||
|     {% for sum in accountReport.sums %} | ||||
|     <tr> | ||||
|         <td> | ||||
|               | ||||
|         </td> | ||||
|         <td style="text-align: right;"> | ||||
|             {{ formatAmountBySymbol(sum.start, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|         <td style="text-align: right;"> | ||||
|             {{ formatAmountBySymbol(sum.end, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|         <td style="text-align: right;"> | ||||
|             {{ formatAmountBySymbol(sum.difference, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|     </tr> | ||||
|     {% endfor %} | ||||
|     </tbody> | ||||
|     <tfoot> | ||||
|     <tr> | ||||
|         <td><em>{{ 'sumOfSums'|_ }}</em></td> | ||||
|         <td class="hidden-xs" style="text-align: right;">{{ accountReport.start|formatAmount }}</td> | ||||
|         <td class="hidden-xs" style="text-align: right;">{{ accountReport.end|formatAmount }}</td> | ||||
|         <td style="text-align: right;">{{ accountReport.difference|formatAmount }}</td> | ||||
|     </tr> | ||||
|     {% if accountReport.currencies > 1 %} | ||||
|     <tr> | ||||
|         <td colspan="4"><small class="text-warning">{{ 'multi_currency_report_sum'|_ }}</small></td> | ||||
|     </tr> | ||||
|     {% endif %} | ||||
|     </tfoot> | ||||
| </table> | ||||
|   | ||||
| @@ -8,58 +8,54 @@ | ||||
|     </tr> | ||||
|     </thead> | ||||
|     <tbody> | ||||
|     {% set sum = 0 %} | ||||
|     {% for entry in entries %} | ||||
|         {% set sum = sum + entry.sum %} | ||||
|     {% for account in report.accounts %} | ||||
|         {% if loop.index > listLength %} | ||||
|             <tr class="overListLength"> | ||||
|         {% else %} | ||||
|             <tr> | ||||
|         {% endif %} | ||||
|         <td data-value="{{ entry.name }}"> | ||||
|             <a href="{{ route('accounts.show',entry.id) }}">{{ entry.name }}</a> | ||||
|             {% if entry.count > 1 %} | ||||
|         <td data-value="{{ account.name }}"> | ||||
|             <a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a> | ||||
|             {% if account.count > 1 %} | ||||
|                 <br/> | ||||
|                 <small> | ||||
|                     {{ entry.count }} {{ 'transactions'|_|lower }} | ||||
|                     {{ account.count }} {{ 'transactions'|_|lower }} | ||||
|                 </small> | ||||
|             {% endif %} | ||||
|         </td> | ||||
|         <td data-value="{{ entry.sum }}" style="text-align: right;"> | ||||
|             {% if entry.currencies == 1 %} | ||||
|                 {{ formatAmountByCurrency(entry.single_currency, entry.sum) }} | ||||
|             {% else %} | ||||
|                 {{ (entry.sum)|formatAmount }} | ||||
|             {% endif %} | ||||
|         <td data-value="{{ account.sum }}" style="text-align: right;"> | ||||
|             {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} | ||||
|         </td> | ||||
|         <td class="hidden-xs" data-value="{{ entry.average }}" style="text-align: right;"> | ||||
|             {% if entry.count > 1 %} | ||||
|                 {{ entry.average|formatAmount }} | ||||
|                 {{ formatAmountBySymbol(account.average, account.currency_symbol, account.currency_decimal_places) }} | ||||
|             {% else %} | ||||
|                 — | ||||
|             {% endif %} | ||||
|         </td> | ||||
|         <td> | ||||
|             <i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="{{ type }}" | ||||
|                data-account-id="{{ entry.id }}"></i> | ||||
|                data-account-id="{{ account.id }}"></i> | ||||
|         </td> | ||||
|         </tr> | ||||
|     {% endfor %} | ||||
|     </tbody> | ||||
|  | ||||
|     <tfoot> | ||||
|     {% if entries|length > listLength %} | ||||
|     {% if report.accounts|length > listLength %} | ||||
|         <tr> | ||||
|             <td colspan="4" class="active"> | ||||
|                 <a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a> | ||||
|             </td> | ||||
|         </tr> | ||||
|     {% endif %} | ||||
|     <tr> | ||||
|         <td><em>{{ 'sum'|_ }}</em></td> | ||||
|         <td style="text-align: right;">{{ (sum)|formatAmount }}</td> | ||||
|     </tr> | ||||
|     <tr> | ||||
|         <td colspan="4"><small class="text-warning">{{ 'sum_in_default_currency'|_ }}</small></td> | ||||
|     </tr> | ||||
|     </tfoot> | ||||
|     {% for sum in report.sums %} | ||||
|         <tr> | ||||
|             <td><em>{{ 'sum'|_ }} ({{ sum.currency_name }})</em></td> | ||||
|             <td style="text-align: right;"> | ||||
|                 {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|             </td> | ||||
|             <td> </td> | ||||
|         </tr> | ||||
|     {% endfor %} | ||||
| </table> | ||||
|   | ||||
| @@ -77,14 +77,14 @@ | ||||
|             </td> | ||||
|  | ||||
|             <td class="hide-balance_before" style="text-align: right;"> | ||||
|                 {{ formatAmountBySymbol(journal.balance_before, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                 {{ formatAmountBySymbol(journal.balance_before, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|             </td> | ||||
|             <td class="hide-amount" style="text-align: right;"> | ||||
|                 {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                 {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|             </td> | ||||
|  | ||||
|             <td class="hide-balance_after" style="text-align: right;"> | ||||
|                 {{ formatAmountBySymbol(journal.balance_after, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                 {{ formatAmountBySymbol(journal.balance_after, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|             </td> | ||||
|  | ||||
|             <td class="hide-date">{{ journal.date.formatLocalized(monthAndDayFormat) }}</td> | ||||
|   | ||||
| @@ -1,19 +1,22 @@ | ||||
| <table class="table table-hover"> | ||||
|     <tr> | ||||
|         <td>{{ 'money_flowing_in'|_ }}</td> | ||||
|         <td style="text-align: right;">{{ incomeSum|formatAmount }}</td> | ||||
|         <th>{{'currency'|_}}</th> | ||||
|         <th>{{ 'money_flowing_in'|_ }}</th> | ||||
|         <th>{{ 'money_flowing_out'|_ }}</th> | ||||
|         <th>{{ 'difference'|_ }}</th> | ||||
|     </tr> | ||||
|     {% for sum in sums %} | ||||
|     <tr> | ||||
|         <td>{{ 'money_flowing_out'|_ }}</td> | ||||
|         <td style="text-align: right;">{{ expensesSum|formatAmount }}</td> | ||||
|     </tr> | ||||
|     <tr> | ||||
|         <td>{{ 'difference'|_ }}</td> | ||||
|         <td style="text-align: right;">{{ (incomeSum + expensesSum)|formatAmount }}</td> | ||||
|     </tr> | ||||
|     <tr> | ||||
|         <td colspan="2"> | ||||
|             <small class="text-warning">{{ 'sum_in_default_currency'|_ }}</small> | ||||
|         <td>{{ sum.currency_name }} ({{ sum.currency_symbol }})</td> | ||||
|         <td> | ||||
|             {{ formatAmountBySymbol(sum.in, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|         <td> | ||||
|             {{ formatAmountBySymbol(sum.out, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|         <td> | ||||
|             {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|         </td> | ||||
|     </tr> | ||||
|     {% endfor %} | ||||
| </table> | ||||
|   | ||||
| @@ -20,9 +20,9 @@ | ||||
|             <td style="text-align: right;" data-value="{{ transaction.amount}}"><span | ||||
|                         style="margin-right:5px;"> | ||||
|  | ||||
|                     {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                     {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                     {% if null != transaction.foreign_amount %} | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                         ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                     {% endif %} | ||||
|                 </span></td> | ||||
|         </tr> | ||||
|   | ||||
| @@ -300,7 +300,7 @@ | ||||
|                                     </a> | ||||
|                                 </td> | ||||
|                                 <td data-value="{{ row.amount }}" style="text-align: right;"> | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_symbol_decimal_places) }} | ||||
|                                     {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }} | ||||
|                                 </td> | ||||
|                                 </tr> | ||||
|                             {% endfor %} | ||||
|   | ||||
| @@ -43,21 +43,21 @@ | ||||
|                                                 {{ journal.description }}</a></td> | ||||
|                                             <td> | ||||
|                                                 {% if journal.transaction_type_type == 'Deposit' %} | ||||
|                                                     {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                                     {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                                     {% if null != journal.foreign_amount %} | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                                     {% endif %} | ||||
|                                                 {% elseif journal.transaction_type_type == 'Transfer' %} | ||||
|                                                     <span class="text-info"> | ||||
|                                                         {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places, false) }} | ||||
|                                                         {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }} | ||||
|                                                         {% if null != journal.foreign_amount %} | ||||
|                                                             ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                                                             ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) | ||||
|                                                         {% endif %} | ||||
|                                                     </span> | ||||
|                                                 {% else %} | ||||
|                                                     {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                                     {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                                     {% if null != journal.foreign_amount %} | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                                     {% endif %} | ||||
|                                                 {% endif %} | ||||
|                                                  | ||||
|   | ||||
| @@ -254,19 +254,19 @@ | ||||
|                                     </td> | ||||
|                                     <td> | ||||
|                                         {% if transaction.transaction_type_type == 'Deposit' %} | ||||
|                                             {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                                             {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                                             {% if null != transaction.foreign_amount %} | ||||
|                                                 ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                 ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                                             {% endif %} | ||||
|                                         {% elseif transaction.transaction_type_type == 'Transfer' %} | ||||
|                                             <span class="text-info">{{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_symbol_decimal_places, false) }} | ||||
|                                             <span class="text-info">{{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }} | ||||
|                                                 {% if null != transaction.foreign_amount %} | ||||
|                                                     ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                                                     ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }}) | ||||
|                                                 {% endif %}</span> | ||||
|                                         {% else %} | ||||
|                                             {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_symbol_decimal_places) }} | ||||
|                                             {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }} | ||||
|                                             {% if null != transaction.foreign_amount %} | ||||
|                                                 ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                 ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}) | ||||
|                                             {% endif %} | ||||
|                                         {% endif %} | ||||
|                                     </td> | ||||
|   | ||||
| @@ -65,20 +65,20 @@ | ||||
|                                     </td> | ||||
|                                     <td> | ||||
|                                         {% if journal.transaction_type_type == 'Deposit' %} | ||||
|                                             {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                             {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                             {% if null != journal.foreign_amount %} | ||||
|                                                 ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                 ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                             {% endif %} | ||||
|                                         {% elseif journal.transaction_type_type == 'Transfer' %} | ||||
|                                             <span class="text-info">{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places, false) }} | ||||
|                                             <span class="text-info">{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }} | ||||
|                                                 {% if null != journal.foreign_amount %} | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) | ||||
|                                                 {% endif %} | ||||
|                                             </span> | ||||
|                                         {% else %} | ||||
|                                             {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                             {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                             {% if null != journal.foreign_amount %} | ||||
|                                                 ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                 ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                             {% endif %} | ||||
|                                         {% endif %} | ||||
|                                     </td> | ||||
|   | ||||
| @@ -69,21 +69,21 @@ | ||||
|                                         <span class="text-sm"> | ||||
|                                         {% if journal.reconciled != false %} | ||||
|                                             {% if journal.transaction_type_type == 'Deposit' %} | ||||
|                                                 {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                                 {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                                 {% if null != journal.foreign_amount %} | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                                 {% endif %} | ||||
|                                             {% elseif journal.transaction_type_type == 'Transfer' %} | ||||
|                                                 <span class="text-info"> | ||||
|                         {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_symbol_decimal_places, false) }} | ||||
|                         {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }} | ||||
|                                                     {% if null != journal.foreign_amount %} | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places, false) }}) | ||||
|                                                         ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) | ||||
|                                                     {% endif %} | ||||
|                                                 </span> | ||||
|                                             {% else %} | ||||
|                                                 {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_symbol_decimal_places) }} | ||||
|                                                 {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} | ||||
|                                                 {% if null != journal.foreign_amount %} | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_symbol_decimal_places) }}) | ||||
|                                                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) | ||||
|                                                 {% endif %} | ||||
|                                             {% endif %} | ||||
|                                         {% endif %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user