我需要使用批號編號組裝/物料清單配置詳細信息。並且我嘗試了下面的代碼來實現它。Netsuite(庫存明細)
var recordScreate = nlapiCreateRecord('inventoryadjustment')
recordScreate.setFieldValue('account', 850);
recordScreate.setFieldValue('adjlocation', locationSvalue);
recordScreate.setFieldValue('custbody_cseg1', jbSvalue);
recordScreate.setCurrentLineItemValue('inventory', 'item', fgSvalue);
recordScreate.setCurrentLineItemValue('inventory', 'location',locationSvalue);
recordScreate.setCurrentLineItemValue('inventory', 'adjustqtyby',-hproductionSscrap);``
var inventoryDetail = recordScreate.createCurrentLineItemSubrecord('inventory', 'inventorydetail');
inventoryDetail.selectNewLineItem('inventoryassignment');
inventoryDetail.setCurrentLineItemValue('inventoryassignment', 'issueinventorynumber',2793);
inventoryDetail.setCurrentLineItemValue('inventoryassignment', 'quantity', -hproductionSscrap);
inventoryDetail.commitLineItem('inventoryassignment');
inventoryDetail.commit();
recordScreate.commitLineItem('inventory');`
和我得到了錯誤_「無效issueinventorynumber參考關鍵詞2793.0」誰能請幫助,在此對解決這一問題。