Ignore:
Timestamp:
04/03/06 16:20:54 (18 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Extra code changes required for new billing system rollout. Note that references
to oldcustid can be removed later; this field is NOT required long-term.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/search.cgi

    r309 r318  
    106106  # First chunk of SQL.  Filter on custid, description, and notes as necessary.
    107107  my $sql = "(select $cols from searchme where $webvar{custexclude} custid ilike '%$webvar{custid}%')".
     108        " $sqlconcat $webvar{custexclude} oldcustid ilike '%$webvar{custid}%')".
    108109        " $sqlconcat (select $cols from searchme where $webvar{descexclude} description ilike '%$webvar{desc}%')".
    109110        " $sqlconcat (select $cols from searchme where $webvar{notesexclude} notes ilike '%$webvar{notes}%')";
     
    286287    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    287288    # as we have non-numeric custIDs in the legacy data.  :/
    288     $sql = "select * from searchme where custid ilike '%$query%'";
     289    $sql = "select * from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%'";
    289290    my $count = countRows($sql);
    290291    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
Note: See TracChangeset for help on using the changeset viewer.