Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 94f827e0

Von Tamino Steinert vor fast 2 Jahren hinzugefügt

  • ID 94f827e02c0f1b89964ed48d2d42e294cf717984
  • Vorgänger ea5b6825
  • Nachfolger fe70b1f3

Kunden/Lieferanten-Bericht: nach Abteilung filtern

Abteilungen im neuen Design anzeigen

Unterschiede anzeigen:

SL/CT.pm
"customernumber" => "ct.customernumber",
"vendornumber" => "ct.vendornumber",
"name" => "ct.name",
"department_1" => "ct.department_1",
"department_2" => "ct.department_2",
"contact" => "ct.contact",
"phone" => "ct.phone",
"fax" => "ct.fax",
......
push(@values, like($form->{"${cv}number"}));
}
foreach my $key (qw(name contact email)) {
if ($form->{$key}) {
foreach my $key (qw(name department_1 department_2 contact email)) {
if ($form->{$key} ne '') {
$where .= " AND ct.$key ILIKE ?";
push(@values, like($form->{$key}));
}
bin/mozilla/ct.pl
my $zugferd_filter = $form->{create_zugferd_invoices} eq '' ? undef : $zugferd_settings_list[$form->{create_zugferd_invoices} + 1]->[1];
push @options, $locale->text('Name') . " : $form->{name}" if $form->{name};
push @options, $locale->text('Department') . ' 1' . " : $form->{department_1}" if $form->{department_1};
push @options, $locale->text('Department') . ' 2' . " : $form->{department_2}" if $form->{department_2};
push @options, $locale->text('Contact') . " : $form->{contact}" if $form->{contact};
push @options, $locale->text('Number') . qq| : $form->{"$form->{db}number"}| if $form->{"$form->{db}number"};
push @options, $locale->text('E-mail') . " : $form->{email}" if $form->{email};
......
my @hidden_variables = ( qw(
db status obsolete name contact email cp_name addr_street addr_zipcode
addr_city addr_country addr_gln business_id salesman_id insertdateto insertdatefrom all
all_phonenumbers dunning_lock
all_phonenumbers dunning_lock department_1 department_2
), "$form->{db}number",
map({ "cvar_$_->{name}" } @searchable_custom_variables),
map({'cvar_'. $_->{name} .'_from'} grep({$_->{type} eq 'date'} @searchable_custom_variables)),
templates/design40_webpages/ct/search.html
<th>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </th>
<td><input type="text" id="name" name="name" class="initial_focus wi-normal"></td>
</tr>
<tr>
<th>[% 'Department' | $T8 %]</th>
<td><input type="text" name="department_1" class="wi-normal"></td>
</tr>
<tr>
<th></th>
<td><input type="text" name="department_2" class="wi-normal"></td>
</tr>
<tr>
<th>[% 'Contact' | $T8 %] </th>
<td><input type="text" name="contact" class="wi-normal"></td>
......
<input name="l_name" id="l_name" type="checkbox" value="Y" checked>
<label for="l_name"> [% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </label>
</div>
<div>
<input name="l_department_1" id="l_department_1" type="checkbox" value="Y">
<label for="l_department_1"> [% 'Department' | $T8 %] 1</label>
</div>
<div>
<input name="l_department_2" id="l_department_2" type="checkbox" value="Y">
<label for="l_department_2"> [% 'Department' | $T8 %] 2</label>
</div>
<div>
<input name="l_contact" id="l_contact" type="checkbox" value="Y" checked>
<label for="l_contact"> [% 'Contact' | $T8 %] </label>
templates/webpages/ct/search.html
<td><input id="name" name="name" size="35" class="initial_focus"></td>
</tr>
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td><input type="text" name="department_1" size="35"></td>
</tr>
<tr>
<th></th>
<td><input type="text" name="department_2" size="35"></td>
</tr>
<tr>
<th align="right" nowrap>[% 'Contact' | $T8 %]</th>
<td><input name="contact" size="35"></td>

Auch abrufbar als: Unified diff