Scenario
In order to calculate for the Total Payments Made on a specific Sales Order record, create a Saved Search that will source the Customer Deposits that are not yet applied to an Invoice.
Solution
- Create a Saved Search to get Customer Deposits that are not yet applied to an Invoice
- Navigate to Lists > Search > Saved Searches > New
- Click Transaction
- Search Title: Enter Title
Example: Customer Deposit by Sales Order - Click Criteria
- Click Standard
- Filter:
Note: Always click Add once Field selected and adjusted as needed. - Select Type
- Description: is Customer Deposit
- Select Status
- Description: none of Customer Deposit: Fully Applied, Customer Deposit: Unapproved Payment
- Click Results
- Click Columns
- Click Remove All
- Field:
Note: Always click Add once Field selected and adjusted as needed. - Select Amount (Foreign Currency)
- Summary Type: Select Sum
- Select Internal ID
- Select Document Number
- Click Available Filters
- Filter:
Note: Always click Add once Filter selected and adjusted as needed. - Select Sales Order
- Click Add
- Click Save
- Create a Transaction Body Field for Customer Deposit Amount
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
Example: Deposited Amount - Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Display tab
- Subtab: Select Main
- Display Type: Select Hidden
Note: The Display Type is set to Hidden since it is not necessary to display the field on the Sales Order. - Click Validation & Defaulting tab
- Search: Select Customer Deposit by Sales Order (Saved Search created on Step 1)
- Click Save
- Create a Saved Search to get Payments made on the Invoice
- Navigate to Lists > Search > Saved Searches > New
- Click Transaction
- Search Title: Enter Title
Example: Invoice Amount Paid by Sales Order - Click Criteria
- Click Standard
- Filter:
Note: Always click Add once Field selected and adjusted as needed. - Select Type
- Description: is Invoice
- Click Results
- Click Columns
- Click Remove All
- Field:
Note: Always click Add once Field selected and adjusted as needed. - Select Amount (Foreign Currency)
- Summary Type: Select Sum
- Select Internal ID
- Select Document Number
- Click Available Filters
- Filter:
Note: Always click Add once Filter selected and adjusted as needed. - Select Created From
- Click Add
- Click Save
- Create a Transaction Body Field for Invoice Payments
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
Example: Invoice Payment - Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Display tab
- Subtab: Select Main
- Display Type : Select Hidden
Note: The Display Type is set to Hidden since it is not necessary to display the field on the Sales Order. - Click Validation & Defaulting tab
- Search: Select Invoice Amount Paid by Sales Order (Saved Search created on Step 3)
- Click Save
- Create a Transaction Body Field for Payment Applied
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter Label
Example: Payment Applied - Type: Select Currency
- Store Value: Remove Checkmark
- Click Applies To tab
- Sale: Enter Checkmark
- Click Display tab
- Subtab: Select Main
- Display Type: Select Hidden
Note: The Display Type is set to Hidden since it is not necessary to display the field on the Sales Order. - Click Validation & Defaulting tab
- Default value: Enter NVL({custbody_amountpaid}, 0) + NVL({custbody_amountdeposited}, 0)
- Formula: Enter Checkmark
- Click Save