| {$p.name|escape} | {$p.val|wa_format_amount_currency:$def_cur} | {$p.val_percent}% |
| {$product_total_val|wa_format_amount_currency:$def_cur} | {* !!! Commented out because of numbers > 100% {if $mode == 'sales'} {sprintf_wp('≈ %d%% of total sales in this period (%s)', round($product_total_val * 100 / $total_val), "{$total_val|wa_format_amount_currency:$def_cur}")} {else} {sprintf_wp('≈ %d%% of total profit in this period (%s)', round($product_total_val * 100 / $total_val), "{$total_val|wa_format_amount_currency:$def_cur}")} {/if} *} |
| {$s.name|escape} | {$s.total|wa_format_amount_currency:$def_cur} | {$s.total_percent}% |
| {$service_total_val|wa_format_amount_currency:$def_cur} | {* !!! Commented out because of numbers > 100% {if $mode == 'sales'} {sprintf_wp('≈ %d%% of total sales in this period (%s)', round($service_total_val * 100 / $total_val), "{$total_val|wa_format_amount_currency:$def_cur}")} {else} {sprintf_wp('≈ %d%% of total profit in this period (%s)', round($service_total_val * 100 / $total_val), "{$total_val|wa_format_amount_currency:$def_cur}")} {/if} *} |