{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=row} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {if $key == "id" OR $key == "list_no"} {elseif $key == "branch_id"} {elseif $key == "module_name"} {elseif $key == "storehouse_id"} {elseif $key == "approved"} {elseif in_array($key,array("create_date","check_date","checkin_date"))} {else} {/if} {/foreach} {/foreach} {if $ls|@count==0} {else} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {if $key == "id"} {elseif $key == "income"} {elseif $key == "payout"} {else} {/if} {/foreach} {/if}
{$sort.$key|default:$fmt.title}
{$row.$key} {$branch_array[$row.branch_id]}{$category_array[$row.module]}{if $row.storehouse_id==0 && in_array($row.module,array("storeapply","maintainstock"))}员工库{else}{$storehouse_array[$row.storehouse_id]}{/if} {if $row.approved==0}待审核{elseif $row.locked}已锁定{elseif $row.checkin}已入账{elseif $row.abort}已取消{elseif $row.approved}已审核{/if} {$row.$key|local_date:8:5}{$row.$key}
 
  合计{$_total_income_|string_format:'%.02f'}{$_total_payout_|string_format:'%.02f'} 
{$listpage}
{if check_acl("system.custom")} {/if}