mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
	
	
		
			79 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
		
		
			
		
	
	
			79 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
|   | {% include 'emails.header-html' %}
 | ||
|  | <p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
 | ||
|  |     {{ trans_choice('email.new_journals_header', transformed|length ) }}
 | ||
|  | </p>
 | ||
|  | 
 | ||
|  | <!-- loop groups -->
 | ||
|  | <ol>
 | ||
|  |     {% for group in transformed %}
 | ||
|  |         <li>
 | ||
|  |             {% set count = group.transactions|length %}
 | ||
|  |             <!-- if journals === 1, skip straight to journals. -->
 | ||
|  |             {% if 1 == count %}
 | ||
|  |                 {% set journal = group.transactions[0] %}
 | ||
|  |                 <a href="{{ route('transactions.show', [group.id]) }}">{{ journal.description }}</a>,
 | ||
|  |                 <!-- amount -->
 | ||
|  |                 {% if journal.type == 'deposit' %}
 | ||
|  |                     <span style="color:#3c763d;">
 | ||
|  |                 {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
 | ||
|  |                         {% if null != journal.foreign_amount*-1 %}
 | ||
|  |                             ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
 | ||
|  |                         {% endif %}
 | ||
|  |                   </span>
 | ||
|  |                 {% elseif journal.type == 'transfer' %}
 | ||
|  |                     <span style="color:#31708f">
 | ||
|  |                         {{ 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_decimal_places, false) }})
 | ||
|  |                         {% endif %}
 | ||
|  |                 </span>
 | ||
|  |                 {% else %}
 | ||
|  |                     <span style="color:#a94442">
 | ||
|  |                     {{ 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_decimal_places, false) }})
 | ||
|  |                         {% endif %}
 | ||
|  |                     </span>
 | ||
|  | 
 | ||
|  |                 {% endif %}
 | ||
|  |                 <!-- / amount -->
 | ||
|  |             {% else %}
 | ||
|  |                 <a href="{{ route('transactions.show', [group.id]) }}">{{ group.group_title }}</a>
 | ||
|  |                 <ol>
 | ||
|  |                     {% for journal in group.transactions %}
 | ||
|  |                     <li>
 | ||
|  |                         {{ journal.description }},
 | ||
|  |                         <!-- amount -->
 | ||
|  |                         {% if journal.type == 'deposit' %}
 | ||
|  |                             <span style="color:#3c763d;">
 | ||
|  |                 {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
 | ||
|  |                                 {% if null != journal.foreign_amount*-1 %}
 | ||
|  |                                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
 | ||
|  |                                 {% endif %}
 | ||
|  |                   </span>
 | ||
|  |                         {% elseif journal.type == 'transfer' %}
 | ||
|  |                             <span style="color:#31708f">
 | ||
|  |                         {{ 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_decimal_places, false) }})
 | ||
|  |                                 {% endif %}
 | ||
|  |                 </span>
 | ||
|  |                         {% else %}
 | ||
|  |                             <span style="color:#a94442">
 | ||
|  |                     {{ 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_decimal_places, false) }})
 | ||
|  |                                 {% endif %}
 | ||
|  |                     </span>
 | ||
|  | 
 | ||
|  |                         {% endif %}
 | ||
|  |                     </li>
 | ||
|  |                     {% endfor %}
 | ||
|  |                 </ol>
 | ||
|  |             {% endif %}
 | ||
|  |         </li>
 | ||
|  |     {% endfor %}
 | ||
|  | </ol>
 | ||
|  | 
 | ||
|  | {% include 'emails.footer-html' %}
 |