Step #1 Create a Saved Search
1. Navigate to Reports > Saved Searches > All Saved Searches > New
2. Select the Type Of Saved Search: Transaction.
3. Under Criteria subtab, set the following:
Type: Purchase Order
4. Under results tab, add the following:
Internal ID
Quantity: select Sum in summary type Field.
5. Navigate to Available Filters tab and add Internal ID.
6. Click Save and Run.
Step #2 Create a Custom Field
1. Navigate to Customization >List, Records and Fields > Transaction Body fields > New.
2. Set the following:
Label: Total Quantity
Type: Integer Number
Store Value: unchecked
3. Applies to: Purchase Item
4. Under Display subtab: Main
5. Validation and Defaulting Under Search select the search created above.
Step #3 Print it on Transaction Layout
Navigate to a Purchase Order
Basic PDF lick Customize > customize Form on Purchase Order on the top right corner of screen to determine the layout being used.
We navigated to Customization > Forms > Transaction Forms
Under Printing Fields tab, select the field created in Step #2
Advanced printing: ${record.custbody5}
custbody5 is the internal id of custom field created in Step #2