ThresholdReleasePolicy
in package
implements
DemandReleasePolicyInterface
FinalYes
Releases accumulated ready quantities once a configured fill threshold is reached.
Table of Contents
Interfaces
- DemandReleasePolicyInterface
- Builds shipment releases from per-line demand schedules.
Properties
- $minFillRatio : float
- Minimum fill ratio required before accumulated ready quantities may ship.
- $minReadyQuantity : int|float
- Minimum absolute ready quantity required before a shipment may release.
Methods
- __construct() : mixed
- Create one threshold-based release policy.
- release() : array<int, DemandShipmentLine>
- Release accumulated ready quantities whenever the configured thresholds are met.
Properties
$minFillRatio read-only
Minimum fill ratio required before accumulated ready quantities may ship.
private
float
$minFillRatio
= 0.0
$minReadyQuantity read-only
Minimum absolute ready quantity required before a shipment may release.
private
int|float
$minReadyQuantity
= 0
Methods
__construct()
Create one threshold-based release policy.
public
__construct([float $minFillRatio = 0.0 ][, int|float $minReadyQuantity = 0 ]) : mixed
Parameters
- $minFillRatio : float = 0.0
- $minReadyQuantity : int|float = 0
release()
Release accumulated ready quantities whenever the configured thresholds are met.
public
release(DemandReleaseContext $context) : array<int, DemandShipmentLine>
Parameters
- $context : DemandReleaseContext
Attributes
- #[Override]