]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Helper/Inventory.pm
Inventory Helper: Mehr Info zum Alloc-Fehler
[mfinanz.git] / SL / Helper / Inventory.pm
index 4da9bb798ac70dfa62edb92776154aac9432c666..17a7d98c099e0719b7c77d8aef52a0deb9f19dcf 100644 (file)
@@ -282,8 +282,11 @@ sub check_constraints {
           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{$_}),
         );
       }