reorder the way line items print on a bill of mate...
# ask-stanley-ai
r
reorder the way line items print on a bill of material
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Reordering the line items on a Bill of Material (BOM) in NetSuite is not directly possible through the user interface. The order of line items in transactions like Sales Orders, Estimates, etc., cannot be changed using drag and drop or any other direct method in the NetSuite UI. However, there are a couple of workarounds you can consider: 1. Advanced PDF/HTML Templates: You can customize the printout of the BOM using Advanced PDF/HTML templates. This allows you to control the display order of line items when the BOM is printed or viewed as a PDF. You can use scripting within the template to sort the line items based on certain criteria. Here is a sample code snippet provided in one of the threads:
Copy code
html
<#list salesorder.item as tranline><tr>
  <#if tranline.custcol_itemtype = ‘Kit/Package’>
    <td colspan=“12”><span class=“itemname”>${salesorder.item[0].item@label}</span><br />${tranline.description}</td>
    <#elseif tranline.custcol_itemtype !=‘Kit/Package’>
      <td colspan=“12”><span class=“itemname”>${tranline.item}</span><br />${tranline.description}</td>
    </#if>
	<td colspan=“12”><span class=“itemname”>${tranline.item}</span><br />${tranline.description}</td>
	<td colspan=“3”>${tranline.options}</td>
	<td align=“right” colspan=“4”>${tranline.quantityordered}</td>
	<td align=“right” colspan=“4”>${tranline.quantityremaining}</td>
	<td align=“right” colspan=“4”>${tranline.quantity}</td>
</tr>
</#list></table>
2. Custom Line Field: Another workaround suggested is to create a custom line field for something like "custom sequence" that you populate with the order in which you want it to print then sort off of that in your PDF. This might be more manual labor though if it's a large number of orders that need done. Please note that these are workarounds and may not perfectly fit your needs. It's always recommended to test these solutions thoroughly before implementing them in a live environment.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816582799
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813630223
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811630487
Please provide your feedback on this answer.