AdjustLine
in package
FinalYes
One line of a stock count / inventory (inventura). Value object (no DI — `*DTO*` folder mask).
countedQuantity is the physically counted amount; snapshotQuantity is the level quantity the
operator saw when the count started — under the level FOR UPDATE lock the service re-reads the
live quantity and rejects the line (protection against a stale count) when it no longer matches, without
failing the rest of the document.
Table of Contents
Properties
- $countedQuantity : string
- $snapshotQuantity : string
- $stockItemId : int
Methods
- __construct() : mixed
Properties
$countedQuantity read-only
public
string
$countedQuantity
$snapshotQuantity read-only
public
string
$snapshotQuantity
$stockItemId read-only
public
int
$stockItemId
Methods
__construct()
public
__construct(int $stockItemId, string $countedQuantity, string $snapshotQuantity) : mixed
Parameters
- $stockItemId : int
- $countedQuantity : string
- $snapshotQuantity : string