
I have an inventory system.
The square in YELLOW is where my problem is.
What's marked in GREEN are from the same database.
The variable "qtde" represents the quantity column of the database.
The variable "Arrqtde" represents the quantity that will be deducted from the stock.
My problem is here on the second qtde: qtde: qtde - Value(Arrqtde)
The second qtde is supposed to be the live amount of items in the stock of that specific LookUp record (because is in a collect), but I don't know what I'm missing here.
I need that the second qtde to represent the live amount of items in the stock of that LookUp Record.