Add Custom Button to Execute a Suitelet

/** * @NApiVersion 2.1 * @NScriptType UserEventScript * @NModuleScope SameAccount */ define([‘N/runtime’, ‘N/log’], (runtime, log) => { function beforeLoad(scriptContext) { try { const recCurrent = scriptContext.newRecord; const objForm = scriptContext.form; const stStatus = recCurrent.getValue({ fieldId: ‘status’ }); const stSuiteletLinkParam = runtime.getCurrentScript().getParameter({ name: ‘custscript_suiteletlink’ }); const suiteletURL = ‘”‘ + stSuiteletLinkParam + ‘”‘; if (stStatus ===… Continue reading Add Custom Button to Execute a Suitelet

Auto journal creation & application in Payment

Scenario: Create a journal for applying in the credit section of the payment. Ultimate need is to capture the credit info from the custom record, need to create a journal or custom transaction of journal type then apply the same in the payment record.We have seen a limitation of once payment is saved the credit… Continue reading Auto journal creation & application in Payment