X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FInventory.pm;h=5bc780bf92732109a6aaf3dafdbd904abb5d3908;hb=a87694dc525b4eabff11029f1e5401621e2bd3bc;hp=0a41f0b7df470f565a851a95dbcb1f9509b87b4f;hpb=efb9a24f2252104ab4af5c25334119d7c5c70a8c;p=kivitendo-erp.git diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index 0a41f0b7d..5bc780bf9 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -59,6 +59,7 @@ sub action_stock { unit => $self->unit, transfer_type => 'stock', chargenumber => $::form->{chargenumber}, + bestbefore => $::form->{bestbefore}, ean => $::form->{ean}, comment => $::form->{comment}, }); @@ -243,7 +244,7 @@ sub show_no_warehouses_error { my $msg = t8('No warehouse has been created yet or the quantity of the bins is not configured yet.') . ' '; - if ($::auth->check_right($::form->{login}, 'config')) { # TODO wut? + if ($::auth->check_right($::myconfig{login}, 'config')) { # TODO wut? $msg .= t8('You can create warehouses and bins via the menu "System -> Warehouses".'); } else { $msg .= t8('Please ask your administrator to create warehouses and bins.');