mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix #3968
This commit is contained in:
		| @@ -204,7 +204,9 @@ return [ | ||||
|     'button_register'                                     => 'Register', | ||||
|     'authorization'                                       => 'Authorization', | ||||
|     'active_bills_only'                                   => 'active bills only', | ||||
|     'active_bills_only_total'                             => 'all active bills', | ||||
|     'active_exp_bills_only'                               => 'active and expected bills only', | ||||
|     'active_exp_bills_only_total'                         => 'all active expected bills only', | ||||
|     'per_period_sum_1D'                                   => 'Expected daily costs', | ||||
|     'per_period_sum_1W'                                   => 'Expected weekly costs', | ||||
|     'per_period_sum_1M'                                   => 'Expected monthly costs', | ||||
|   | ||||
| @@ -164,6 +164,45 @@ | ||||
|             </tbody> | ||||
|         {% endif %} | ||||
|     {% endfor %} | ||||
|     {% if totals|length > 0 %} | ||||
|     <tfoot> | ||||
|     <tr> | ||||
|         <td colspan="8" style="border-top:1px #777 solid;"></td> | ||||
|     </tr> | ||||
|     {% for sum in totals %} | ||||
|         {% if '0' != sum.avg %} | ||||
|             <tr> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- handle --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- buttons --> | ||||
|                 <td colspan="2" style="text-align: right;"> <!-- title --> | ||||
|                     <small>{{ 'sum'|_ }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only_total'|_ }})</small> | ||||
|                 </td> | ||||
|                 <td style="text-align: right;"> <!-- amount --> | ||||
|                     {{ formatAmountBySymbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|                 </td> | ||||
|                 <td> </td> <!-- paid in period --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- next expected match --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td><!-- repeats --> | ||||
|             </tr> | ||||
|         {% endif %} | ||||
|         {% if '0' != sum.per_period %} | ||||
|             <tr> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- handle --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- buttons --> | ||||
|                 <td colspan="2" style="text-align: right;"> <!-- title --> | ||||
|                     <small>{{ ('per_period_sum_'~sum.period)|_ }} ({{ sum.currency_name }}) ({{ 'active_bills_only_total'|_ }})</small> | ||||
|                 </td> | ||||
|                 <td style="text-align: right;"> <!-- amount --> | ||||
|                     {{ formatAmountBySymbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }} | ||||
|                 </td> | ||||
|                 <td> </td> <!-- paid in period --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td> <!-- next expected match --> | ||||
|                 <td class="hidden-sm hidden-xs"> </td><!-- repeats --> | ||||
|             </tr> | ||||
|         {% endif %} | ||||
|     {% endfor %} | ||||
|     </tfoot> | ||||
|     {% endif %} | ||||
|  | ||||
| </table> | ||||
| <div style="padding-left:8px;"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user