Thursday 15 August 2013

Netsuite - Set Line Item Value -


I am trying to find out how to set a custom value item with the value of another field on the item field. I have not received any error, but this value is not changing.

Here is the code:

  Validate the function POLineItem (type) {if (type == 'item') {For (var i = 0; i & lt ; = NlapiGetLineItemCount ('item'); i ++) {// Get the value for the amount on the item line var amount = nlapiGetCurrentLineItemValue ('item', 'amount'); // Get the value for PO amount on the object line var po_amount = nlapiGetCurrentLineItemValue ('item', 'custcol_po_amount'); // set PO amount is equal to item item line nlapiSetCurrentLineItemValue ('item', po_amount, amount); It looks like you tried to leave the column name that you want to set up. In addition, you just have to update the "current" line ...  
  Validate the function POLineItem (type) {if (type == 'item') {var zodiac = nlapiGetCurrentLineItemValue ( 'Item', 'amount'); NlapiSetCurrentLineItemValue ('item', 'custcol_po_amount', amount); }}  

No comments:

Post a Comment