HI, I have a client who is asking for this on the Sales Order printed form, SO641010.rpx:
*T Total - Set a variable to accumulate the extended price for each line as it is processed with an initial value of 0. Increment value with the extended price for each line as lines are processed. If and when a line with Inventory ID = *T, the form should print the Transaction Description and the variable accumulated value in the extended price column. Reset the variable to 0.
I have a variable that is the subtotal of the lines. The problem I am having is printing the variable and when it is getting reset. I have tried various things to get this to work.
The Output is clearing the variable prior to the data being printed, see below.
Here is a picture of the variable & how it is being reset.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/53a73c43-a705-41b6-8c54-b75a19bccd26.png)
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/da9ccbff-6596-43c7-9cff-bb7a8cbd15b1.png)