Discount Amount using Saved Search

Go to List -> Saved Search -> Saved Searches -> New -> Transaction Under the criteria subtab: Add field Item fields… -> Type -> Discount Item Under Results subtab: Add Amount column The summary Type is Sum If we want to use the formula for getting Discount Amount in the Results: CASE WHEN {item.type}=’Discount’ Then… Continue reading Discount Amount using Saved Search

Resolve Error: “INVALID_TYPE_1_USE_2” for Custom Date/Time Field on Suitelet page if get values from client script

Description An error occurred in the script while running the suite let page after adding the date filters to get the results. SOLUTION: Use N/format module *** Get the custom date using the data type Value *** var fromDateRecValue = context.currentRecord.getValue({ fieldId: ‘custpage_fromdate’ }); *** Change the value to date format *** var fromDateRec =… Continue reading Resolve Error: “INVALID_TYPE_1_USE_2” for Custom Date/Time Field on Suitelet page if get values from client script