<CB> 仓库配货单 {{ .state_text | empty}}<BR></CB>
<L>客户: {{ .customer_name }}
单号: {{ .code }}
日期: {{ .bill_date }}
销售: {{ .salesman_name | empty}}</L>

<TABLE col="24,9,6,9">  
    <tr>货品<td>{{ gbkPadLeft2 9 `单价` }}<td>{{ gbkPadLeft2 6 `数量` }}<td>{{ gbkPadLeft2 9 `金额` }}</tr> 
    <tr>------------------------<td>---------<td>------<td>---------</tr>
    {{range .detail}} {{range .}}
    <tr>{{ gbkPadRight2 24 .code ` ` .name ` ` .color_name ` ` .size_name }}<td>{{ gbkPadLeft2 9 .price }}<td>{{ gbkPadLeft2 6 .quantity }}<td>{{ gbkPadLeft2 9 .amount }}</tr>  
    {{ end }} {{ end }}
    <tr>------------------------<td>---------<td>------<td>---------</tr>
    <tr>合计<td> <td>{{ gbkPadLeft2 6 .bill_quantity }}<td>{{ gbkPadLeft2 9 .bill_amount }}</tr>
</TABLE>
<L>本单实收: {{  .received_money | fixed2 }}
本单欠款: {{ .bill_debt | fixed2 }}
上单欠款: {{ .last_debt | fixed2 }}
累计欠款: {{ .total_debt | fixed2 }}
备注: {{ .remark | empty }}
打印时间: {{ .print_time }}
------------------------------------------------
客户信息: {{.customer_name | empty }} {{ .customer_mobile | empty }}
客户地址: {{ .customer_province | empty }}{{ .customer_city | empty }}{{ .customer_district | empty }}{{ .customer_address | empty }}</L>
{{range $i,$v := .__tails}}{{if eq $i 0}}------------------------------------------------{{end}}{{ $v }}
{{end}}{{ if .__qrcode }}<QRCODE s=6 e=L l=center>{{.__qrcode}}</QRCODE>{{ end }}
{{ if .__qrcode_bottom }}{{.__qrcode_bottom}}{{ end }}