Create a suitelet to get the customer id from website and to get if the checkbox is checked or not and if it is checked then the value of shipping method field, if not checked set the shipping method as UPS . After that send result as object.
Month: March 2023
Withholding Tax Bundle error in Purchase Orders
Scenario: When the Purchase Order permission level of a custom role was changed to ‘Edit’ from ‘View’ level, at the time of creating or Editing a Purchase Order, an error would be shown: _4601.accrualCS.pagelnit (pagelnit)customscript_4601_accrual_cs (47459)WITHHOLDING TAX BUNDLE ERRORSystem Error <br/>INSUFFICIENT_PERMISSION<br/>Insufficientprivileges<br/>Error triggered by user: Moreover, when the make a copy action is selected from a… Continue reading Withholding Tax Bundle error in Purchase Orders
Restrict View Purchase Orders to a location via workflow?
Scenario: Using a custom role, a user should be able to view and create Purchase Orders only for a specific location. The role should also be able to view and create Transfer Orders where either From location or To location is that specific location.Using workflow and role restriction using the saved search, the PO list… Continue reading Restrict View Purchase Orders to a location via workflow?
Script Unit of Measure Conversions
NetSuite contains a Unit of Measure (UOM) feature that allows one to specify various unit types. Each unit type consists of a base unit and as many other units of the target type as required. For example, given a unit type “Liquids”, we could choose Gallons as our base unit and include other liquid units… Continue reading Script Unit of Measure Conversions
Attach a User Note to a Custom Record Without Hardcoding the Record ID
record.create({ type: record.Type.NOTE }).setValue(‘note’, noteText).setValue(‘record’, customRecordId).setValue(‘recordtype’, ‘customrecord_abc_123’).save(); The above code throws an error You have entered an Invalid Field Value customrecord_abc_123 for the following field: recordtype SOLUTION SuiteQL offers a CustomRecordType table [II] which you can query to get the internal ID of a custom record: let customRecordType = query.runSuiteQL({query:SELECT internalid FROM CustomRecordType WHERE scriptid… Continue reading Attach a User Note to a Custom Record Without Hardcoding the Record ID
Best practices for Financial Reporting in NetSuite
Use Custom Reports: NetSuite provides a wide range of standard reports, but customizing reports to meet specific business needs can be highly beneficial. Custom reports allow businesses to access key metrics and data points that are relevant to their specific operations and goals. Accurate Data Entry: Ensure that all transactions are entered correctly and in… Continue reading Best practices for Financial Reporting in NetSuite
Best practices for setting up debit and credit in NetSuite
Use standard account types: Use the standard account types provided by NetSuite, such as Asset, Liability, Equity, Revenue, and Expense. These account types ensure that your financial statements are accurate and comply with accounting standards. Create a chart of accounts: A chart of accounts is a list of all the accounts used in your financial… Continue reading Best practices for setting up debit and credit in NetSuite
Adding Saved Search for Sales Orders Involving Special Orders and Service Items
Adding Saved Search for Sales Orders Involving Special Orders and Service Items
Append options to a select tag from an API response
Here is an example to append options to a select tag from an API response in jquery foreach This can be also done by foreach on php but sometimes we may need js or jquery to append data upon some conditions.
How to create a Shopify app?
1)Create a new app From the file directory where you initially set up Shopify to operate, launch the terminal. Then run the following command sudo yarn create @shopify/app A new app is created, and Shopify CLI is installed along with all of the dependencies. The following image shows an app is successfully created in the… Continue reading How to create a Shopify app?