Revision e148b1c2
Von Niklas Schmidt vor 4 Tagen hinzugefügt
- ID e148b1c2949d4d9a3ed8f9effe9e82cda3091978
- Vorgänger 44fff8c6
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
947 | 947 |
sub action_stock_in_out_dialog { |
948 | 948 |
my ($self) = @_; |
949 | 949 |
|
950 |
my $part = SL::DB::Part->load_cached($::form->{parts_id}) or die "need parts_id"; |
|
951 |
my $unit = SL::DB::Unit->load_cached($::form->{unit}) or die "need unit"; |
|
952 |
my $stock = $::form->{stock}; |
|
953 |
my $row = $::form->{row}; |
|
954 |
my $item_id = $::form->{item_id}; |
|
955 |
my $qty = _parse_number($::form->{qty_as_number}); |
|
956 |
my $row_ui_id = $::form->{row_ui_id}; |
|
950 |
my $part = SL::DB::Part->load_cached($::form->{parts_id}) or die "need parts_id";
|
|
951 |
my $unit = SL::DB::Unit->load_cached($::form->{unit}) or die "need unit";
|
|
952 |
my $stock = $::form->{stock};
|
|
953 |
my $row = $::form->{row};
|
|
954 |
my $item_id = $::form->{item_id};
|
|
955 |
my $qty = _parse_number($::form->{qty_as_number});
|
|
956 |
my $row_ui_id = $::form->{row_ui_id};
|
|
957 | 957 |
my $next_button = $::form->{next_button} eq 'true'; |
958 | 958 |
|
959 | 959 |
my $inout = $self->type_data->properties("transfer"); |
... | ... | |
965 | 965 |
|
966 | 966 |
my $delivered = $self->order->delivered; |
967 | 967 |
$self->render("delivery_order/stock_dialog", { layout => 0 }, |
968 |
WHCONTENTS => \@contents, |
|
969 |
STOCK_INFO => $stock_info, |
|
970 |
WAREHOUSES => !$delivered ? SL::DB::Manager::Warehouse->get_all(query => [ or => [ invalid => 0, invalid => undef ]], with_objects=> ["bins",]) : [], |
|
971 |
part => $part, |
|
972 |
do_qty => $qty, |
|
973 |
do_unit => $unit->name, |
|
974 |
delivered => $self->order->delivered, |
|
975 |
row => $row, |
|
976 |
item_id => $item_id, |
|
977 |
in_out => $inout, |
|
978 |
row_ui_id => $row_ui_id, |
|
968 |
WHCONTENTS => \@contents,
|
|
969 |
STOCK_INFO => $stock_info,
|
|
970 |
WAREHOUSES => !$delivered ? SL::DB::Manager::Warehouse->get_all(query => [ or => [ invalid => 0, invalid => undef ]], with_objects=> ["bins",]) : [],
|
|
971 |
part => $part,
|
|
972 |
do_qty => $qty,
|
|
973 |
do_unit => $unit->name,
|
|
974 |
delivered => $self->order->delivered,
|
|
975 |
row => $row,
|
|
976 |
item_id => $item_id,
|
|
977 |
in_out => $inout,
|
|
978 |
row_ui_id => $row_ui_id,
|
|
979 | 979 |
next_button => $next_button, |
980 | 980 |
); |
981 | 981 |
} |
Auch abrufbar als: Unified diff
S:C:DeliveryOrder: Kosmetik (Einrückungen)