Nicholas Williams
07/20/2022, 7:11 PMrazer456
07/21/2022, 6:29 AMrazer456
07/21/2022, 6:30 AMscrenshaw
07/21/2022, 1:23 PMStephen Gosner
07/21/2022, 2:27 PMAzi
07/21/2022, 2:48 PMShawn Talbert
07/21/2022, 2:50 PMNS Admin
07/21/2022, 5:07 PMEric B
07/21/2022, 5:21 PMscrenshaw
07/21/2022, 7:52 PMAzi
07/21/2022, 8:22 PMscrenshaw
07/21/2022, 8:46 PMiSuite
07/21/2022, 9:31 PMgabyrdzlobaton
07/21/2022, 9:37 PM{
type: "error.SuiteScriptError",
name: "SSS_CONNECTION_CLOSED",
message: "Connection Closed",
stack: [
"Error\n at callValidaCliente_WS (/SuiteScripts/INFINITY_RL_validateData_Customer.js:196:31)\n at Object.doGet (/SuiteScripts/INFINITY_RL_validateData_Customer.js:129:25)"
],
cause: {
type: "internal error",
code: "SSS_CONNECTION_CLOSED",
details: "Connection Closed",
userEvent: null,
stackTrace: [
"Error\n at callValidaCliente_WS (/SuiteScripts/INFINITY_RL_validateData_Customer.js:196:31)\n at Object.doGet (/SuiteScripts/INFINITY_RL_validateData_Customer.js:129:25)"
],
notifyOff: false
},
id: "",
notifyOff: false,
userFacing: true
}
Any ideas how I can fix this?rustyshackles
07/22/2022, 2:50 AMgetField
call? getSelectOptions
has a limit of 500 based on the NS HelpJacksonP
07/22/2022, 3:56 PMAzi
07/22/2022, 4:39 PMMark C
07/22/2022, 5:17 PMfunction salesCommissionInfoSearch(itemClassification) {
var salesCommissionMap = {};
var filteredItemClass = [];
if(itemClassification == 'fbm') {
filteredItemClass.push(['isinactive','is','F'])
filteredItemClass.push('AND')
filteredItemClass.push(['custrecord_br_commission_item_class', 'anyof', '1']) // 1 is FBM, EDI, WebStore
}
var salesCommissionSearch = searchModule.create({
type: 'customrecord_br_sales_commissions',
filters: [filteredItemClass],
columns: [
[searchModule.createColumn({name: 'custrecord_br_commission_weighted_pct', summary: searchModule.Summary.SUM})],
[searchModule.createColumn({name: 'custrecord_br_commission_weighted_per', summary: searchModule.Summary.SUM})]
]
});
salesCommissionSearch.run().each(function(result) {
var salesCommissionWeightedPct = parseFloat(result.getValue({name: 'custrecord_br_commission_weighted_pct', summary: searchModule.Summary.SUM}));
var salesCommissionWeightedPerUnit = parseFloat(result.getValue({name: 'custrecord_br_commission_weighted_per', summary: searchModule.Summary.SUM}));
Slackbot
07/22/2022, 5:43 PMSteve Cahill
07/22/2022, 6:52 PMjen
07/22/2022, 7:12 PMjen
07/22/2022, 7:12 PMvar n_icount = nlapiGetLineItemCount('item');
for(var i = 1; i <= n_icount; i++) {
// RETURNING WRONG VALUE
console.log('for line ' + i + ' item class is ' + nlapiGetLineItemValue('item', 'class', i));
}
jen
07/22/2022, 7:12 PMjen
07/22/2022, 7:13 PMjen
07/22/2022, 7:13 PMalien4u
07/22/2022, 7:14 PMobjRec.getLineItemValue();
alien4u
07/22/2022, 7:15 PMjen
07/22/2022, 7:23 PMjen
07/22/2022, 7:24 PMShane Brown
07/22/2022, 9:22 PM