Revision 71eff037
Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 4 Jahren hinzugefügt
SL/Helper/Inventory.pm | ||
---|---|---|
warehouse_id => t8('Warehouses'),
|
||
chargenumber => t8('Chargenumbers'),
|
||
);
|
||
my @allocs = grep { !$whitelist{$_->$accessor} } @$allocations;
|
||
die SL::X::Inventory::Allocation->new(
|
||
error => 'allocation constraints failure',
|
||
accessor => $accessor,
|
||
allocations => \@allocs,
|
||
error => 'allocation constraints failure',
|
||
msg => t8("Allocations didn't pass constraints for #1",$error_constraints{$_}),
|
||
);
|
||
}
|
Auch abrufbar als: Unified diff
Inventory Helper: Mehr Info zum Alloc-Fehler
Nun werden an die Exception noch zwei weitere Parameter zur Auswertung übergeben:
- accessor: Bei wem tritt der Fehler auf
- allocations: Parameter die zu diesem Fehler geführt haben
zu #9457 und #10417