Discussions
It’s that time of the year again! As we embrace the holiday cheer, we want to share an important announcement regarding our holiday schedule. Our dedicated team of NetSuite Support Gurus will be taking a short break to recharge during the holidays, from December 24, 2024, to January 1, 2025. We’ll be back in full swing, ready to assist you on January 2nd. During the break, feel free to explore the wealth of NetSuite resources on our platform.
As we celebrate the season's joys, we are incredibly grateful for your ongoing support and engagement. Have a fantastic holiday break, and let's gear up for an incredible 2025!
Here are some examples to get your creative juices flowing.
"Did I pay vendor John Doe last month?"
"Take me to my largest sales order for this month."
"What invoices haven't been paid yet?"
Weekly TimeSheet client script totalHours not refresh in direct
Hello,
I have a question when i use a client script on time sheet, i use this ==>
var timesheetRecord = scriptContext.currentRecord;
var totalHours = timesheetRecord.getValue('totalhours');
But when i log it this variable totalHours , i don't have the current value but i have the previous save value on the record and not the value in direct.
can i do a refresh in my script for take the good value i direct before save it ?
function saveRecord(scriptContext) {
var timesheetRecord = scriptContext.currentRecord;
var totalHours = timesheetRecord.getValue('totalhours');
log.debug({
title : 'totalHours',
details : totalHours
});
if (Number(totalHours) > 39) {
dialog.alert({
title : 'Alert',
message : 'Le temps total saisie est supérieur de 39'