Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Issues with updated checkbox on sales order
Okay. So I have this script deployed after a sales order is created:
function afterSaveSalesOrder(type) { var soRecord = nlapiGetNewRecord(); var terms = soRecord.getFieldValue('terms'); if (type == 'create') { if (terms == 6 || terms == 23 || terms == 24) { nlapiLogExecution('debug', 'Should get here', soRecord.getFieldValue('custbody_po_payment_verification')); soRecord.setFieldValue('custbody_po_payment_verification', 'T'); id = nlapiSubmitRecord(soRecord, true); } } } Why is it that the system flags an "unexpected error". Everything looks right on my end. The field in question is a checkbox.
Also, for those of you who have been pulling their hair out trying to figure out what values are in checkboxes they are simply 'T' or 'F'.
0