Rywin
04/28/2022, 8:15 AMbattk
04/28/2022, 8:16 AMRywin
04/28/2022, 8:18 AM{
"type": "error.SuiteScriptError",
"name": "UNEXPECTED_ERROR",
"message": "An unexpected SuiteScript error has occurred",
"stack": [
"Error\n at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.beforeSubmit (/SuiteScripts/cfs_Itemfulfillment_ue.js:375:29)"
],
"cause": {
"type": "internal error",
"code": "UNEXPECTED_ERROR",
"details": "An unexpected SuiteScript error has occurred",
"userEvent": null,
"stackTrace": [
"Error\n at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.beforeSubmit (/SuiteScripts/cfs_Itemfulfillment_ue.js:375:29)"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": true
}
battk
04/28/2022, 8:20 AMRywin
04/28/2022, 8:21 AMbattk
04/28/2022, 8:24 AMRywin
04/28/2022, 8:25 AMbattk
04/28/2022, 8:27 AMbattk
04/28/2022, 8:40 AMRywin
04/28/2022, 8:42 AMbattk
04/28/2022, 8:43 AMRywin
04/28/2022, 8:44 AMbattk
04/28/2022, 8:44 AMRywin
04/28/2022, 8:45 AMbattk
04/28/2022, 8:58 AMvar TranFields = search.lookupFields({
type: search.Type.TRANSACTION,
id: idSO,
columns: ["type", "intercotransaction"],
});
try {
var TranType = TranFields["type"][0].value;
var IntercoTran = TranFields["intercotransaction"][0].value;
} catch (e) {
log.debug("TranFields Before Submit", JSON.stringify(e));
}
doesnt look rightintercotransaction
shouldnt be an arrayRywin
04/28/2022, 8:59 AMbattk
04/28/2022, 9:20 AMcommitted !== '0'
nlapiSubmitField('lotnumberedinventoryitem',SOItemID,salesrep_itemfld_map[Team].qs,NewQS);
as isRywin
04/28/2022, 10:03 AMbattk
04/28/2022, 10:05 AMRywin
04/28/2022, 10:09 AM