mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			84 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Twig
		
	
	
	
	
	
| {% include 'emails.header-html' %}
 | |
| <p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
 | |
|     {% if transformed|length == 1 %}
 | |
|         Firefly III has created a transaction for you. You can find it in your Firefly III installation:
 | |
|     {% endif %}
 | |
|     {% if transformed|length > 1 %}
 | |
|         Firefly III has created {{ groups.count }} transactions for you. You can find them in your Firefly III installation:
 | |
|     {% endif %}
 | |
| </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' %}
 |