Revision 0c050c76
Von Werner Hahn vor fast 7 Jahren hinzugefügt
SL/IC.pm | ||
---|---|---|
314 | 314 |
|
315 | 315 |
# special case smart search |
316 | 316 |
if ($form->{all}) { |
317 |
$form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost cvar_packaging linetotal);
|
|
318 |
$form->{l_service} = 1 if($form->{searchitems} eq 'service' || $form->{searchitems} eq '');
|
|
319 |
$form->{l_assembly} = 1 if($form->{searchitems} eq 'assembly' || $form->{searchitems} eq '');
|
|
320 |
$form->{l_part} = 1 if($form->{searchitems} eq 'part' || $form->{searchitems} eq '');
|
|
321 |
$form->{l_assortment} = 1 if($form->{searchitems} eq 'assortment' || $form->{searchitems} eq '');
|
|
317 |
$form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost linetotal); |
|
318 |
$form->{l_service} = 1 if $form->{searchitems} eq 'service' || $form->{searchitems} eq '';
|
|
319 |
$form->{l_assembly} = 1 if $form->{searchitems} eq 'assembly' || $form->{searchitems} eq '';
|
|
320 |
$form->{l_part} = 1 if $form->{searchitems} eq 'part' || $form->{searchitems} eq '';
|
|
321 |
$form->{l_assortment} = 1 if $form->{searchitems} eq 'assortment' || $form->{searchitems} eq '';
|
|
322 | 322 |
push @where_tokens, "p.partnumber ILIKE ? OR p.description ILIKE ?"; |
323 | 323 |
push @bind_vars, (like($form->{all})) x 2; |
324 | 324 |
} |
Auch abrufbar als: Unified diff
Formatierung und unnötiges Arrayelement entfernt