There are scenarios where we have to pass or return multiple values to another Entry point, so that value can process as per the requirement.Normally, The first Return statement that holds some specific data in any Entry point is accessible to next Point by logging the context in initial line.This is not feasible in cases… Continue reading Return Multiple Values to Next Script Entry Points
Month: January 2022
Sort Item Column by Quantity in Advanced PDF/HTML Templates
User wants to sort the line items of a transaction by quantity. To sort the line items by quantity use: <#list record.item?sort_by(“quantity”) as item> To sort by reverse order use: <#list record.item?sort_by(“quantity”)?reverse as item>
Remove Standard Elements in a Basic PDF Layout
User wants to remove the elements of Standard Fields when using Basic Printing Type. Navigate to Customization > Forms > Transaction Form PDF Layouts Click Customize or Edit beside the template to modify In the editor, choose the element for the Standard Field in the Selected Element drop down field Under Element Size section, set the Width and Height fields to 0 Click Save
Display applied customer credits when printing sales orders.
Implement a workaround, that would store the sum of the amount on a custom field. Then, expose the custom field on the Advanced PDF. Create a saved search to generate the sum of the customer deposit Navigate to List > Search > Saved Searches > New Create the Saved Search with the following settings Under… Continue reading Display applied customer credits when printing sales orders.
Logo Header Blurry on Printed PDF Forms
The customer uploaded a logo but it appears blurry and pixelated on all forms. To correct this, the customer uploaded a higher resolution image, they uploaded a 72 dpi before and they replaced it with the same logo with 150 dpi. Make sure that your logo resolution is 150 dpi and higher. If not, upload… Continue reading Logo Header Blurry on Printed PDF Forms
Apply the transaction currency symbol on the Advanced Invoice PDF print-out depending on the set currency.
Navigate to Customizations > Forms > Advanced PDF/HTML Template Preferred Advanced PDF/HTML Template : Click Edit Upper Right Corner: Toggle Source Code Refer below: 4. Click Save
Create Dynamic Table via Script
Code Snippet:
Change in Stock Alert
We have one custom record setup which is intended to request new photos from the photographer whenever the items related to that record get new inventory. An alert email should be sent when an item that was out of stock when the photo request was created comes back into stock so that the photographer can… Continue reading Change in Stock Alert
Store Errors in script as a csv file
//Info: JOIN-203 Bugs & errors are common in every script. Usually, we used to Identify these by using try and catch statements.what if there are chances to get ‘n’ number of errors in each part…? its better if we are able identify errors in initial run, save it & continue the next section. Even though… Continue reading Store Errors in script as a csv file