我有这个脚本,它将加载另一个脚本。首先是这种有效的语法,其次,是否仅在需要脚本时才加载salesOrderServices?
/**
* This library is for all the functionality of the customer record.
*/
define(['N/search', './Entity Services/tmh_lib_salesorder_services.js'],
function(search, salesOrderServices) {
return {
customerHasPendingSalesOrder : salesOrderServices.customerHasPendingSalesOrder
};
});
我知道此脚本目前没有意义,但是一旦完成,还会有很多其他功能。