We recently found that the NetSuite Apps for Android & IOS have been upgraded, which makes our script attached to Time Track, non functional
So I tested and found out that the issue does not happen when I am creating the time record, the issue happens when I try to edit
Here is the use case:
1. Edited the existing time record (which is Open Status)
2. Changed the hours (which will kick Validate Field & Field Changed events)
3. Now Save or Submit does not function (since I have made changes on the record)
Here is the sample code I am using to test the flow
/**
* @NApiVersion 2.x
* @NScriptType ClientScript
*/
define([],
function() {
function _pageInit(args) {
}
function _saveRecord(args) {
alert('saverecord');
return true;
}
function _lineInit(args) {
alert('lineinit');
}
function _fieldChanged(args) {
alert('fieldchange');
}
function _validateField(args) {
alert('validatefield');
return true;
}
function _validateLine(args) {
alert('validateline');
return true;
}
function _lineRemove(args) {
alert('lineremove');
}
return {
pageInit: _pageInit,
saveRecord: _saveRecord,
lineInit: _lineInit,
fieldChanged: _fieldChanged,
validateLine: _validateLine,
validateField: _validateField,
validateDelete: _lineRemove,
}
});