Relative Content

Tag Archive for htmlnetsuite

Is there an efficient way to group same item and sum qty and amount?

<#if record.item?has_content> <table class=”itemtable” style=”margin-top:10px;width:100%;”><!– start items –><#list record.item as item><#if item_index==0> <thead> <tr> <th align=”left” colspan=”9″>Product Description</th> <th align=”center” colspan=”4″>Packaging Type</th> <th align=”center” colspan=”3″>${item.quantity@label} /<br />Weight (T)</th> <th align=”center” colspan=”3″>${item.rate@label} (${record.currency})</th> <th align=”right” colspan=”4″>${item.amount@label} (${record.currency})</th> </tr> </thead> </#if><tr> <td colspan=”9″ line-height=”150%”><span class=”itemname”><!–${item.item}–></span>${item.description}</td> <td align=”center” colspan=”4″>${item.custcol_mss_bag_type}</td> <td align=”center” colspan=”3″>${item.quantity}</td> <td align=”center” colspan=”3″>${item.rate?string[‘#,##0.00’]}</td> <td align=”right” colspan=”4″>${item.amount?string[‘#,##0.00’]}</td> […]