I am trying to automate 'Option' in the line items of a Cash Sale.
Some of our Items have an Option that needs to be filled in.
Instead of having to click in the Options box, click the pop up arrow, use the drop down list, select the Item Option, click submit. I want to populate Item Options using Javascript.
Example item: 320-042-0430
I know which Item Option it uses because of the first 6 numbers.
When I use Javascript to populate the Option Field, the cash sale will not process.
ERROR: An error occurred while processing item options.
However it works fine when we do it manually.
The code loops through the line items adding the proper options.
Code snipet:
if(CenterNum == '320-057' || CenterNum == '320-059') { ItemOptions = "Nebaj, Guatemala"; } nlapiSetCurrentLineItemValue('item','CUSTCOL_COMMUNITY_OPTION',ItemOptions); nlapiCommitLineItem('item'); Is there something special that has to be done with the Options field?