Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 48009569

Von Sven Schöling vor etwa 3 Jahren hinzugefügt

  • ID 48009569d842ec2bc94bba2da09ccfac67a96a71
  • Vorgänger 0b032505
  • Nachfolger 1f5d8d66

DeliveryOrder: Übergabe in/out verbessert

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
407 407
                                  email_form  => $email_form,
408 408
                                  show_bcc    => $::auth->assert('email_bcc', 'may fail'),
409 409
                                  FILES       => \%files,
410
                                  is_customer => $self->cv eq 'customer',
410
                                  is_customer => $self->type_data->is_customer,
411 411
                                  ALL_EMPLOYEES => $self->{all_employees},
412 412
  );
413 413

  
......
1637 1637
                                                } } @all_objects;
1638 1638
  }
1639 1639

  
1640
  $self->{template_args}{inout} = $self->type_data->properties('transfer');
1640
  $self->{template_args}{in_out} = $self->type_data->transfer;
1641 1641

  
1642 1642
  $self->get_item_cvpartnumber($_) for @{$self->order->items_sorted};
1643 1643

  
......
2007 2007

  
2008 2008
  return "" if !$item->part || !$item->part->unit || !$item->unit;
2009 2009

  
2010
  my $in_out   = $self->type_data->properties("transfer");
2010
  my $in_out   = $self->type_data->transfer;
2011 2011

  
2012 2012
  my $do_qty   = $item->qty;
2013 2013
  my $sum      = sum0 map {
SL/Controller/DeliveryOrder/TypeData.pm
65 65
  get3($_[0]->c->type, "properties", "nr_key");
66 66
}
67 67

  
68
sub transfer {
69
  get3($_[0]->c->type, "properties", "transfer");
70
}
71

  
68 72
sub part_classification_query {
69 73
  my ($self, $string) = @_;
70 74
  get($self->c->type, "part_classification_query");
templates/webpages/delivery_order/tabs/basic_data.html
222 222
                [%- END -%]
223 223
                <th id="qty_header_id"          class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.DeliveryOrder.reorder_items("qty")'>        [%- 'Qty'         | $T8 %]</a></th>
224 224
                <th class="listheading" nowrap width="5" >[%- 'Unit'         | $T8 %] </th>
225
                [% IF inout == 'in' %]
225
                [% IF in_out == 'in' %]
226 226
                <th class="listheading" nowrap width="5" >[%- 'Transfer To Stock' | $T8 %] </th>
227 227
                [% END %]
228
                [% IF inout == 'out' %]
228
                [% IF in_out == 'out' %]
229 229
                <th class="listheading" nowrap width="5" >[%- 'Release From Stock' | $T8 %] </th>
230 230
                [% END %]
231 231
              </tr>

Auch abrufbar als: Unified diff