X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c591d7cc57b800cc74a070efeecca021782f5e35..50a6450fe0ee8e4576e4de99185c2ba04b18a5c3:/SL/Helper/Inventory.pm diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index eb18305c8..da3e5b1d8 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -152,14 +152,8 @@ sub get_onhand { sub allocate { my (%params) = @_; - die SL::X::Inventory::Allocation->new( - error => 'allocate needs a part', - msg => t8("Method allocate needs the parameter 'part'"), - ) unless $params{part}; - die SL::X::Inventory::Allocation->new( - error => 'allocate needs a qty', - msg => t8("Method allocate needs the parameter 'qty'"), - ) unless $params{qty}; + croak('allocate needs a part') unless $params{part}; + croak('allocate needs a qty') unless $params{qty}; my $part = $params{part}; my $qty = $params{qty};