2017-02-27 66 views

回答

0

這絕對有可能。 Netsuite使用的模板引擎是Apache FreeMarker,我強烈建議您在那裏查看documentation以獲取完整的詳細信息。

下面是一些基本的未經測試代碼,你可以用它來啓動:

<#assign tax1subtotal = 0 > 
<#assign tax2subtotal = 0 > 
<#assign tax3subtotal = 0 > 

<#list record.item as item> 

    <#if item.taxcode == [taxcode1]> 
    <#assign tax1subtotal = tax1subtotal + item.tax1amt> 
    </#if> 

    <#if item.taxcode == [taxcode2]> 
    <#assign tax2subtotal = tax2subtotal + item.tax1amt> 
    </#if> 

    <#if item.taxcode == [taxcode3]> 
    <#assign tax3subtotal = tax3subtotal + item.tax1amt> 
    </#if> 

</#list> 

Tax Type 1 Subtotal: ${tax1subtotal}<br/> 
Tax Type 2 Subtotal: ${tax2subtotal}<br/> 
Tax Type 3 Subtotal: ${tax3subtotal}<br/> 
+0

這NetSuite公司爲我工作。謝謝你michoel。 – user7395254