How Estimate Extended Cost is calculated in Sales order.

The Est Extended Cost is calculated based on the following formula. Est Extended Cost = [ Location Total Value/ Location on Hand ] * transaction quantity Location Total Value = Location On Hand * location average cost. Here the item location inventory quantity on hand is 10 and average cost is 20 and transaction quantity… Continue reading How Estimate Extended Cost is calculated in Sales order.

How to set approval status based on all child records in PM Approval Record using script

In the PM Approval record, we have to set the approval status as ‘Approved’ when all the child records approval status as ‘Approved’.     let newRecord = scriptContext.newRecord;                if (scriptContext.type == ‘xedit’ || scriptContext.type == ‘edit’) {                    let… Continue reading How to set approval status based on all child records in PM Approval Record using script

How to set the estimate extended cost using client script

In the client script, we can set the sublist value in the fieldChanged() function.  function fieldChanged(scriptContext) {            try {                let currentRecord = scriptContext.currentRecord;                if (scriptContext.sublistId == ‘item’ && scriptContext.fieldId == ‘location’) {         … Continue reading How to set the estimate extended cost using client script