CoolCMS API

IssueLine
in package

FinalYes

One line of an issue document or transfer source.

Value object, not a DI service (the *DTO* folder is excluded from DI scanning).

salePrice is an optional sale-price snapshot from the caller (the store never computes sale prices) in saleCurrencyId (base currency assumed when null). batchId optionally pins the consumption to one explicit batch (manual issue) instead of automatic FEFO; the batch must belong to the same stock item and warehouse, otherwise the operation fails.

Table of Contents

Properties

$batchId  : int|null
$quantity  : string
$saleCurrencyId  : int|null
$salePrice  : string|null
$stockItemId  : int

Methods

__construct()  : mixed

Properties

$batchId read-only

public int|null $batchId = null

$saleCurrencyId read-only

public int|null $saleCurrencyId = null

$salePrice read-only

public string|null $salePrice = null

$stockItemId read-only

public int $stockItemId

Methods

__construct()

public __construct(int $stockItemId, string $quantity[, string|null $salePrice = null ][, int|null $saleCurrencyId = null ][, int|null $batchId = null ]) : mixed
Parameters
$stockItemId : int
$quantity : string
$salePrice : string|null = null
$saleCurrencyId : int|null = null
$batchId : int|null = null
On this page

Search results