Stevebauman\Inventory\Traits\InventoryTransactionTrait::release PHP Метод

release() публичный Метод

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.
public release ( integer | float | string $quantity, string $reason = '', integer | float | string $cost )
$quantity integer | float | string
$reason string
$cost integer | float | string
    public function release($quantity = 0, $reason = '', $cost = 0)
    {
        if ($quantity) {
            return $this->releasePartial($quantity, $reason, $cost);
        }
        return $this->releaseAll($reason, $cost);
    }