Revision 43e56b93
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
287 | 287 |
"projects" => { "key" => "ALL_PROJECTS", |
288 | 288 |
"all" => 0, |
289 | 289 |
"old_id" => \@old_project_ids }, |
290 |
"employees" => "ALL_EMPLOYEES", |
|
291 | 290 |
"taxzones" => "ALL_TAXZONES", |
292 | 291 |
"currencies" => "ALL_CURRENCIES", |
293 | 292 |
"vendors" => "ALL_VENDORS", |
294 | 293 |
"departments" => "all_departments", |
295 | 294 |
"price_factors" => "ALL_PRICE_FACTORS"); |
296 | 295 |
|
296 |
$TMPL_VAR{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{employee_id}, deleted => 0 ] ]); |
|
297 | 297 |
$TMPL_VAR{ALL_CONTACTS} = SL::DB::Manager::Contact->get_all(query => [ |
298 | 298 |
or => [ |
299 | 299 |
cp_cv_id => $::form->{"$::form->{vc}_id"} * 1, |
... | ... | |
303 | 303 |
] |
304 | 304 |
] |
305 | 305 |
]); |
306 |
$TMPL_VAR{sales_employee_labels} = sub { $_[0]->{name} || $_[0]->{login} }; |
|
307 |
# $TMPL_VAR{shipto_labels} = sub { join "; ", grep { $_ } map { $_[0]->{"shipto${_}" } } qw(name department_1 street city) }; |
|
308 | 306 |
$TMPL_VAR{department_labels} = sub { "$_[0]->{description}--$_[0]->{id}" }; |
309 | 307 |
|
310 | 308 |
# customer |
templates/webpages/ir/form_header.html | ||
---|---|---|
125 | 125 |
<table> |
126 | 126 |
<tr> |
127 | 127 |
<th align="right">[% 'Employee' | $T8 %]</th> |
128 |
<td> |
|
129 |
[%- INCLUDE 'generic/multibox.html' |
|
130 |
name = 'employee_id', |
|
131 |
DATA = ALL_EMPLOYEES, |
|
132 |
id_key = 'id', |
|
133 |
label_sub = 'sales_employee_labels' -%] |
|
134 |
</td> |
|
128 |
<td>[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title='safe_name')) %]</td> |
|
135 | 129 |
</tr> |
136 | 130 |
|
137 | 131 |
[%- IF is_type_credit_note %] |
Auch abrufbar als: Unified diff
gelöschte Benutzer in ir/form_header ausblenden