Releases held inventory and inserts it back into the stock. If a quantity is specified
and it is lower than the held quantity, than the transaction state will change to
released-partial and then returned to the state on-hold with the remainder of the
held stock.