{literal} {/literal}
关键字: 自定义报告:
{$time_range_string} {if $smarty.request.subaction==""}{toolsbar options=$select_action_array extend=$extend_action_array}{/if}
{foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {foreach from=$ls item=sls} {foreach from=$sls item=row} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {if $key == "list_no"} {elseif $key == "branch_id"} {elseif $key == "storehouse_id"} {elseif $key == "user_id"} {elseif $key == "warranty"} {elseif $key == "balance_type"} {elseif $key == "virtual"} {elseif $key == "create_date"} {elseif $key == "list_status"} {else} {/if} {*合计字段处理开始*} {if $fmt.sum} {php} $key = $this->_tpl_vars["key"]; $value = $this->_tpl_vars["row"][$key]; $_total_list_array[$key] += $value +0; $this->_tpl_vars["_total_list_array"] = $_total_list_array; $_total_single_list_array[$key] += $value +0; $this->_tpl_vars["_total_single_list_array"] = $_total_single_list_array; {/php} {/if} {*合计字段处理结束*} {/foreach} {/foreach} {foreach from=$list_fields_array item=name key=key name="listeach"} {strparse var=fmt value=$name} {if $smarty.foreach.listeach.first} {elseif $fmt.sum} {else} {/if} {if $fmt.sum} {php} $key = $this->_tpl_vars["key"]; $_total_single_list_array[$key] = 0; {/php} {/if} {/foreach} {/foreach} {if $ls|@count==0} {else} {foreach from=$list_fields_array item=name key=key name="listeach"} {strparse var=fmt value=$name} {if $smarty.foreach.listeach.first} {elseif $fmt.sum} {else} {/if} {/foreach} {/if}
{$sort.$key|default:$fmt.title}
{$row.$key}{$branch_array[$row.branch_id]}{if $row.storehouse_id}{$storehouse_array[$row.storehouse_id]}{else}员工库{/if}{$user_array[$row.user_id]|default:$row.user_id}{$warranty_array[$row.warranty]}{$balance_type_array[$row.balance_type]}{if $row.virtual=="1" OR $row.virtual=="true"}是{else}否{/if}{$row.$key|local_date:8:5} {if $row.approved==0}待审核{elseif $row.checkin}已入账{elseif $row.abort}已取消{elseif $row.approved}已审核{/if} {$row.$key}
  合计{$_total_single_list_array.$key|default:'0'|string_format:'%.02f'} 
 
  总计{$_total_list_array.$key|default:'0'|string_format:'%.02f'} 
{$listpage}
{if $smarty.request.subaction==""} {if check_acl("system.custom")} {/if} {/if}