From: Sven Schöling Date: Fri, 16 Oct 2020 12:25:54 +0000 (+0200) Subject: t/wh/inventory.t: Reservierungen entfernt X-Git-Tag: kivitendo-mebil_0.1-0~9^2~597 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1dcd3e106387fb0bbf945e4ac6832508a84df18a;p=kivitendo-erp.git t/wh/inventory.t: Reservierungen entfernt --- diff --git a/t/wh/inventory.t b/t/wh/inventory.t index 36fc73ba1..8c5d84366 100644 --- a/t/wh/inventory.t +++ b/t/wh/inventory.t @@ -6,7 +6,6 @@ use lib 't'; use SL::Dev::Part qw(new_part new_assembly); use SL::Dev::Inventory qw(create_warehouse_and_bins set_stock); use SL::Dev::Record qw(create_sales_order); -use SL::DB::Helper::Reservation qw(make_reservation); use_ok 'Support::TestSetup'; use_ok 'SL::DB::Bin'; @@ -58,20 +57,6 @@ WH->transfer({ is(SL::Helper::Inventory::get_stock(part => $assembly1), "60.00000", 'normal get_stock works'); is(SL::Helper::Inventory::get_onhand(part => $assembly1), "60.00000", 'normal get_onhand works'); -# reserve some of it, get_stock, get_onhand - -my $order = create_sales_order(save => 1); - -make_reservation( - part => $assembly1, - bin => $bin1, - reserve_for => $order, - qty => 25, -); - -is(WH->get_stock_(part => $assembly1), "60.00000", 'normal get_stock works'); -is(WH->get_onhand_(part => $assembly1), "35.00000", 'normal get_onhand works'); - # allocate some stuff my @allocations = SL::Helper::Inventory::allocate( @@ -85,8 +70,6 @@ is_deeply(\%{ $allocations[0] }, { chargenumber => '', parts_id => $assembly1->id, qty => 12, - reserve_for_id => undef, - reserve_for_table => undef, warehouse_id => $wh->id, comment => undef, for_object_id => undef, @@ -94,8 +77,6 @@ is_deeply(\%{ $allocations[0] }, { # simple -# with reservation - # more than exists # produce something