Set the line item value from a custom column using script #suitescript #Netsuite
<p>I am trying to take the value from "custcol_po_cost" and put it into "porate".
I want this to happen when a quote is transformed into a sales order. This way the PO Rate can be stored in the quote. I am unsure where I have gone wrong, I am very new to this. I am also unsure of which Function I should use to make this happen.</p>

<pre><code>function validateSOLineItem(type){
if(type == 'item'){
var amount = nlapiGetCurrentLineItemValue('item', 'custcol_po_cost');
nlapiSetCurrentLineItemValue('item', 'porate', amount);
  }
}
</code></pre>