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

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

Marks a transaction as received. If the previous state was ordered then the amount ordered is inserted into the stock. If a quantity is specified then the status of the transaction is set to received-partial, and then returned to ordered with the amount of quantity left to receive.
public received ( integer | float | string $quantity, string $reason = '', integer | float | string $cost )
$quantity integer | float | string
$reason string
$cost integer | float | string
    public function received($quantity = 0, $reason = '', $cost = 0)
    {
        if ($quantity) {
            return $this->receivedPartial($quantity, $reason, $cost);
        }
        return $this->receivedAll($reason, $cost);
    }