use === instead of == The == (or !=) operator performs an automatic type conversion if needed. The === (or !==) operator will not perform any conversion. It compares the value and the type, which could be considered faster than ==. Be careful when using typeof, instanceof and constructor. typeof : a JavaScript unary operator… Continue reading JavaScript Tips and Best Practices-1
Author: Sophia Yougin
Git and GitHub
All developers will use some kind of version control system (VCS), a tool to allow them to collaborate with other developers on a project without the danger of them overwriting each other’s work and rolling back to previous versions of the code base if a problem is discovered later. The most popular VCS (at least… Continue reading Git and GitHub
Date issue in Server side script
Scenario When setting the date using server-side script date will be set using the time zone PST. Solution Adding timezone offset to the date object issue can be resolved.
Creating Tax Nexuses
Go to Setup > Accounting > Taxes > Nexuses > New. In the Country field, select the country for which you are creating a nexus. If this nexus is in the U.S. or Canada, select the state, province, or county in the State/Province/County field. Leave this field blank for nexuses outside of the U.S. and Canada.If the default list does… Continue reading Creating Tax Nexuses
Resolve Error: “You do not have permissions to set a value for element item.rate…” on Transaction Records SOAP WebServices
SOAP Web Services only emulates the User Interface. It is likely that the Rate field is a read-only type of field. This column field cannot be set directly since it will source the price level that is set on the customer record or based on the following hierarchy. This will make the Rate field read-only which SOAP Web Services… Continue reading Resolve Error: “You do not have permissions to set a value for element item.rate…” on Transaction Records SOAP WebServices
Thermal Printer Invoice PDF
Requirement We need to provide a print button in the Invoice record that prints Invoice pdf for the thermal printer (similar to the current Cash sale print). Data in the normal Invoice pdf is to be included in the thermal PDF with the exception of the Item table needs to include only the item name,… Continue reading Thermal Printer Invoice PDF
CUSTOM ENGINEERING CHANGE ORDER
REQUIREMENT The requirement is to track BOM changes for recording purposes and to implement a supervisor Approval process on the same. It does not require any impact on the item or its BOM. SOLUTION This can be achieved by creating custom records to track changes in the BOM. There will be two custom records named… Continue reading CUSTOM ENGINEERING CHANGE ORDER
Overwriting Object in deployment When using SDF
DESCRIPTION Let’s say we are using the same id to develop the customization in Sandbox and there is already an object in the production account that contains the id. When we try to deploy the development from sandbox to production, there is a chance that the new object will replace the existing one. SOLUTION Always… Continue reading Overwriting Object in deployment When using SDF
Automatic generation of credit notes
REQUIREMENT To automate the existing Credit Note generation process once an RMA is received into stock. SOLUTION CUSTOM FIELDS A custom checkbox field labeled “Exclude From Auto Credit” will be created in the Return Authorization record. The default value will be unchecked. If the user wants to exclude any Return authorization record in the automatic… Continue reading Automatic generation of credit notes
Proposal For Special PricingFor Selected Products
Requirement Customer Sweetwater has special pricing on Mogami PJM items. Marshall team has createda calculator in an excel file that looks for the quantity that these items are packed in from thefactory and if the quantity is divisible by that packed quantity, then the unit price applied tothat line would be the second last pricing.… Continue reading Proposal For Special PricingFor Selected Products