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.