Encoding and Decoding Base64 with the N/crypto Module

/**  * @NApiVersion 2.x  * @NScriptType Suitelet  */ define([‘N/crypto’, ‘N/log’], function (crypto, log) {   function onRequest(context) {     let text = ‘Sample Data’;           // Encode to Base64     let encoded = crypto.encode({       input: text,       outputEncoding: crypto.Encoding.BASE_64     });     log.debug(‘Encoded (Base64):’, encoded);     // Decode from Base64     let decoded = crypto.decode({       input: encoded,       inputEncoding: crypto.Encoding.BASE_64     });     log.debug(‘Decoded:’, decoded);     context.response.write(‘Encoded:… Continue reading Encoding and Decoding Base64 with the N/crypto Module

Invoice QR Code Proposal

Proposal summary AMVOP would like to incorporate the recent updates from ZATCA regarding the QR Code of Invoices to match their norms and policies of E-Invoicing Regulations. Requirement Need to implement the recent updates from ZATCA on QR Code in the Invoice PDFs generated in Netsuite.  Our Solution Updates from ZATCA on QR Code Creation:… Continue reading Invoice QR Code Proposal