Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 527e86b3

Von Tamino Steinert vor mehr als 2 Jahren hinzugefügt

  • ID 527e86b360e3b89cea34a79c53d630b7aff2dd10
  • Vorgänger fa5899cf
  • Nachfolger 13b8f24a

Controller: DeliveryOrder: stock_dialog um Einlagern erweitert (WIP)

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
use SL::DB::Shipto;
use SL::DB::Translation;
use SL::DB::TransferType;
use SL::DB::Warehouse;
use SL::Helper::CreatePDF qw(:all);
use SL::Helper::PrintOptions;
......
$self->merge_stock_data($stock_info, \@contents, $part, $unit);
my @collection = (
{ 'description' => 'foo_1', 'id' => '1',
'key_1' => [
{ 'id' => 3, 'description' => "bar_1",
'key_2' => [
{ 'id' => 1, 'value' => "foobar_1", },
{ 'id' => 2, 'value' => "foobar_2", },
],
},
{ 'id' => 4, 'description' => "bar_2",
'key_2' => [],
},
],
},
{ 'description' => 'foo_2', 'id' => '2',
'key_1' => [
{ 'id' => 1, 'description' => "bar_1",
'key_2' => [
{ 'id' => 3, 'value' => "foobar_3", },
{ 'id' => 4, 'value' => "foobar_4", },
],
},
{ 'id' => 2, 'description' => "bar_2",
'stock' => [
{ 'id' => 5, 'value' => "test_5", },
],
},
],
},
);
$self->render("delivery_order/stock_dialog", { layout => 0 },
WHCONTENTS => $self->order->delivered ? $stock_info : \@contents,
WAREHOUSES => SL::DB::Manager::Warehouse->get_all(with_objects=> ["bins",]),
COLLECTION => \@collection,
part => $part,
do_qty => $qty,
do_unit => $unit->unit,
delivered => $self->order->delivered,
row => $row,
item_id => $item_id,
in_out => $inout,
);
}

Auch abrufbar als: Unified diff