screnshaw
03/31/2022, 6:23 PMThis record already exists
Kevin
03/31/2022, 7:20 PMKevin
03/31/2022, 7:20 PMdarrenhillconsulting
03/31/2022, 7:46 PMSimon
03/31/2022, 8:39 PMCraig
03/31/2022, 9:05 PMjen
03/31/2022, 9:38 PMHelena
03/31/2022, 9:55 PMdarrenhillconsulting
04/01/2022, 2:17 AMehcanadian
04/01/2022, 2:34 AMahmed saeed moawoad elmasry
04/01/2022, 4:17 AMAzi
04/01/2022, 1:26 PMAzi
04/01/2022, 1:26 PMehcanadian
04/01/2022, 5:53 PMtexmc
04/01/2022, 6:59 PMCory Weiner
04/01/2022, 7:31 PMreptar
04/01/2022, 8:17 PMChristopher Zammit
04/02/2022, 6:03 AMmg2017
04/03/2022, 11:58 PMconst item_count = current_record.getLineCount({
sublistId: 'item'
});
const tax_item = '28709';
var sugar_tax = 0.025;
var item_quantity_sum = 0;
var item_amount_sum = 0;
for (var i = 0; i < item_count; i++) {
const item_id = current_record.getSublistValue({
sublistId: 'item',
fieldId: 'item',
line: i
})
const add_tax = current_record.getSublistValue({
sublistId: 'item',
fieldId: 'custcol_add_sugar_tax',
line: i
})
if (add_tax == true) {
var item_quantity = current_record.getSublistValue({
sublistId: "item",
fieldId: "quantity",
line: i
});
var item_amount = current_record.getSublistValue({
sublistId: "item",
fieldId: "amount",
line: i
});
item_quantity_sum += parseFloat(item_quantity);
item_amount_sum += parseFloat(item_amount);
} else {
log.debug("Sugar Tax NOT Checked");
}
} //End Loop
log.debug("Insert Line");
log.debug({title: "Quantity Sum", details: item_quantity_sum});
log.debug({title: "Amount Sum", details: item_amount_sum});
current_record.insertLine({
sublistId: "item",
line: item_count + 1
});
current_record.setSublistValue({
sublistId: "item",
fieldId: "item",
line: item_count + 1,
value: tax_item,
});
current_record.setSublistValue({
sublistId: "item",
fieldId: "quantity",
line: item_count + 1,
value: 1,
});
const total_sugar_tax = item_amount_sum * sugar_tax
log.debug({title: "Total Sugar Tax", details: total_sugar_tax});
current_record.setSublistValue({
sublistId: "item",
fieldId: "amount",
line: item_count + 1,
value: total_sugar_tax
});
7px
04/04/2022, 12:55 AMraghav
04/04/2022, 6:38 AMnlapiGetContext().getScriptId();
from the above I can get, the custom internal ID(string) we put while creating script record, but what I want is script internal ID.Lucas
04/04/2022, 7:40 AMNickSuite
04/04/2022, 7:53 AMLucas
04/04/2022, 8:29 AMNickSuite
04/04/2022, 8:38 AMNickSuite
04/04/2022, 8:39 AMNickSuite
04/04/2022, 8:39 AMSeth Duda
04/04/2022, 3:16 PMShawn Talbert
04/04/2022, 3:35 PMTRANS_NOT_COMPLETED
error from NS and knows what it means? I just had this pop up and have never seen it before myself.jen
04/04/2022, 4:44 PMcontext.form.clientScriptModulePath = 'SuiteScripts/2.0/client/cl_enquiry_ss2.1.js';
I get this error:
You do not have permission to load this module SuiteScripts/2.0/client/cl_enquiry_ss2.1.js, it has an @NModuleScope of SameAccount which restricts its availability to customization objects created in account(s)
However, cl_enquiry_ss2.1.js specifies @NModuleScope Public
as follows:
/**
* cl_enquiry_ss2.1.js
*
* @NApiVersion 2.1
* @NModuleScope Public
*
* last modified 2022-03-16 JB
*/
What am I missing here?