{strip} {function format_nice_date s=null e=null} {$fs = $s|wa_date:humandate} {$fe = $e|wa_date:humandate} {$current_year = date('Y')} {if $s == $e} {$fe = str_replace($current_year, '', $fe)} {$fe|trim} {else} {$s_month = waDateTime::date('f Y', $s)} {$e_month = waDateTime::date('f Y', $e)} {if $s_month == $e_month} {$fs = str_replace($e_month, '', $fs)} {$fe = str_replace($current_year, '', $fe)} {elseif strpos($fs, $current_year)} {$fs = str_replace($current_year, '', $fs)} {$fe = str_replace($current_year, '', $fe)} {/if} {$fs|trim}  –  {$fe|trim} {/if} {/function} {/strip} {foreach $expenses as $e}
{$e.name|escape}
{$e.note|escape}
{* Widths are updated by JS *}
{shop_currency_html($e.amount, $def_cur, $def_cur)}
{format_nice_date s=$e.start e=$e.end}
{/foreach}