Cru utilizes NetSuite as its primary financial management system to streamline complex global operations, ranging from donation tracking to international field ministry accounting. The Role of NetSuite at Cru
/** * Before Submit – Validation & Business Rules */ function beforeSubmit(context) var newRecord = context.newRecord; var oldRecord = context.oldRecord; var type = context.type; netsuite.cru
// UPDATE if (type === context.UserEventType.EDIT) var oldValue = oldRecord.getValue('custbody_monitored_field'); var newValue = newRecord.getValue('custbody_monitored_field'); if (oldValue !== newValue) log.audit('Field Changed', 'Monitored field changed from ' + oldValue + ' to ' + newValue); // Optional: prevent update under condition if (newValue === 'BLOCKED') throw new Error('Update blocked: custbody_monitored_field cannot be BLOCKED.'); The Cru
Based on the naming convention, appears to be a specific file reference, script object, or configuration file often associated with customizing NetSuite, particularly involving Crystal Reports ( .cru is the standard file extension for Crystal Reports) or a custom scripting convention. var oldRecord = context.oldRecord