X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8c1d5d7530f3a1c923ee470b7ff31616800a8574..6ef4190ee87f3b7ba053bcc247aa92b92ef02cb4:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index d4b341340..1a02c59c6 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -872,6 +872,13 @@ sub all_parts { } } + # special case smart search + if ($form->{all}) { + $form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost cvar_packaging linetotal); + push @where_tokens, "p.partnumber ILIKE ? OR p.description ILIKE ?"; + push @bind_vars, "%$form->{all}%", "%$form->{all}%"; + } + # special case insertdate if (grep { $form->{$_} } qw(insertdatefrom insertdateto)) { $form->{"l_insertdate"} = 1;