{$cfg_title}
工资单

姓名:{$row.username} 部门:{$row.groupname} 月份:{$row.salary_month}
结算单量:{$row.work_number} 结算金额:{$row.work_fee} 基本工资:{$row.base_pay}
奖励金:{$row.good_fee} 惩罚金:{$row.bad_fee} 差旅费:{$row.travelling_fee}
应发工资:{$row.really_salary|default:'0.00'} 摘要:{$row.description|default:''}
{foreach from=$header_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {foreach from=$ls item=sls} {foreach from=$sls item=irow} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {if $key == "list_no"} {elseif $key == "branch_id"} {elseif $key == "warranty"} {elseif $key == "storehouse_id"} {elseif $key == "create_date"} {elseif $key == "list_status"} {else} {/if} {*合计字段处理开始*} {if $fmt.sum} {php} $key = $this->_tpl_vars["key"]; $value = $this->_tpl_vars["irow"][$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} {/if}
{$fmt.title}
{$sort.$key|default:$fmt.title}
{$irow.$key}{$branch_array[$irow.branch_id]}{$warranty_array[$irow.warranty]}{$storehouse_array[$irow.storehouse_id]}{$irow.$key|local_date:8:5} {if $irow.approved==0}待审核{elseif $irow.checkin}已入账{elseif $irow.abort}已取消{elseif $irow.approved}已审核{/if} {if is_numeric($irow.$key) && $irow.$key==0}-{else}{$irow.$key}{/if}
合计{if $_total_single_list_array.$key > 0}{$_total_single_list_array.$key|string_format:'%.02f'}{else}-{/if} 
 
制单:{$row.creator} 经办:{$row.handler} 审核:{$row.checker}