我想執行bin傳輸。但我不能去一個有效的例子。 當我運行下面的代碼時,我收到了這個錯誤「Sublist inventory field inventorydetail is not subrecord field」。腳本bin傳輸錯誤
我需要知道什麼是正確的子記錄的名稱創建一個箱子轉移
感謝
var binTransfer = nlapiCreateRecord('bintransfer');
binTransfer.setFieldValue('subsidiary',4);
binTransfer.setFieldValue('trandate','9/11/2015');
binTransfer.setFieldValue('location',18);
var invDetail = binTransfer.createCurrentLineItemSubrecord('inventory', 'inventorydetail');
invDetail.selectNewLineItem('inventoryassignment');
invDetail.setCurrentLineItemValue('inventoryassignment', 'binnumber', 'ZB17A01');
invDetail.setCurrentLineItemValue('inventoryassignment', 'tobinnumber', 'OZ_RECEIVING_18');
invDetail.setCurrentLineItemValue('inventoryassignment', 'quantity', 1);
invDetail.commitLineItem('inventoryassignment');
invDetail.commit();
binTransfer.commitLineItem('inventory');
nlapiSubmitRecord(binTransfer);