pen one
08/15/2020, 10:07 PMbattk
08/15/2020, 10:45 PMbattk
08/15/2020, 10:45 PMpen one
08/15/2020, 10:59 PMdefine(['N/record','N/search','N/ui/dialog', 'N/log'], function (record, search, dialog, log) {/***@NApiVersion 2.0*@NScriptType ClientScript*/function fieldChanged(context) {var currentRecord = context.currentRecord;if(currentRecord.fieldId = "custrecord_my_dims_height") {var length = currentRecord.getValue({fieldId: 'custrecord_my_dims_length'});console.log(length);var width = currentRecord.getValue({fieldId: 'custrecord_my_dim_width'});console.log(width);var height = currentRecord.getValue({fieldId: 'custrecord_my_dims_height'});console.log(height);var ltlvolcalc = length * width * height;console.log(ltlvolcalc);if (height > 1) {currentRecord.setValue({fieldId: 'custrecord_my_dims_ltl_cw',value: length * width * height,ignoreFieldChange:true});}}}return {fieldChanged: fieldChanged}});battk
08/15/2020, 11:00 PMbattk
08/15/2020, 11:01 PMpen one
08/16/2020, 12:06 AMbattk
08/16/2020, 12:20 AMpen one
08/16/2020, 12:43 AMbattk
08/16/2020, 1:23 AMbattk
08/16/2020, 1:24 AM