In the define part, we should specify the path of the NetSuite library you are going to access. define([ ‘../Common Library/JJ Transaction Library.js’], @param transLib (transLib) => { The above part is mandatory to initialize the library we are going to access. Using the custom module, you can access function inside the library at any… Continue reading Using the Custom module/Library function in the Script file.
Author: Harish Kanna S
Get multiple value from function without return keyword
The return keyword is not mandatory when using a function as a constructor with “new”. If you don’t explicitly return anything, JavaScript automatically returns the newly created object. function payload(){ this.orderNum = “SO-USA-19388”; this.location = “America”; this.totalAmount = 3900; return “Hello”; } let recordData = new payload(); console.log(recordData.orderNum); // Output: SO-USA-19388 console.log(recordData.location); // Output: America… Continue reading Get multiple value from function without return keyword
Advantages of using Function and JS Docs
Advantages of Using Functions and JSDoc in JavaScript In modern software development, writing clean, maintainable, and well-documented code is crucial for the long-term success of any project. Functions and JSDoc are powerful tools that help achieve these goals. In this article, we will explore the advantages of using functions and JSDoc in JavaScript development, focusing… Continue reading Advantages of using Function and JS Docs
Working with REGEX for format checking;
We can get the regex as per our need from the google or AI. we can assign the condition and functionality according to our need. For example Syntax: let creditCard = paymentRec.getValue({ fieldId: ‘custrecord_jj_credit_card’ … Continue reading Working with REGEX for format checking;
Facing the field value delay issue on working with the Client script
Sometimes, after a field change, we can get the log value once again. Once the value is changed, it returns the old value. In that scenario, we can handle it by using the setTimeout method.” While working on the client script we are facing the issue. Syntax: setTimeout(getAmountDue, 500); //(Function to run delayed, delay time… Continue reading Facing the field value delay issue on working with the Client script
Accessing child custom record fields using ‘recmach’
For getting or setting the custom child record field value in the parent record we have to use prefix as ‘recmach’ Syntax: transactionRec.setCurrentSublistValue({ sublistId: ‘recmachcustrecord_jj_hidden’, //use recmach as prefix and add the linked field id in child record fieldId: ‘custrecord_jj_invoice_customer’, //use the child field id from the child record you want to set value value:… Continue reading Accessing child custom record fields using ‘recmach’
Creating Custom Module and Encapsulating into your script.
A custom module allows you to organize reusable code by creating multiple functions inside it, and you can use these functions anywhere in your code once you include the module in your script file. Steps to Create and include the custom module in your script: Create the Custom Module Script and add the standard modules… Continue reading Creating Custom Module and Encapsulating into your script.
Journal Entry Credit Debit Concept According to the Type of Bank Account
In a Journal Entry transaction, the Credit and Debit entries play different roles depending on the type of account involved. Asset Accounts (e.g., Bank Accounts) Debit: Increases the balance Credit: Decreases the balance Liability Accounts (e.g., Credit Cards) Debit: Decreases the balance Credit: Increases the balance Expense Accounts (e.g., Utilities, Office Supplies) Debit: Increases the… Continue reading Journal Entry Credit Debit Concept According to the Type of Bank Account
Working with Custom Transactions and use cases
Definition: A Custom Transaction have different type of transaction types designed to meet specific business requirements. It allows us to track data that is not available in standard transactions. Additionally, we can decide at which point the impact should be created in the General Ledger. Enable Features: SuiteCloud -> Suite GL -> Custom Transactions. Navigation:… Continue reading Working with Custom Transactions and use cases
Updating the field value successfully even it is dependent field.
In some standard functionalities the field value is depended to another field value, so we can’t set some value as we expect to run another functionality (for some integration). Example. In sales order the shipping method is set to be FedEx123 and we can calculate the Shipping cost but for integration I need to be… Continue reading Updating the field value successfully even it is dependent field.