In the Sales Order record, every time you change amount in ITEM Sublist, you see popup confirm message “The line total amount is not equal to the item price times the quantity. Is this correct?”. This is NetSuite’s standard popup message. Script to disable this standard pop-up message/alert.
function fieldChanged(scriptContext) {
try {
let currec = scriptContext.currentRecord;
let sublistName = scriptContext.sublistId;
let fieldName = scriptContext.fieldId;
if (sublistName == ‘item’ && fieldName == ‘amount’)
window.confirm = function () { return true; };
} catch (e) {
log.error(“error@fieldChanged”, e);
return true;
}
}