Revision 3914f665
Von Bernd Bleßmann vor fast 9 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
629 | 629 |
my ($self) = @_; |
630 | 630 |
|
631 | 631 |
$self->{all_taxzones} = SL::DB::Manager::TaxZone->get_all_sorted(); |
632 |
$self->{all_departments} = SL::DB::Manager::Department->get_all_sorted(); |
|
632 | 633 |
$self->{all_employees} = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->employee_id, |
633 | 634 |
deleted => 0 ] ], |
634 | 635 |
sort_by => 'name'); |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
41 | 41 |
<td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]</td> |
42 | 42 |
</tr> |
43 | 43 |
|
44 |
[%- IF SELF.all_departments.size %] |
|
45 |
<tr> |
|
46 |
<th align="right">[% 'Department' | $T8 %]</th> |
|
47 |
<td> |
|
48 |
[% L.select_tag('order.department_id', SELF.all_departments, default=SELF.order.department_id, title_key='description', with_empty=1, style='width:300px') %] |
|
49 |
</td> |
|
50 |
</tr> |
|
51 |
[%- END %] |
|
52 |
|
|
44 | 53 |
<tr> |
45 | 54 |
<th align="right">[% 'Shipping Point' | $T8 %]</th> |
46 | 55 |
<td>[% L.input_tag('order.shippingpoint', SELF.order.shippingpoint, style='width: 300px') %]</td> |
Auch abrufbar als: Unified diff
Auftrags-Controller: Abteilungen