【发布时间】:2019-08-06 16:53:01
【问题描述】:
我正在尝试将序列号从 Item Fulfillment 行上的库存详细信息复制到另一个字段以进行进一步处理,为此我正在尝试通过客户端脚本执行字段更改功能,但无法找出该字段触发。
这就是我目前所拥有的......
function populatePIF(type, name)
{
if(name == 'inventorydetail')
{
nlapiLogExecution('DEBUG', 'TEST', 'STATUS')
try
{
var inventorydetail = nlapiViewCurrentLineItemSubrecord('item', 'inventorydetail');
if(inventorydetail)
{
var PIF = inventorydetail.getCurrentLineItemText('inventoryassignment', 'issueinventorynumber');
nlapiSetCurrentLineItemValue('item', 'custcol_serial_no', PIF);
return true;
}
return true;
}
catch(e)
{
nlapiLogExecution('DEBUG', 'Exeception Caught', e);
}
return true;
}
}
有什么想法吗?
【问题讨论】:
标签: netsuite suitescript suitescript2.0