Scenario
Show Total Gross Profit for Invoice Item Lines in the Invoice.
Solution
1. Create Custom Transaction Line Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Line Field > New
- Label: Enter Label
- Example: Purchase Price
- ID: Enter purchaseprice
- Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Sourcing and Filtering tab
- Source List: Select Item
- Source From: Select Purchase Price
- Click Save
2. Create Custom Transaction Line Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Line Field > New
- Label: Enter Label
- Example: Gross Profit
- Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Display tab
- Display Type: Select Disabled
- Click Validation & Defaulting tab
- Default Value: Enter {amount} – ({custcolpurchaseprice}*{quantity})
- Click Save
3. Create Transaction Saved Search
- Navigate to Lists > Search > Saved Searches > New
- Click Transaction
- Search Title: Enter Title
- Example: Total Gross Profit on Invoice
- Public: Enter Checkmark
- Click Criteria
- Click Standard
- Filter:
- Select Type
- Description: Select any of
- Value: Select Invoice
- Click Set
- Click Results
- Click Columns
- Click Remove All
- Field:
- Select Gross Profit (Custom)
- Summary Type: Select Sum
- Click Available Filters
- Select Internal ID
- Click Save
4. Create Custom Transaction Body Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
- Example: Total Gross Profit
- Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Validation & Defaulting tab
- Search: Select Total Gross Profit on Invoice
- Click Save