我需要在客户对帐单上显示发票(订单项)上的<InputWrap />
。
在我建议包含amount.paid
答案 0 :(得分:0)
查看这些信息,我能够提出一个声明表,告诉我我想要的东西。
(请参阅下面的代码)
<table>
<#list statement.lines as line>
<#if line_index==0>
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>References #</th>
<th>Charge</th>
<th>Payment</th>
<th>Balance Due</th>
<th>Running</th>
</tr>
</thead>
</#if>
<tr>
<#function toNumber val><#if val?has_content && val?length gt 0 ><#return val?html?replace('[^0-9.]','','r')?number ><#else><#return 0 ></#if></#function>
<#assign amountpaid=(line.charge?int-line.amountremaining?int)>
<td>${line.datecol}</td>
<td>${line.description}</td>
<td>${line.otherrefnum} - ${line.custbodyjobnum}</td>
<td>${line.charge}</td>
<td><#if amountpaid gt 0>${amountpaid?string.currency}<#else>${line.payment}</#if></td>
<td>${line.amountremaining}</td>
<td>${line.balance}</td>
</tr>
</#list>
</table>