Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 71eff037

Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 4 Jahren hinzugefügt

  • ID 71eff037f1b2da6a2a2e3a392a6332648d805a6a
  • Vorgänger ecc3f8bc
  • Nachfolger 0f19ca7e

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

Unterschiede anzeigen:

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