Scenario
To print the Item’s amount from Sales Order when printing Packing Slip.
Solution
1. Create Custom Transaction Line Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
- Example: Amount in Sales Order
- ID: Enter Id
- Example: _amount_so
- Type: Select Currency
- Store Value: Remove Checkmark
- Applies To:
- Sale Item: Enter Checkmark
- Click Validation & Defaulting subtab
- Formula: Enter Checkmark
- Default Value: Enter {amount}
- Click Save
2. Create Custom Transaction Line Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
- Example: Amount Applied in SO )and IF
- ID: Enter Id
- Example: _amount_soandif
- Type: Select Currency
- Store Value: Enter Checkmark
- Applies To:
- Sale Item: Enter Checkmark
- Item Fulfillment: Enter Checkmark
- Click Save
3. Create Workflow
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter Name
- Example: Populate Item’s amount on Sales Order
- Record Type: Select Transaction
- Sub Record Type: Select Sales Order
- Execute as Admin: Enter Checkmark
- Released Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging Checkbox: Enter Checkmark
- Event Definition:
- On Create: Enter Checkmark
- On View or Update: Enter Checkmark
- Click Save
- Double Click State 1
- Click Actions
- Click New Sublist Group
- Basic Information:
- Trigger On: Select After Record Submit
- Click Save
- Click Sublist Action Group
- Click New Action
- Click Set Field Value
- Parameters:
- Field: Select Amount applied on SO and IF
- Value:
- Click Formula
- Formula : Enter {line.custcol_amount_so)
- Click Save
4. Customize Advanced PDF/HTML Templates
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
- Click Edit / Customize Packing Slip Advanced PDF/HTML Templates
- Click Source Code
- Paste code ${tranline.custcol_amount_soandif}
- Click Template Setup
- Title : Enter Title
- Example: Custom Packing Slip with Item’s Amount
- Click Save
5. Customize Custom Form
- Navigate to Customization > Forms > Transaction Forms
- Click Edit / Customize Packing Slip Form
- Printing Type: Select Advanced
- Printing Template : Select Custom Packing Slip with Item’s Amount
- Click Save
Note: This will only work for newly created Item Fulfillment.