Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 71eff037

Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 3 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
282 282
          warehouse_id => t8('Warehouses'),
283 283
          chargenumber => t8('Chargenumbers'),
284 284
        );
285
        my @allocs = grep { !$whitelist{$_->$accessor} } @$allocations;
285 286
        die SL::X::Inventory::Allocation->new(
286
          error => 'allocation constraints failure',
287
          accessor    => $accessor,
288
          allocations => \@allocs,
289
          error       => 'allocation constraints failure',
287 290
          msg => t8("Allocations didn't pass constraints for #1",$error_constraints{$_}),
288 291
        );
289 292
      }

Auch abrufbar als: Unified diff