===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
sql-ledger-3.2.6/doc/faq.html-505-read tmp
sql-ledger-3.2.6/doc/faq.html:506:first_line=`echo $tmp | cut -b1-2 | sed -n '1p'`
sql-ledger-3.2.6/doc/faq.html-507-
sql-ledger-3.2.6/doc/faq.html:508:first_chr=`expr "$first_line" : '\(.\)'`
sql-ledger-3.2.6/doc/faq.html:509:first_two=`expr "$first_line" : '\(..\)'`
sql-ledger-3.2.6/doc/faq.html-510-rewindstdin
##############################################
sql-ledger-3.2.6/bin/mozilla/pos.pl-937-  if ($form->{cashdrawer}) {
sql-ledger-3.2.6/bin/mozilla/pos.pl:938:    system($form->unescape($form->{cashdrawer})) == 0 or $form->error($locale->text('Open drawer command failed!'));
sql-ledger-3.2.6/bin/mozilla/pos.pl-939-  } else {
##############################################
sql-ledger-3.2.6/bin/mozilla/pos.pl-962-
sql-ledger-3.2.6/bin/mozilla/pos.pl:963:    $rc = system("$arg 2>$errfile");
sql-ledger-3.2.6/bin/mozilla/pos.pl-964-    
##############################################
sql-ledger-3.2.6/bin/mozilla/am.pl-3341-    @args = ("$gzip", '-d', "$userspath/$form->{tmpfile}");
sql-ledger-3.2.6/bin/mozilla/am.pl:3342:    system(@args) == 0 or $form->error($locale->text('gzip failed!'));
sql-ledger-3.2.6/bin/mozilla/am.pl-3343-
##############################################
sql-ledger-3.2.6/bin/mozilla/bp.pl-1016-      @args = ("pdftk $files cat output $filename");
sql-ledger-3.2.6/bin/mozilla/bp.pl:1017:      system(@args) % 256 == 0 or $form->error("@args : $?");
sql-ledger-3.2.6/bin/mozilla/bp.pl-1018-    }
##############################################
sql-ledger-3.2.6/bin/mozilla/login.pl-475-  # check for user config file, could be missing or ???
sql-ledger-3.2.6/bin/mozilla/login.pl:476:  eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/bin/mozilla/login.pl-477-
##############################################
sql-ledger-3.2.6/bin/lynx/pos.pl-937-  if ($form->{cashdrawer}) {
sql-ledger-3.2.6/bin/lynx/pos.pl:938:    system($form->unescape($form->{cashdrawer})) == 0 or $form->error($locale->text('Open drawer command failed!'));
sql-ledger-3.2.6/bin/lynx/pos.pl-939-  } else {
##############################################
sql-ledger-3.2.6/bin/lynx/pos.pl-962-
sql-ledger-3.2.6/bin/lynx/pos.pl:963:    $rc = system("$arg 2>$errfile");
sql-ledger-3.2.6/bin/lynx/pos.pl-964-    
##############################################
sql-ledger-3.2.6/bin/lynx/login.pl-474-  # check for user config file, could be missing or ???
sql-ledger-3.2.6/bin/lynx/login.pl:475:  eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/bin/lynx/login.pl-476-
##############################################
sql-ledger-3.2.6/bin/lynx/am.pl-3341-    @args = ("$gzip", '-d', "$userspath/$form->{tmpfile}");
sql-ledger-3.2.6/bin/lynx/am.pl:3342:    system(@args) == 0 or $form->error($locale->text('gzip failed!'));
sql-ledger-3.2.6/bin/lynx/am.pl-3343-
##############################################
sql-ledger-3.2.6/bin/lynx/bp.pl-1016-      @args = ("pdftk $files cat output $filename");
sql-ledger-3.2.6/bin/lynx/bp.pl:1017:      system(@args) % 256 == 0 or $form->error("@args : $?");
sql-ledger-3.2.6/bin/lynx/bp.pl-1018-    }
##############################################
sql-ledger-3.2.6/js/calendar.js-315-	b_ieMac  = b_mac && b_ie5,
sql-ledger-3.2.6/js/calendar.js:316:	b_safari = b_mac && re_webkit.exec(s_userAgent) && Number(RegExp.$1) < 500;
sql-ledger-3.2.6/js/calendar.js-317-
##############################################
sql-ledger-3.2.6/SL/CT.pm-60-		LEFT JOIN address ad1 ON (bk.address_id = ad1.id)
sql-ledger-3.2.6/SL/CT.pm:61:                WHERE ct.id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-62-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-71-    $query = qq|SELECT * FROM contact
sql-ledger-3.2.6/SL/CT.pm:72:                WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-73-		ORDER BY id|;
##############################################
sql-ledger-3.2.6/SL/CT.pm-85-	      JOIN $form->{db} ct ON (a.$form->{db}_id = ct.id)
sql-ledger-3.2.6/SL/CT.pm:86:	      WHERE ct.id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-87-	    UNION
##############################################
sql-ledger-3.2.6/SL/CT.pm-90-	      JOIN $form->{db} ct ON (a.$form->{db}_id = ct.id)
sql-ledger-3.2.6/SL/CT.pm:91:	      WHERE ct.id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-92-    if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/CT.pm-99-	            FROM pay_trans
sql-ledger-3.2.6/SL/CT.pm:100:		    WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-101-        if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/CT.pm-110-		JOIN $form->{db}tax t ON (t.chart_id = c.id)
sql-ledger-3.2.6/SL/CT.pm:111:		WHERE t.$form->{db}_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-112-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-125-		  LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/CT.pm:126:		  WHERE id = $form->{"${_}_accno_id"}|;
sql-ledger-3.2.6/SL/CT.pm-127-      ($accno, $description, $translation) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-277-    $query = qq|DELETE FROM $form->{db}tax
sql-ledger-3.2.6/SL/CT.pm:278:                WHERE $form->{db}_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-279-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-281-    $query = qq|DELETE FROM shipto
sql-ledger-3.2.6/SL/CT.pm:282:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-283-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-285-    $query = qq|DELETE FROM contact
sql-ledger-3.2.6/SL/CT.pm:286:                WHERE id = $form->{contactid}|;
sql-ledger-3.2.6/SL/CT.pm-287-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-290-                FROM bank
sql-ledger-3.2.6/SL/CT.pm:291:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-292-    ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-294-    $query = qq|DELETE FROM bank
sql-ledger-3.2.6/SL/CT.pm:295:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-296-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-298-    $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/CT.pm:299:                WHERE id = $form->{addressid}|;
sql-ledger-3.2.6/SL/CT.pm-300-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-303-    $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/CT.pm:304:                WHERE trans_id = $bank_address_id|;
sql-ledger-3.2.6/SL/CT.pm-305-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-307-    $query = qq|SELECT id FROM $form->{db}
sql-ledger-3.2.6/SL/CT.pm:308:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-309-    if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/CT.pm-331-    $query = qq|SELECT id FROM $form->{db}
sql-ledger-3.2.6/SL/CT.pm:332:                WHERE name = '$uid'|;
sql-ledger-3.2.6/SL/CT.pm-333-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-384-                FROM bank
sql-ledger-3.2.6/SL/CT.pm:385:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-386-    ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-419-		  FROM bank
sql-ledger-3.2.6/SL/CT.pm:420:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-421-      ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-477-	      enddate = |.$form->dbquote($form->{enddate}, SQL_DATE).qq|,
sql-ledger-3.2.6/SL/CT.pm:478:	      arap_accno_id = (SELECT id FROM chart WHERE accno = '$rec{arap_accno}'),
sql-ledger-3.2.6/SL/CT.pm:479:	      payment_accno_id = (SELECT id FROM chart WHERE accno = '$rec{payment_accno}'),
sql-ledger-3.2.6/SL/CT.pm:480:	      discount_accno_id = (SELECT id FROM chart WHERE accno = '$rec{discount_accno}'),
sql-ledger-3.2.6/SL/CT.pm:481:              prepayment_accno_id = (SELECT id FROM chart WHERE accno = '$rec{prepayment_accno}'),
sql-ledger-3.2.6/SL/CT.pm-482-	      cashdiscount = $form->{cashdiscount},
##############################################
sql-ledger-3.2.6/SL/CT.pm-486-	      remittancevoucher = '$form->{remittancevoucher}'
sql-ledger-3.2.6/SL/CT.pm:487:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-488-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-495-				        FROM chart
sql-ledger-3.2.6/SL/CT.pm:496:				        WHERE accno = '$item'))|;
sql-ledger-3.2.6/SL/CT.pm-497-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-573-  my $query = qq|DELETE FROM $form->{db}
sql-ledger-3.2.6/SL/CT.pm:574:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-575-  $dbh->do($query) || $form->dberror($query);
sql-ledger-3.2.6/SL/CT.pm-576-  
sql-ledger-3.2.6/SL/CT.pm:577:  $query = qq|DELETE FROM $form->{db}tax WHERE $form->{db}_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-578-  $dbh->do($query) || $form->dberror($query);
sql-ledger-3.2.6/SL/CT.pm-579-  
sql-ledger-3.2.6/SL/CT.pm:580:  $query = qq|DELETE FROM parts$form->{db} WHERE $form->{db}_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-581-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-583-  for (qw(shipto contact)) {
sql-ledger-3.2.6/SL/CT.pm:584:    $query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-585-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-589-    $query = qq|SELECT id FROM employee
sql-ledger-3.2.6/SL/CT.pm:590:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-591-    if ($dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/CT.pm-598-  $query = qq|SELECT address_id FROM bank
sql-ledger-3.2.6/SL/CT.pm:599:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-600-  my ($address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-602-  if ($address_id) {
sql-ledger-3.2.6/SL/CT.pm:603:    $query = qq|DELETE FROM address WHERE id = $address_id|;
sql-ledger-3.2.6/SL/CT.pm-604-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-606-  
sql-ledger-3.2.6/SL/CT.pm:607:  $query = qq|DELETE FROM address WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-608-  $dbh->do($query) || $form->dberror($query);
sql-ledger-3.2.6/SL/CT.pm-609-
sql-ledger-3.2.6/SL/CT.pm:610:  $query = qq|DELETE FROM bank WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-611-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-651-    (undef, $var) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/CT.pm:652:    $where .= " AND e.id = $var";
sql-ledger-3.2.6/SL/CT.pm-653-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-656-    (undef, $var) = split /--/, $form->{business};
sql-ledger-3.2.6/SL/CT.pm:657:    $where .= " AND b.id = $var";
sql-ledger-3.2.6/SL/CT.pm-658-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-662-      $var = $form->like(lc $form->{$item});
sql-ledger-3.2.6/SL/CT.pm:663:      $where .= " AND lower(c.$item) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-664-    }
##############################################
sql-ledger-3.2.6/SL/CT.pm-670-      $var = $form->like(lc $form->{$item});
sql-ledger-3.2.6/SL/CT.pm:671:      $where .= " AND lower(ad.$item) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-672-    }
##############################################
sql-ledger-3.2.6/SL/CT.pm-676-    $var = $form->like(lc $form->{address});
sql-ledger-3.2.6/SL/CT.pm:677:    $where .= " AND (lower(ad.address1) LIKE '$var' OR lower(ad.address2) LIKE '$var')";
sql-ledger-3.2.6/SL/CT.pm-678-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-680-  if ($form->{country} ne "") {
sql-ledger-3.2.6/SL/CT.pm:681:    $where .= " AND (ad.country) LIKE '$form->{country}'";
sql-ledger-3.2.6/SL/CT.pm-682-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-684-  if ($form->{startdatefrom}) {
sql-ledger-3.2.6/SL/CT.pm:685:    $where .= " AND c.startdate >= '$form->{startdatefrom}'";
sql-ledger-3.2.6/SL/CT.pm-686-  }
sql-ledger-3.2.6/SL/CT.pm-687-  if ($form->{startdateto}) {
sql-ledger-3.2.6/SL/CT.pm:688:    $where .= " AND c.startdate <= '$form->{startdateto}'";
sql-ledger-3.2.6/SL/CT.pm-689-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-698-  if ($form->{status} eq 'orphaned') {
sql-ledger-3.2.6/SL/CT.pm:699:    $where .= qq| AND c.id NOT IN (SELECT o.$form->{db}_id
sql-ledger-3.2.6/SL/CT.pm-700-                                    FROM oe o, $form->{db} vc
sql-ledger-3.2.6/SL/CT.pm:701:		 	            WHERE vc.id = o.$form->{db}_id)|;
sql-ledger-3.2.6/SL/CT.pm-702-    if ($form->{db} eq 'customer') {
##############################################
sql-ledger-3.2.6/SL/CT.pm-756-      $transwhere = "";
sql-ledger-3.2.6/SL/CT.pm:757:      $transwhere .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/CT.pm:758:      $transwhere .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/CT.pm-759-      
##############################################
sql-ledger-3.2.6/SL/CT.pm-796-      $transwhere = "";
sql-ledger-3.2.6/SL/CT.pm:797:      $transwhere .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/CT.pm:798:      $transwhere .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/CT.pm-799-    
##############################################
sql-ledger-3.2.6/SL/CT.pm-834-      $transwhere = "";
sql-ledger-3.2.6/SL/CT.pm:835:      $transwhere .= " AND o.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/CT.pm:836:      $transwhere .= " AND o.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/CT.pm-837-      $query .= qq|$union
##############################################
sql-ledger-3.2.6/SL/CT.pm-871-      $transwhere = "";
sql-ledger-3.2.6/SL/CT.pm:872:      $transwhere .= " AND o.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/CT.pm:873:      $transwhere .= " AND o.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/CT.pm-874-      $query .= qq|$union
##############################################
sql-ledger-3.2.6/SL/CT.pm-1007-    $var = $form->like(lc $form->{"$form->{db}number"});
sql-ledger-3.2.6/SL/CT.pm:1008:    $where .= " AND lower(ct.$form->{db}number) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1009-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1011-    $var = $form->like(lc $form->{address});
sql-ledger-3.2.6/SL/CT.pm:1012:    $where .= " AND lower(ad.address1) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1013-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1016-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/CT.pm:1017:      $where .= " AND lower(ct.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1018-    }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1022-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/CT.pm:1023:      $where .= " AND lower(ad.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1024-    }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1027-  if ($form->{country} ne "") {
sql-ledger-3.2.6/SL/CT.pm:1028:    $where .= " AND (ad.country) LIKE '$form->{country}'";
sql-ledger-3.2.6/SL/CT.pm-1029-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1032-    (undef, $var) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/CT.pm:1033:    $where .= " AND e.id = $var";
sql-ledger-3.2.6/SL/CT.pm-1034-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1037-    (undef, $var) = split /--/, $form->{business};
sql-ledger-3.2.6/SL/CT.pm:1038:    $where .= " AND b.id = $var";
sql-ledger-3.2.6/SL/CT.pm-1039-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1042-
sql-ledger-3.2.6/SL/CT.pm:1043:  $where .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/CT.pm:1044:  $where .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/CT.pm-1045-
##############################################
sql-ledger-3.2.6/SL/CT.pm-1048-      if ($form->{type} eq 'invoice') {
sql-ledger-3.2.6/SL/CT.pm:1049:	$where .= " AND a.amount != a.paid" if $form->{open};
sql-ledger-3.2.6/SL/CT.pm:1050:	$where .= " AND a.amount = a.paid" if $form->{closed};
sql-ledger-3.2.6/SL/CT.pm-1051-      } else {
sql-ledger-3.2.6/SL/CT.pm:1052:	$where .= " AND a.closed = '0'" if $form->{open};
sql-ledger-3.2.6/SL/CT.pm:1053:	$where .= " AND a.closed = '1'" if $form->{closed};
sql-ledger-3.2.6/SL/CT.pm-1054-      }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1189-		LEFT JOIN partsgroup pg ON (pg.id = p.partsgroup_id)
sql-ledger-3.2.6/SL/CT.pm:1190:		WHERE m.customer_id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-1191-		ORDER BY p.partnumber|;
##############################################
sql-ledger-3.2.6/SL/CT.pm-1215-		LEFT JOIN partsgroup pg ON (pg.id = p.partsgroup_id)
sql-ledger-3.2.6/SL/CT.pm:1216:		WHERE m.vendor_id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-1217-		ORDER BY p.partnumber|;
##############################################
sql-ledger-3.2.6/SL/CT.pm-1244-  my $query = qq|DELETE FROM parts$form->{db}
sql-ledger-3.2.6/SL/CT.pm:1245:                 WHERE $form->{db}_id = $form->{id}|;
sql-ledger-3.2.6/SL/CT.pm-1246-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CT.pm-1305-    $var = $form->like(lc $form->{"partnumber_$i"});
sql-ledger-3.2.6/SL/CT.pm:1306:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1307-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1309-    $var = $form->like(lc $form->{"description_$i"});
sql-ledger-3.2.6/SL/CT.pm:1310:    $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/CT.pm-1311-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1315-    $var *= 1;
sql-ledger-3.2.6/SL/CT.pm:1316:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/CT.pm-1317-  }
##############################################
sql-ledger-3.2.6/SL/CT.pm-1358-		JOIN oe o ON (o.id = s.trans_id)
sql-ledger-3.2.6/SL/CT.pm:1359:		WHERE o.$form->{db}_id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-1360-		UNION
##############################################
sql-ledger-3.2.6/SL/CT.pm-1367-		JOIN $table a ON (a.id = s.trans_id)
sql-ledger-3.2.6/SL/CT.pm:1368:	        WHERE a.$form->{db}_id = $form->{id}
sql-ledger-3.2.6/SL/CT.pm-1369-		EXCEPT
##############################################
sql-ledger-3.2.6/SL/CT.pm-1375-		FROM shipto s
sql-ledger-3.2.6/SL/CT.pm:1376:		WHERE s.trans_id = '$form->{id}'|;
sql-ledger-3.2.6/SL/CT.pm-1377-	 
##############################################
sql-ledger-3.2.6/SL/CP.pm-181-      $var = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/CP.pm:182:      $where .= qq| AND lower(vc.name) LIKE '$var'|;
sql-ledger-3.2.6/SL/CP.pm-183-    }
##############################################
sql-ledger-3.2.6/SL/CP.pm-185-      $var = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/CP.pm:186:      $where .= qq| AND lower(vc.$form->{vc}number) LIKE '$var'|;
sql-ledger-3.2.6/SL/CP.pm-187-    }
##############################################
sql-ledger-3.2.6/SL/CP.pm-301-		 JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/CP.pm:302:		 WHERE ac.vr_id = $form->{id}
sql-ledger-3.2.6/SL/CP.pm-303-		 AND ac.fx_transaction = '0'
##############################################
sql-ledger-3.2.6/SL/CP.pm-399-	      JOIN br ON (br.id = vr.br_id)
sql-ledger-3.2.6/SL/CP.pm:400:	      WHERE vr.id = $form->{id}|;
sql-ledger-3.2.6/SL/CP.pm-401-  ($form->{batchdescription}, $form->{vouchernumber}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-432-  
sql-ledger-3.2.6/SL/CP.pm:433:  my $where = qq|WHERE a.$form->{vc}_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/CP.pm-434-	         AND a.amount != a.paid
##############################################
sql-ledger-3.2.6/SL/CP.pm-665-		  FROM acc_trans
sql-ledger-3.2.6/SL/CP.pm:666:		  WHERE trans_id = $id
sql-ledger-3.2.6/SL/CP.pm-667-		  AND vr_id = $form->{voucherid}|;
##############################################
sql-ledger-3.2.6/SL/CP.pm-672-	$query = qq|DELETE FROM payment
sql-ledger-3.2.6/SL/CP.pm:673:		    WHERE id = $paymentid
sql-ledger-3.2.6/SL/CP.pm-674-		    AND trans_id = $id|;
##############################################
sql-ledger-3.2.6/SL/CP.pm-707-    $query = qq|DELETE FROM acc_trans
sql-ledger-3.2.6/SL/CP.pm:708:                WHERE vr_id = $form->{voucherid}|;
sql-ledger-3.2.6/SL/CP.pm-709-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-711-    $query = qq|DELETE FROM vr
sql-ledger-3.2.6/SL/CP.pm:712:                WHERE id = $form->{voucherid}|;
sql-ledger-3.2.6/SL/CP.pm-713-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-758-		  FROM payment
sql-ledger-3.2.6/SL/CP.pm:759:		  WHERE trans_id = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/CP.pm-760-      ($paymentid) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-789-		         (SELECT id FROM chart
sql-ledger-3.2.6/SL/CP.pm:790:		          WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/CP.pm-791-		  '$form->{datepaid}', $form->{"paid_$i"} * $ml * -1, |
##############################################
sql-ledger-3.2.6/SL/CP.pm-811-		           (SELECT id FROM chart
sql-ledger-3.2.6/SL/CP.pm:812:			    WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/CP.pm-813-		  '$form->{datepaid}', $amount, '1', |
##############################################
sql-ledger-3.2.6/SL/CP.pm-883-			     (SELECT id FROM chart
sql-ledger-3.2.6/SL/CP.pm:884:			      WHERE accno = '$_'),
sql-ledger-3.2.6/SL/CP.pm-885-		      '$form->{datepaid}', $cdt{$_} * $ml * -1, |
##############################################
sql-ledger-3.2.6/SL/CP.pm-899-			       (SELECT id FROM chart
sql-ledger-3.2.6/SL/CP.pm:900:				WHERE accno = '$_'),
sql-ledger-3.2.6/SL/CP.pm-901-		      '$form->{datepaid}', $amount, '1', |
##############################################
sql-ledger-3.2.6/SL/CP.pm-939-		  datepaid = '$form->{datepaid}',
sql-ledger-3.2.6/SL/CP.pm:940:		  bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/CP.pm-941-		  paymentmethod_id = $paymentmethod_id
sql-ledger-3.2.6/SL/CP.pm:942:		  WHERE id = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/CP.pm-943-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-1086-  if ($form->{datepaidfrom}) {
sql-ledger-3.2.6/SL/CP.pm:1087:    $where .= " AND acc.transdate >= '$form->{datepaidfrom}'";
sql-ledger-3.2.6/SL/CP.pm-1088-  }
sql-ledger-3.2.6/SL/CP.pm-1089-  if ($form->{datepaidto}) {
sql-ledger-3.2.6/SL/CP.pm:1090:    $where .= " AND acc.transdate <= '$form->{datepaidto}'";
sql-ledger-3.2.6/SL/CP.pm-1091-  }
sql-ledger-3.2.6/SL/CP.pm-1092-  if ($form->{"$form->{vc}_id"}) {
sql-ledger-3.2.6/SL/CP.pm:1093:    $where .= qq| AND vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/CP.pm-1094-  }
##############################################
sql-ledger-3.2.6/SL/CP.pm-1305-
sql-ledger-3.2.6/SL/CP.pm:1306:  $query = qq|SELECT id FROM chart WHERE accno = '$form->{"accno_1"}'|;
sql-ledger-3.2.6/SL/CP.pm-1307-  ($chart_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-1339-              JOIN address ad ON (ad.trans_id = vc.id)
sql-ledger-3.2.6/SL/CP.pm:1340:              WHERE vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/CP.pm-1341-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-1354-              FROM chart
sql-ledger-3.2.6/SL/CP.pm:1355:              WHERE accno = '$form->{"accno_$i"}'|;
sql-ledger-3.2.6/SL/CP.pm-1356-  my ($chart_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/CP.pm-1361-              transdate = '$form->{datepaid}'
sql-ledger-3.2.6/SL/CP.pm:1362:              WHERE source = '$form->{"source_$i"}'
sql-ledger-3.2.6/SL/CP.pm-1363-              AND fx_transaction = '0'
##############################################
sql-ledger-3.2.6/SL/IR.pm-630-  my $query = qq|DELETE FROM ap
sql-ledger-3.2.6/SL/IR.pm:631:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-632-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-635-  $query = qq|SELECT spoolfile FROM status
sql-ledger-3.2.6/SL/IR.pm:636:              WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm-637-	      AND spoolfile IS NOT NULL|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-650-  $query = qq|DELETE FROM status
sql-ledger-3.2.6/SL/IR.pm:651:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-652-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-655-  $query = qq|SELECT id FROM oe
sql-ledger-3.2.6/SL/IR.pm:656:              WHERE aa_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-657-  
##############################################
sql-ledger-3.2.6/SL/IR.pm-662-                closed = '0'
sql-ledger-3.2.6/SL/IR.pm:663:                WHERE aa_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-664-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-737-    $query = qq|SELECT id FROM ap
sql-ledger-3.2.6/SL/IR.pm:738:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-739-    
##############################################
sql-ledger-3.2.6/SL/IR.pm-743-		  JOIN parts p ON (p.id = i.parts_id)
sql-ledger-3.2.6/SL/IR.pm:744:                  WHERE i.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm-745-                  AND i.assemblyitem = '0'|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-770-                VALUES ('$uid', (SELECT id FROM employee
sql-ledger-3.2.6/SL/IR.pm:771:		                 WHERE login = '$form->{login}'))|;
sql-ledger-3.2.6/SL/IR.pm-772-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-774-    $query = qq|SELECT id FROM ap
sql-ledger-3.2.6/SL/IR.pm:775:                WHERE invnumber = '$uid'|;
sql-ledger-3.2.6/SL/IR.pm-776-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-941-      $query = qq|SELECT id FROM invoice
sql-ledger-3.2.6/SL/IR.pm:942:                  WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/IR.pm-943-      ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-961-		  lineitemdetail = '$lineitemdetail'
sql-ledger-3.2.6/SL/IR.pm:962:		  WHERE id = $id|;
sql-ledger-3.2.6/SL/IR.pm-963-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-999-                    allocated = $allocated
sql-ledger-3.2.6/SL/IR.pm:1000:                    WHERE id = $id|;
sql-ledger-3.2.6/SL/IR.pm-1001-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1041-      $query .= qq|
sql-ledger-3.2.6/SL/IR.pm:1042:		  WHERE id = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/IR.pm-1043-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1122-		       (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1123:		       WHERE accno = '$apaccno'),
sql-ledger-3.2.6/SL/IR.pm-1124-                $form->{payables}, '$form->{transdate}')|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-1186-		           (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1187:			    WHERE accno = '$ref->{accno}'),
sql-ledger-3.2.6/SL/IR.pm-1188-                    $ref->{amount} * -1, '$ref->{transdate}',
##############################################
sql-ledger-3.2.6/SL/IR.pm-1205-	            VALUES ($trans_id, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1206:		                        WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/IR.pm-1207-                    $amount, '$form->{transdate}')|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-1276-		    VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1277:					WHERE accno = '$apaccno'),
sql-ledger-3.2.6/SL/IR.pm-1278-		    $amount, '$form->{"datepaid_$i"}',
##############################################
sql-ledger-3.2.6/SL/IR.pm-1290-                  VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1291:		                      WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/IR.pm-1292-                  $form->{"paid_$i"}, '$form->{"datepaid_$i"}', |
##############################################
sql-ledger-3.2.6/SL/IR.pm-1312-	            VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IR.pm:1313:		                        WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/IR.pm-1314-		    $amount, '$form->{"datepaid_$i"}', |
##############################################
sql-ledger-3.2.6/SL/IR.pm-1380-	      dcn = |.$dbh->quote($form->{dcn}).qq|,
sql-ledger-3.2.6/SL/IR.pm:1381:	      bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/IR.pm-1382-	      paymentmethod_id = $paymentmethod_id
sql-ledger-3.2.6/SL/IR.pm:1383:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-1384-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1399-    $query = qq|UPDATE oe SET aa_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm:1400:		WHERE id = $form->{order_id}|;
sql-ledger-3.2.6/SL/IR.pm-1401-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1491-		 JOIN parts p ON (a.parts_id = p.id)
sql-ledger-3.2.6/SL/IR.pm:1492:		 WHERE a.aid = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/IR.pm-1493-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1614-                FROM invoice
sql-ledger-3.2.6/SL/IR.pm:1615:                WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/IR.pm-1616-    ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1628-                unit = |.$dbh->quote($kit{$_}{unit}).qq|
sql-ledger-3.2.6/SL/IR.pm:1629:                WHERE id = $id|;
sql-ledger-3.2.6/SL/IR.pm-1630-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1680-              JOIN parts p ON (p.id = i.parts_id)
sql-ledger-3.2.6/SL/IR.pm:1681:              WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IR.pm-1682-              AND (i.qty + i.allocated) > 0
##############################################
sql-ledger-3.2.6/SL/IR.pm-1755-              FROM invoice i
sql-ledger-3.2.6/SL/IR.pm:1756:              WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IR.pm-1757-              AND (i.qty + i.allocated) < 0
##############################################
sql-ledger-3.2.6/SL/IR.pm-1792-  my $query = qq|SELECT id FROM ap
sql-ledger-3.2.6/SL/IR.pm:1793:		 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-1794-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1844-                  FROM invoice i
sql-ledger-3.2.6/SL/IR.pm:1845:                  WHERE i.parts_id = $ref->{parts_id}
sql-ledger-3.2.6/SL/IR.pm-1846-                  AND i.allocated < 0
##############################################
sql-ledger-3.2.6/SL/IR.pm-1893-                  FROM invoice i
sql-ledger-3.2.6/SL/IR.pm:1894:                  WHERE i.parts_id = $ref->{parts_id}
sql-ledger-3.2.6/SL/IR.pm-1895-                  AND i.allocated > 0
##############################################
sql-ledger-3.2.6/SL/IR.pm-1928-  $query = qq|SELECT DISTINCT * FROM vr
sql-ledger-3.2.6/SL/IR.pm:1929:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-1930-  $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1936-	      JOIN chart c ON (c.id = ac.chart_id)
sql-ledger-3.2.6/SL/IR.pm:1937:	      WHERE ac.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm-1938-	      AND ac.vr_id = ?
##############################################
sql-ledger-3.2.6/SL/IR.pm-1969-  for (qw(acc_trans dpt_trans invoice inventory shipto cargo vr payment)) {
sql-ledger-3.2.6/SL/IR.pm:1970:    $query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-1971-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1974-  for (qw(recurring recurringemail recurringprint)) {
sql-ledger-3.2.6/SL/IR.pm:1975:    $query = qq|DELETE FROM $_ WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-1976-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-1996-    $query = qq|SELECT accno FROM chart
sql-ledger-3.2.6/SL/IR.pm:1997:		WHERE id = $defaults{"${_}_id"}|;
sql-ledger-3.2.6/SL/IR.pm-1998-    ($form->{$_}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-2023-		LEFT JOIN paymentmethod pm ON (pm.id = a.paymentmethod_id)
sql-ledger-3.2.6/SL/IR.pm:2024:		WHERE a.id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-2025-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-2053-    $query = qq|SELECT * FROM shipto
sql-ledger-3.2.6/SL/IR.pm:2054:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IR.pm-2055-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IR.pm-2080-		LEFT JOIN cargo c ON (c.id = i.id AND c.trans_id = i.trans_id)
sql-ledger-3.2.6/SL/IR.pm:2081:		WHERE i.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm-2082-                AND NOT i.assemblyitem = '1'
##############################################
sql-ledger-3.2.6/SL/IR.pm-2107-                JOIN invoice i ON (i.parts_id = p.id)
sql-ledger-3.2.6/SL/IR.pm:2108:                WHERE i.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IR.pm-2109-                AND a.aid = ?|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-2213-  my $where = qq|WHERE p.assembly = '0' AND p.obsolete = '0'|;
sql-ledger-3.2.6/SL/IR.pm:2214:  my $vwhere = qq|$where
sql-ledger-3.2.6/SL/IR.pm-2215-                  AND pv.vendor_id = $form->{vendor_id}|;
##############################################
sql-ledger-3.2.6/SL/IR.pm-2218-    $var = $form->like(lc $form->{"partnumber_$i"});
sql-ledger-3.2.6/SL/IR.pm:2219:    $where .= " AND (lower(p.partnumber) LIKE '$var'
sql-ledger-3.2.6/SL/IR.pm-2220-                OR p.barcode LIKE '$var')";
sql-ledger-3.2.6/SL/IR.pm:2221:    $vwhere .= " AND (lower(pv.partnumber) LIKE '$var'
sql-ledger-3.2.6/SL/IR.pm-2222-                 OR p.barcode LIKE '$var')";
##############################################
sql-ledger-3.2.6/SL/IR.pm-2227-    if ($form->{language_code} ne "") {
sql-ledger-3.2.6/SL/IR.pm:2228:      $where .= " AND lower(t1.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IR.pm:2229:      $vwhere .= " AND lower(t1.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IR.pm-2230-    } else {
sql-ledger-3.2.6/SL/IR.pm:2231:      $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IR.pm:2232:      $vwhere .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IR.pm-2233-    }
##############################################
sql-ledger-3.2.6/SL/IR.pm-2238-    $id *= 1;
sql-ledger-3.2.6/SL/IR.pm:2239:    $where .= qq| AND (lower(pg.partsgroup) LIKE '${var}:%' OR p.partsgroup_id = $id)|;
sql-ledger-3.2.6/SL/IR.pm:2240:    $vwhere .= qq| AND (lower(pg.partsgroup) LIKE '${var}:%' OR p.partsgroup_id = $id)|;
sql-ledger-3.2.6/SL/IR.pm-2241-  }
##############################################
sql-ledger-3.2.6/SL/IR.pm-2244-    $var = $form->like(lc $form->{"partsgroupcode_$i"});
sql-ledger-3.2.6/SL/IR.pm:2245:    $where .= qq| AND lower(pg.code) LIKE '$var'|;
sql-ledger-3.2.6/SL/IR.pm:2246:    $vwhere .= qq| AND lower(pg.code) LIKE '$var'|;
sql-ledger-3.2.6/SL/IR.pm-2247-  }
##############################################
sql-ledger-3.2.6/SL/RD.pm-88-                FROM reference
sql-ledger-3.2.6/SL/RD.pm:89:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-90-    $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-103-		  FROM archive
sql-ledger-3.2.6/SL/RD.pm:104:		  WHERE id = $form->{archive_id}|;
sql-ledger-3.2.6/SL/RD.pm-105-      ($form->{filename}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-131-		login = '$login'
sql-ledger-3.2.6/SL/RD.pm:132:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-133-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-136-		FROM reference
sql-ledger-3.2.6/SL/RD.pm:137:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-138-    ($archive_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-142-		  filename = |.$dbh->quote($form->{file}).qq|
sql-ledger-3.2.6/SL/RD.pm:143:		  WHERE id = $archive_id|;
sql-ledger-3.2.6/SL/RD.pm-144-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-177-	      FROM reference
sql-ledger-3.2.6/SL/RD.pm:178:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-179-  ($form->{archive_id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-183-		FROM reference
sql-ledger-3.2.6/SL/RD.pm:184:		WHERE archive_id = $form->{archive_id}|;
sql-ledger-3.2.6/SL/RD.pm-185-    ($count) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-188-      $query = qq|DELETE FROM archive
sql-ledger-3.2.6/SL/RD.pm:189:		  WHERE id = $form->{archive_id}|;
sql-ledger-3.2.6/SL/RD.pm-190-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-195-  $query = qq|DELETE FROM reference
sql-ledger-3.2.6/SL/RD.pm:196:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-197-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-236-	      formname = NULL
sql-ledger-3.2.6/SL/RD.pm:237:	      WHERE id = $form->{id} * 1|;
sql-ledger-3.2.6/SL/RD.pm-238-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-261-              FROM $form->{db}
sql-ledger-3.2.6/SL/RD.pm:262:	      WHERE id = $form->{trans_id}|;
sql-ledger-3.2.6/SL/RD.pm-263-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-267-                FROM reference
sql-ledger-3.2.6/SL/RD.pm:268:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-269-    $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/RD.pm-282-		  formname = '$form->{formname}'
sql-ledger-3.2.6/SL/RD.pm:283:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/RD.pm-284-    }
##############################################
sql-ledger-3.2.6/SL/SM.pm-171-		  SELECT * FROM acc_trans
sql-ledger-3.2.6/SL/SM.pm:172:		  WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/SM.pm-173-      $dbh->do($query) || &dberror($form, $query, $userspath);
##############################################
sql-ledger-3.2.6/SL/SM.pm-185-      $query = qq|DELETE FROM $item
sql-ledger-3.2.6/SL/SM.pm:186:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/SM.pm-187-      $dbh->do($query) || &dberror($form, $query, $userspath);
##############################################
sql-ledger-3.2.6/SL/SM.pm-209-		  JOIN acc_trans$tid a ON (a.chart_id = c.id)
sql-ledger-3.2.6/SL/SM.pm:210:		  WHERE c.link = '$arap{$item}{link}'
sql-ledger-3.2.6/SL/SM.pm-211-		  AND a.trans_id = $id|;
##############################################
sql-ledger-3.2.6/SL/SM.pm-262-		  LEFT JOIN employee e ON (a.employee_id = e.id)
sql-ledger-3.2.6/SL/SM.pm:263:		  WHERE a.id = $id|;
sql-ledger-3.2.6/SL/SM.pm-264-      $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/SM.pm-275-		  JOIN tax t ON (t.chart_id = c.id)
sql-ledger-3.2.6/SL/SM.pm:276:		  WHERE ct.$arap{$item}{vc}_id = $newform->{"$arap{$item}{vc}_id"}|;
sql-ledger-3.2.6/SL/SM.pm-277-      $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/SM.pm-291-		  FROM shipto$tid
sql-ledger-3.2.6/SL/SM.pm:292:		  WHERE trans_id = $id|;
sql-ledger-3.2.6/SL/SM.pm-293-      $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/SM.pm-318-		    JOIN partstax pt ON (c.id = pt.chart_id)
sql-ledger-3.2.6/SL/SM.pm:319:		    WHERE pt.parts_id = $ref->{id}|;
sql-ledger-3.2.6/SL/SM.pm-320-	$pth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/SM.pm-336-	$query = qq|SELECT * FROM cargo$tid
sql-ledger-3.2.6/SL/SM.pm:337:		    WHERE trans_id = $id
sql-ledger-3.2.6/SL/SM.pm-338-		    AND id = $ref->{id}|;
##############################################
sql-ledger-3.2.6/SL/SM.pm-358-		    FROM $_$tid
sql-ledger-3.2.6/SL/SM.pm:359:		    WHERE id = $id|;
sql-ledger-3.2.6/SL/SM.pm-360-	$dbh->do($query) || &dberror($form, $query, $userspath);
##############################################
sql-ledger-3.2.6/SL/SM.pm-363-		    SET id = $newform->{id}
sql-ledger-3.2.6/SL/SM.pm:364:		    WHERE id = $id|;
sql-ledger-3.2.6/SL/SM.pm-365-	$dbh->do($query) || &dberror($form, $query, $userspath);
##############################################
sql-ledger-3.2.6/SL/RC.pm-52-  my $query = qq|SELECT category FROM chart
sql-ledger-3.2.6/SL/RC.pm:53:                 WHERE accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/RC.pm-54-  ($form->{category}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RC.pm-79-	      JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/RC.pm:80:	      WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-81-	      AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-90-	      JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/RC.pm:91:	      WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-92-	      AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-110-	      JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/RC.pm:111:	      WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-112-	      AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-122-	      JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/RC.pm:123:	      WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-124-	      AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-186-		JOIN gl g ON (g.id = ac.trans_id)
sql-ledger-3.2.6/SL/RC.pm:187:		WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-188-		AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-198-		JOIN customer n ON (n.id = a.customer_id)
sql-ledger-3.2.6/SL/RC.pm:199:		WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-200-		AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-210-		JOIN vendor n ON (n.id = a.vendor_id)
sql-ledger-3.2.6/SL/RC.pm:211:		WHERE ch.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/RC.pm-212-		AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/RC.pm-297-  my $query = qq|SELECT id FROM chart
sql-ledger-3.2.6/SL/RC.pm:298:                 WHERE accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/RC.pm-299-  my ($chart_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RC.pm-317-	            cleared = $cleared
sql-ledger-3.2.6/SL/RC.pm:318:                    WHERE trans_id = $trans_id 
sql-ledger-3.2.6/SL/RC.pm-319-	            AND transdate = |.$form->dbquote($form->{"transdate_$i"}, SQL_DATE).qq|
##############################################
sql-ledger-3.2.6/SL/IS.pm-600-              JOIN chart c ON (c.id = bk.id)
sql-ledger-3.2.6/SL/IS.pm:601:              WHERE c.accno = '$paymentaccno'|;
sql-ledger-3.2.6/SL/IS.pm-602-  ($form->{iban}, $form->{bic}, $form->{membernumber}, $form->{dcn}, $form->{rvc}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-609-		dcn = '$form->{dcn}',
sql-ledger-3.2.6/SL/IS.pm:610:		bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno')
sql-ledger-3.2.6/SL/IS.pm:611:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-612-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-641-  my $query = qq|DELETE FROM ar
sql-ledger-3.2.6/SL/IS.pm:642:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-643-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-646-  $query = qq|SELECT spoolfile FROM status
sql-ledger-3.2.6/SL/IS.pm:647:              WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm-648-	      AND spoolfile IS NOT NULL|;
##############################################
sql-ledger-3.2.6/SL/IS.pm-661-  $query = qq|DELETE FROM status
sql-ledger-3.2.6/SL/IS.pm:662:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-663-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-666-  $query = qq|SELECT id FROM oe
sql-ledger-3.2.6/SL/IS.pm:667:              WHERE aa_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-668-
##############################################
sql-ledger-3.2.6/SL/IS.pm-673-                closed = '0'
sql-ledger-3.2.6/SL/IS.pm:674:                WHERE aa_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-675-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-792-                 FROM project
sql-ledger-3.2.6/SL/IS.pm:793:		 WHERE id = $id|;
sql-ledger-3.2.6/SL/IS.pm-794-  ($_) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-859-    $query = qq|SELECT id FROM ar
sql-ledger-3.2.6/SL/IS.pm:860:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-861-
##############################################
sql-ledger-3.2.6/SL/IS.pm-881-    $query = qq|SELECT id FROM ar
sql-ledger-3.2.6/SL/IS.pm:882:                WHERE invnumber = '$uid'|;
sql-ledger-3.2.6/SL/IS.pm-883-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1136-                  FROM invoice
sql-ledger-3.2.6/SL/IS.pm:1137:                  WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/IS.pm-1138-      ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1159-                  vendor_id = $form->{"costvendorid_$i"}
sql-ledger-3.2.6/SL/IS.pm:1160:		  WHERE id = $id|;
sql-ledger-3.2.6/SL/IS.pm-1161-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1187-      $query .= qq|
sql-ledger-3.2.6/SL/IS.pm:1188:		  WHERE id = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/IS.pm-1189-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1283-		       (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1284:		        WHERE accno = '$araccno'),
sql-ledger-3.2.6/SL/IS.pm-1285-                $form->{receivables}, '$form->{transdate}')|;
##############################################
sql-ledger-3.2.6/SL/IS.pm-1348-		           (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1349:			    WHERE accno = '$ref->{accno}'),
sql-ledger-3.2.6/SL/IS.pm-1350-		    $ref->{amount} * -1, '$ref->{transdate}',
##############################################
sql-ledger-3.2.6/SL/IS.pm-1367-		    VALUES ($trans_id, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1368:					WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/IS.pm-1369-		    $amount, '$form->{transdate}')|;
##############################################
sql-ledger-3.2.6/SL/IS.pm-1439-		    VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1440:					WHERE accno = '$araccno'),
sql-ledger-3.2.6/SL/IS.pm-1441-		    $amount, '$form->{"datepaid_$i"}',
##############################################
sql-ledger-3.2.6/SL/IS.pm-1455-                  VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1456:		                      WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/IS.pm-1457-		  $amount, '$form->{"datepaid_$i"}', |
##############################################
sql-ledger-3.2.6/SL/IS.pm-1477-		    VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/IS.pm:1478:					WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/IS.pm-1479-		    $amount, '$form->{"datepaid_$i"}', |
##############################################
sql-ledger-3.2.6/SL/IS.pm-1525-	      JOIN chart c ON (c.id = bk.id)
sql-ledger-3.2.6/SL/IS.pm:1526:	      WHERE c.accno = '$paymentaccno'|;
sql-ledger-3.2.6/SL/IS.pm-1527-  ($form->{membernumber}, $form->{dcn}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1563-	      dcn = '$form->{dcn}',
sql-ledger-3.2.6/SL/IS.pm:1564:	      bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/IS.pm-1565-	      paymentmethod_id = $paymentmethod_id
sql-ledger-3.2.6/SL/IS.pm:1566:              WHERE id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm-1567-             |;
##############################################
sql-ledger-3.2.6/SL/IS.pm-1585-    $query = qq|UPDATE oe SET aa_id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm:1586:                WHERE id = $form->{order_id}|;
sql-ledger-3.2.6/SL/IS.pm-1587-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1619-		 JOIN parts p ON (a.parts_id = p.id)
sql-ledger-3.2.6/SL/IS.pm:1620:		 WHERE a.aid = $id|;
sql-ledger-3.2.6/SL/IS.pm-1621-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1684-		 JOIN parts p ON (a.parts_id = p.id)
sql-ledger-3.2.6/SL/IS.pm:1685:		 WHERE a.aid = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/IS.pm-1686-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1807-                FROM invoice
sql-ledger-3.2.6/SL/IS.pm:1808:                WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/IS.pm-1809-    ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1821-                unit = |.$dbh->quote($kit{$_}{unit}).qq|
sql-ledger-3.2.6/SL/IS.pm:1822:                WHERE id = $id|;
sql-ledger-3.2.6/SL/IS.pm-1823-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-1861-	      JOIN parts p ON (p.id = i.parts_id)
sql-ledger-3.2.6/SL/IS.pm:1862:	      WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IS.pm-1863-	      AND (i.qty + i.allocated) < 0
##############################################
sql-ledger-3.2.6/SL/IS.pm-1930-	      JOIN parts p ON (p.id = i.parts_id)
sql-ledger-3.2.6/SL/IS.pm:1931:	      WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IS.pm-1932-	      AND (i.qty + i.allocated) > 0
##############################################
sql-ledger-3.2.6/SL/IS.pm-1995-	      FROM invoice
sql-ledger-3.2.6/SL/IS.pm:1996:	      WHERE parts_id = $form->{"id_$i"}
sql-ledger-3.2.6/SL/IS.pm-1997-              AND allocated > 0
##############################################
sql-ledger-3.2.6/SL/IS.pm-2030-  my $query = qq|SELECT id FROM ar
sql-ledger-3.2.6/SL/IS.pm:2031:		 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2032-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2044-	      JOIN parts p ON (i.parts_id = p.id)
sql-ledger-3.2.6/SL/IS.pm:2045:	      WHERE i.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2046-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2092-		    FROM invoice i
sql-ledger-3.2.6/SL/IS.pm:2093:		    WHERE i.parts_id = $ref->{parts_id}
sql-ledger-3.2.6/SL/IS.pm-2094-		    AND i.allocated > 0
##############################################
sql-ledger-3.2.6/SL/IS.pm-2125-		    FROM invoice i
sql-ledger-3.2.6/SL/IS.pm:2126:		    WHERE i.parts_id = $ref->{parts_id}
sql-ledger-3.2.6/SL/IS.pm-2127-		    AND i.allocated < 0
##############################################
sql-ledger-3.2.6/SL/IS.pm-2177-  $query = qq|SELECT DISTINCT * FROM vr
sql-ledger-3.2.6/SL/IS.pm:2178:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2179-  $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2185-	      JOIN chart c ON (c.id = ac.chart_id)
sql-ledger-3.2.6/SL/IS.pm:2186:	      WHERE ac.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm-2187-	      AND ac.vr_id = ?
##############################################
sql-ledger-3.2.6/SL/IS.pm-2218-  for (qw(acc_trans dpt_trans invoice inventory cargo shipto vr payment)) {
sql-ledger-3.2.6/SL/IS.pm:2219:    $query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2220-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2223-  for (qw(recurring recurringemail recurringprint)) {
sql-ledger-3.2.6/SL/IS.pm:2224:    $query = qq|DELETE FROM $_ WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2225-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2264-		LEFT JOIN paymentmethod pm ON (pm.id = a.paymentmethod_id)
sql-ledger-3.2.6/SL/IS.pm:2265:		WHERE a.id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2266-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2295-    $query = qq|SELECT * FROM shipto
sql-ledger-3.2.6/SL/IS.pm:2296:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IS.pm-2297-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2324-                LEFT JOIN vendor v ON (v.id = i.vendor_id)
sql-ledger-3.2.6/SL/IS.pm:2325:		WHERE i.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm-2326-		AND NOT i.assemblyitem = '1'
##############################################
sql-ledger-3.2.6/SL/IS.pm-2350-                JOIN invoice i ON (i.parts_id = p.id)
sql-ledger-3.2.6/SL/IS.pm:2351:                WHERE i.trans_id = $form->{id}
sql-ledger-3.2.6/SL/IS.pm-2352-                AND a.aid = ?|;
##############################################
sql-ledger-3.2.6/SL/IS.pm-2461-    $var = $form->like(lc $form->{"partnumber_$i"});
sql-ledger-3.2.6/SL/IS.pm:2462:    $where .= " AND (lower(p.partnumber) LIKE '$var'
sql-ledger-3.2.6/SL/IS.pm-2463-                OR p.barcode LIKE '$var')";
##############################################
sql-ledger-3.2.6/SL/IS.pm-2467-    if ($form->{language_code} ne "") {
sql-ledger-3.2.6/SL/IS.pm:2468:      $where .= " AND lower(t1.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IS.pm-2469-    } else {
sql-ledger-3.2.6/SL/IS.pm:2470:      $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IS.pm-2471-    }
##############################################
sql-ledger-3.2.6/SL/IS.pm-2499-	$var = $form->like(lc $form->{"partsgroupcode_$i"});
sql-ledger-3.2.6/SL/IS.pm:2500:	$where .= qq| AND lower(pg.code) LIKE '$var'|;
sql-ledger-3.2.6/SL/IS.pm-2501-      }
##############################################
sql-ledger-3.2.6/SL/IS.pm-2512-    if ($id) {
sql-ledger-3.2.6/SL/IS.pm:2513:      $where .= qq| AND (pg.partsgroup LIKE '${var}:%' OR p.partsgroup_id = $id)|;
sql-ledger-3.2.6/SL/IS.pm-2514-    } else {
sql-ledger-3.2.6/SL/IS.pm:2515:      $where .= qq| AND pg.partsgroup = '$var'|;
sql-ledger-3.2.6/SL/IS.pm-2516-
##############################################
sql-ledger-3.2.6/SL/IS.pm-2666-                JOIN address ad ON (ad.trans_id = vc.id)
sql-ledger-3.2.6/SL/IS.pm:2667:                WHERE vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/IS.pm-2668-  } else {
##############################################
sql-ledger-3.2.6/SL/IS.pm-2674-                JOIN address ad ON (ad.trans_id = vc.id)
sql-ledger-3.2.6/SL/IS.pm:2675:                WHERE vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/IS.pm-2676-  }
##############################################
sql-ledger-3.2.6/SL/IS.pm-2695-              JOIN $form->{vc}tax ct ON (ct.chart_id = c.id)
sql-ledger-3.2.6/SL/IS.pm:2696:              WHERE ct.$form->{vc}_id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/IS.pm-2697-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2952-	  $query = qq|DELETE FROM $db
sql-ledger-3.2.6/SL/IS.pm:2953:	              WHERE trans_id = $_|;
sql-ledger-3.2.6/SL/IS.pm-2954-	  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2958-	  $query = qq|DELETE FROM $db
sql-ledger-3.2.6/SL/IS.pm:2959:		      WHERE id = $_|;
sql-ledger-3.2.6/SL/IS.pm-2960-	  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-2995-                FROM bank
sql-ledger-3.2.6/SL/IS.pm:2996:		WHERE id = $ar->{bank_id}|;
sql-ledger-3.2.6/SL/IS.pm-2997-    my ($dcn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IS.pm-3003-                dcn = $dcn
sql-ledger-3.2.6/SL/IS.pm:3004:		WHERE id = $id|;
sql-ledger-3.2.6/SL/IS.pm-3005-    $dbh->do($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-72-		LEFT JOIN paymentmethod pm ON (pm.id = e.paymentmethod_id)
sql-ledger-3.2.6/SL/HR.pm:73:                WHERE e.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-74-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-87-    $query = qq|SELECT count(*) FROM ap
sql-ledger-3.2.6/SL/HR.pm:88:		WHERE vendor_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-89-    if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/HR.pm-94-      $query = qq|SELECT count(*) FROM jcitems
sql-ledger-3.2.6/SL/HR.pm:95:		  WHERE employee_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-96-      if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/HR.pm-102-		FROM payrate
sql-ledger-3.2.6/SL/HR.pm:103:		WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/HR.pm-104-		ORDER BY id|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-116-		JOIN wage w ON (ew.wage_id = w.id)
sql-ledger-3.2.6/SL/HR.pm:117:		WHERE ew.employee_id = $form->{id}
sql-ledger-3.2.6/SL/HR.pm-118-		ORDER BY ew.id|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-131-		JOIN deduction d ON (ed.deduction_id = d.id)
sql-ledger-3.2.6/SL/HR.pm:132:		WHERE ed.employee_id = $form->{id}
sql-ledger-3.2.6/SL/HR.pm-133-		ORDER BY ed.id|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-182-                  FROM pay_trans
sql-ledger-3.2.6/SL/HR.pm:183:                  WHERE trans_id = $form->{trans_id}|;
sql-ledger-3.2.6/SL/HR.pm-184-      my $tth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-194-		JOIN ap a ON (a.id = pt.trans_id)
sql-ledger-3.2.6/SL/HR.pm:195:		WHERE a.vendor_id = $form->{id}
sql-ledger-3.2.6/SL/HR.pm-196-		AND a.transdate >= '${cd}0101'
##############################################
sql-ledger-3.2.6/SL/HR.pm-313-		 JOIN employee e ON (e.acsrole_id = a.id)
sql-ledger-3.2.6/SL/HR.pm:314:		 WHERE e.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-315-  ($rne) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-321-	      JOIN employee e ON (e.acsrole_id = a.id)
sql-ledger-3.2.6/SL/HR.pm:322:	      WHERE e.login = '$login'|;
sql-ledger-3.2.6/SL/HR.pm-323-  my ($rnl) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-359-	         FROM acsrole
sql-ledger-3.2.6/SL/HR.pm:360:	         WHERE id = $id|;
sql-ledger-3.2.6/SL/HR.pm-361-  ($_) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-391-                LEFT JOIN acsrole a ON (e.acsrole_id = a.id)
sql-ledger-3.2.6/SL/HR.pm:392:                WHERE e.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-393-
##############################################
sql-ledger-3.2.6/SL/HR.pm-401-                JOIN employee e ON (e.acsrole_id = a.id)
sql-ledger-3.2.6/SL/HR.pm:402:                WHERE e.login = '$login'|;
sql-ledger-3.2.6/SL/HR.pm-403-    my ($loginrn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-416-                  login = '$form->{employeelogin}'
sql-ledger-3.2.6/SL/HR.pm:417:		  WHERE login = '$employeelogin'|;
sql-ledger-3.2.6/SL/HR.pm-418-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-422-                FROM bank
sql-ledger-3.2.6/SL/HR.pm:423:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-424-    ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-426-    $query = qq|DELETE FROM bank
sql-ledger-3.2.6/SL/HR.pm:427:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-428-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-431-    $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/HR.pm:432:                WHERE trans_id = $bank_address_id|;
sql-ledger-3.2.6/SL/HR.pm-433-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-436-    $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/HR.pm:437:	        WHERE id = $form->{addressid}|;
sql-ledger-3.2.6/SL/HR.pm-438-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-440-    $query = qq|DELETE FROM payrate
sql-ledger-3.2.6/SL/HR.pm:441:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-442-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-452-    $query = qq|SELECT id FROM employee
sql-ledger-3.2.6/SL/HR.pm:453:                WHERE name = '$uid'|;
sql-ledger-3.2.6/SL/HR.pm-454-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-485-	      payperiod = |.$form->dbquote($form->{payperiod}, SQL_INT).qq|,
sql-ledger-3.2.6/SL/HR.pm:486:	      apid = (SELECT id FROM chart WHERE accno = '$form->{ap}'),
sql-ledger-3.2.6/SL/HR.pm:487:	      paymentid = (SELECT id FROM chart WHERE accno = '$form->{payment}'),
sql-ledger-3.2.6/SL/HR.pm-488-	      paymentmethod_id = |.$dbh->quote($form->{paymentmethod_id}).qq|,
##############################################
sql-ledger-3.2.6/SL/HR.pm-490-	      acs = '$form->{acs}'
sql-ledger-3.2.6/SL/HR.pm:491:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-492-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-558-                FROM bank
sql-ledger-3.2.6/SL/HR.pm:559:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-560-    ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-592-                  FROM bank
sql-ledger-3.2.6/SL/HR.pm:593:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-594-      ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-611-  $query = qq|DELETE FROM employeewage
sql-ledger-3.2.6/SL/HR.pm:612:              WHERE employee_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-613-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-627-  $query = qq|DELETE FROM employeededuction
sql-ledger-3.2.6/SL/HR.pm:628:              WHERE employee_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-629-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-687-              FROM bank
sql-ledger-3.2.6/SL/HR.pm:688:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-689-  my ($bank_address_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-692-  $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/HR.pm:693:              WHERE trans_id = $bank_address_id|;
sql-ledger-3.2.6/SL/HR.pm-694-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-697-              FROM employee
sql-ledger-3.2.6/SL/HR.pm:698:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-699-  my ($login) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-703-                SET login = ''
sql-ledger-3.2.6/SL/HR.pm:704:		WHERE login = '$login'|;
sql-ledger-3.2.6/SL/HR.pm-705-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-709-  $query = qq|DELETE FROM $form->{db}
sql-ledger-3.2.6/SL/HR.pm:710:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-711-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-713-  $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/HR.pm:714:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-715-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-755-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/HR.pm:756:      $where .= " AND lower(e.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/HR.pm-757-    }
##############################################
sql-ledger-3.2.6/SL/HR.pm-760-    $var = $form->like(lc $form->{employeelogin});
sql-ledger-3.2.6/SL/HR.pm:761:    $where .= " AND lower(e.login) LIKE '$var'";
sql-ledger-3.2.6/SL/HR.pm-762-  }
sql-ledger-3.2.6/SL/HR.pm-763-  if ($form->{startdatefrom}) {
sql-ledger-3.2.6/SL/HR.pm:764:    $where .= " AND e.startdate >= '$form->{startdatefrom}'";
sql-ledger-3.2.6/SL/HR.pm-765-  }
sql-ledger-3.2.6/SL/HR.pm-766-  if ($form->{startdateto}) {
sql-ledger-3.2.6/SL/HR.pm:767:    $where .= " AND e.startdate <= '$form->{startdateto}'";
sql-ledger-3.2.6/SL/HR.pm-768-  }
##############################################
sql-ledger-3.2.6/SL/HR.pm-785-    (undef, $var) = split /--/, $form->{acsrole};
sql-ledger-3.2.6/SL/HR.pm:786:    $where .= qq| AND r.id = $var|;
sql-ledger-3.2.6/SL/HR.pm-787-  }
##############################################
sql-ledger-3.2.6/SL/HR.pm-921-		LEFT JOIN paymentmethod pm ON (pm.id = e.paymentmethod_id)
sql-ledger-3.2.6/SL/HR.pm:922:		WHERE a.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-923-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-931-                JOIN acc_trans a ON (a.project_id = p.id)
sql-ledger-3.2.6/SL/HR.pm:932:                WHERE a.trans_id = $form->{id}~;
sql-ledger-3.2.6/SL/HR.pm-933-    ($form->{project}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-987-                JOIN employeewage ew ON (ew.wage_id = w.id)
sql-ledger-3.2.6/SL/HR.pm:988:		WHERE ew.employee_id = $form->{vendor_id}
sql-ledger-3.2.6/SL/HR.pm-989-		ORDER BY ew.id|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-1008-		LEFT JOIN deduction d ON (d.id = pt.id)
sql-ledger-3.2.6/SL/HR.pm:1009:		WHERE pt.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1010-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1031-                FROM payrate
sql-ledger-3.2.6/SL/HR.pm:1032:		WHERE trans_id = $form->{vendor_id}
sql-ledger-3.2.6/SL/HR.pm-1033-		ORDER BY id|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-1188-  
sql-ledger-3.2.6/SL/HR.pm:1189:  $where .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/HR.pm:1190:  $where .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/HR.pm-1191-  
##############################################
sql-ledger-3.2.6/SL/HR.pm-1209-	      FROM acc_trans
sql-ledger-3.2.6/SL/HR.pm:1210:	      WHERE project_id = $id
sql-ledger-3.2.6/SL/HR.pm-1211-	      AND trans_id = ?|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-1313-
sql-ledger-3.2.6/SL/HR.pm:1314:                WHERE e.id = $id|;
sql-ledger-3.2.6/SL/HR.pm-1315-
##############################################
sql-ledger-3.2.6/SL/HR.pm-1330-                FROM paymentmethod
sql-ledger-3.2.6/SL/HR.pm:1331:                WHERE id = $id|;
sql-ledger-3.2.6/SL/HR.pm-1332-
##############################################
sql-ledger-3.2.6/SL/HR.pm-1359-		LEFT JOIN translation tr2 ON (tr2.trans_id = c2.id AND tr2.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/HR.pm:1360:                WHERE c2.accno = '$id'|;
sql-ledger-3.2.6/SL/HR.pm-1361-
##############################################
sql-ledger-3.2.6/SL/HR.pm-1379-		LEFT JOIN translation tr1 ON (tr1.trans_id = c1.id AND tr1.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/HR.pm:1380:                WHERE c1.accno = '$id'|;
sql-ledger-3.2.6/SL/HR.pm-1381-
##############################################
sql-ledger-3.2.6/SL/HR.pm-1441-              FROM vendor
sql-ledger-3.2.6/SL/HR.pm:1442:	      WHERE id = $employee_id|;
sql-ledger-3.2.6/SL/HR.pm-1443-
##############################################
sql-ledger-3.2.6/SL/HR.pm-1446-                FROM employee
sql-ledger-3.2.6/SL/HR.pm:1447:		WHERE id = $employee_id|;
sql-ledger-3.2.6/SL/HR.pm-1448-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1487-		JOIN gl g ON (g.id = pt.glid)
sql-ledger-3.2.6/SL/HR.pm:1488:		WHERE pt.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1489-    ($gl->{id}, $gl->{reference}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1491-    $query = qq|DELETE FROM pay_trans
sql-ledger-3.2.6/SL/HR.pm:1492:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1493-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1671-                glid = $gl->{id}
sql-ledger-3.2.6/SL/HR.pm:1672:		WHERE trans_id = $ap->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1673-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1715-		 LEFT JOIN deduction b ON (d.basedon = b.id)
sql-ledger-3.2.6/SL/HR.pm:1716:                 WHERE d.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1717-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1728-    $query = qq|SELECT count(*) FROM employeededuction
sql-ledger-3.2.6/SL/HR.pm:1729:                WHERE deduction_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1730-    if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/HR.pm-1736-                FROM deductionrate
sql-ledger-3.2.6/SL/HR.pm:1737:                WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/HR.pm-1738-		ORDER BY rn|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-1749-		JOIN deduct da ON (da.deduction_id = d.id)
sql-ledger-3.2.6/SL/HR.pm:1750:                WHERE da.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1751-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1761-                FROM deduction
sql-ledger-3.2.6/SL/HR.pm:1762:	        WHERE id != $form->{id}
sql-ledger-3.2.6/SL/HR.pm-1763-		ORDER BY 2|;
##############################################
sql-ledger-3.2.6/SL/HR.pm-1857-    $query = qq|SELECT id FROM deduction
sql-ledger-3.2.6/SL/HR.pm:1858:                WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/HR.pm-1859-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1875-	           (SELECT id FROM chart
sql-ledger-3.2.6/SL/HR.pm:1876:	            WHERE accno = '$form->{employee_accno}'),
sql-ledger-3.2.6/SL/HR.pm-1877-	      employer_accno_id =
sql-ledger-3.2.6/SL/HR.pm-1878-	           (SELECT id FROM chart
sql-ledger-3.2.6/SL/HR.pm:1879:	            WHERE accno = '$form->{employer_accno}'),
sql-ledger-3.2.6/SL/HR.pm-1880-	      employerpays = '$form->{employerpays}',
##############################################
sql-ledger-3.2.6/SL/HR.pm-1885-	      agedob = |.$dbh->quote($form->{agedob}).qq|
sql-ledger-3.2.6/SL/HR.pm:1886:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1887-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1890-  $query = qq|DELETE FROM deductionrate
sql-ledger-3.2.6/SL/HR.pm:1891:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1892-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1908-  $query = qq|DELETE FROM deduct
sql-ledger-3.2.6/SL/HR.pm:1909:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1910-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1944-  my $query = qq|DELETE FROM deduction
sql-ledger-3.2.6/SL/HR.pm:1945:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1946-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1948-  $query = qq|DELETE FROM deductionrate
sql-ledger-3.2.6/SL/HR.pm:1949:	         WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1950-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1952-  $query = qq|DELETE FROM deduct
sql-ledger-3.2.6/SL/HR.pm:1953:	         WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1954-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-1987-		 LEFT JOIN translation l1 ON (l1.trans_id = c1.id AND l1.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/HR.pm:1988:                 WHERE w.id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-1989-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-2001-    $query = qq|SELECT count(*) FROM employeewage
sql-ledger-3.2.6/SL/HR.pm:2002:                WHERE wage_id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-2003-    if (! $dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/HR.pm-2076-    $query = qq|SELECT id FROM wage
sql-ledger-3.2.6/SL/HR.pm:2077:                WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/HR.pm-2078-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-2093-	           (SELECT id FROM chart
sql-ledger-3.2.6/SL/HR.pm:2094:	            WHERE accno = '$form->{defer}'),
sql-ledger-3.2.6/SL/HR.pm-2095-	      exempt = '$form->{exempt}',
##############################################
sql-ledger-3.2.6/SL/HR.pm-2097-	           (SELECT id FROM chart
sql-ledger-3.2.6/SL/HR.pm:2098:	            WHERE accno = '$form->{accno}'),
sql-ledger-3.2.6/SL/HR.pm-2099-	      amount = $form->{amount}
sql-ledger-3.2.6/SL/HR.pm:2100:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-2101-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/HR.pm-2120-  my $query = qq|DELETE FROM wage
sql-ledger-3.2.6/SL/HR.pm:2121:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/HR.pm-2122-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-69-      (undef, $var) = split /--/, $form->{$_};
sql-ledger-3.2.6/SL/OE.pm:70:      $where .= " AND o.${_}_id = $var";
sql-ledger-3.2.6/SL/OE.pm-71-    }
##############################################
sql-ledger-3.2.6/SL/OE.pm-94-                 LEFT JOIN warehouse w ON (o.warehouse_id = w.id)
sql-ledger-3.2.6/SL/OE.pm:95:                 WHERE o.quotation = '$quotation'
sql-ledger-3.2.6/SL/OE.pm-96-                 $where|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-242-		FROM oe
sql-ledger-3.2.6/SL/OE.pm:243:		WHERE ordnumber = $ordnumber
sql-ledger-3.2.6/SL/OE.pm-244-		AND customer_id > 0|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-247-		FROM oe
sql-ledger-3.2.6/SL/OE.pm:248:		WHERE ordnumber = $ordnumber
sql-ledger-3.2.6/SL/OE.pm-249-		AND vendor_id > 0|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-312-    $query = qq|SELECT id, aa_id FROM oe
sql-ledger-3.2.6/SL/OE.pm:313:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-314-
##############################################
sql-ledger-3.2.6/SL/OE.pm-323-        $query = qq|DELETE FROM $_
sql-ledger-3.2.6/SL/OE.pm:324:                    WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-325-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-328-      $query = qq|DELETE FROM $arap
sql-ledger-3.2.6/SL/OE.pm:329:                  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-330-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-348-    $query = qq|SELECT id FROM oe
sql-ledger-3.2.6/SL/OE.pm:349:                WHERE ordnumber = '$uid'|;
sql-ledger-3.2.6/SL/OE.pm-350-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-495-		  FROM orderitems
sql-ledger-3.2.6/SL/OE.pm:496:		  WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/OE.pm-497-      ($form->{"orderitems_id_$i"}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-519-      vendor_id = $form->{"costvendorid_$i"}
sql-ledger-3.2.6/SL/OE.pm:520:		  WHERE id = $form->{"orderitems_id_$i"}
sql-ledger-3.2.6/SL/OE.pm-521-		  AND trans_id = $form->{id}|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-545-                      weight = abs($form->{"netweight_$i"} / $form->{"ship_$i"} * 1.0)
sql-ledger-3.2.6/SL/OE.pm:546:                WHERE id = $form->{"id_$i"}|;
sql-ledger-3.2.6/SL/OE.pm-547-          $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-613-              backorder = '$form->{backorder}'
sql-ledger-3.2.6/SL/OE.pm:614:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-615-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-671-                    JOIN chart c ON (c.id = vc.prepayment_accno_id)
sql-ledger-3.2.6/SL/OE.pm:672:                    WHERE vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/OE.pm-673-        ($form->{$arap}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-678-                      FROM chart
sql-ledger-3.2.6/SL/OE.pm:679:                      WHERE link = '$arap'
sql-ledger-3.2.6/SL/OE.pm-680-                      ORDER BY accno $asc|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-719-  my $query = qq|SELECT spoolfile FROM status
sql-ledger-3.2.6/SL/OE.pm:720:                 WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/OE.pm-721-		 AND spoolfile IS NOT NULL|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-735-  for (qw(dpt_trans inventory status orderitems shipto cargo acc_trans payment)) {
sql-ledger-3.2.6/SL/OE.pm:736:    $query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-737-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-740-  for (qw(recurring recurringemail recurringprint)) {
sql-ledger-3.2.6/SL/OE.pm:741:    $query = qq|DELETE FROM $_ WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-742-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-745-  my $arap = ($form->{vc} eq 'customer') ? 'ar' : 'ap';
sql-ledger-3.2.6/SL/OE.pm:746:  $query = qq|DELETE FROM $arap WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-747-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-750-  $query = qq|DELETE FROM oe
sql-ledger-3.2.6/SL/OE.pm:751:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-752-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-845-	        LEFT JOIN warehouse w ON (o.warehouse_id = w.id)
sql-ledger-3.2.6/SL/OE.pm:846:		WHERE o.id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-847-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-861-    $query = qq|SELECT * FROM shipto
sql-ledger-3.2.6/SL/OE.pm:862:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-863-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-872-                FROM status s
sql-ledger-3.2.6/SL/OE.pm:873:		WHERE s.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-874-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-907-                LEFT JOIN vendor v ON (v.id = o.vendor_id)
sql-ledger-3.2.6/SL/OE.pm:908:		WHERE o.trans_id = $form->{id}
sql-ledger-3.2.6/SL/OE.pm-909-                ORDER BY o.id|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-1045-                LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/OE.pm:1046:                WHERE ac.trans_id = $form->{id}
sql-ledger-3.2.6/SL/OE.pm-1047-                AND c.link LIKE '%$form->{ARAP}_paid%'
##############################################
sql-ledger-3.2.6/SL/OE.pm-1643-  
sql-ledger-3.2.6/SL/OE.pm:1644:  my $where = ($form->{formname} eq 'work_order') ? "1 = 1" : "a.bom = '1'";
sql-ledger-3.2.6/SL/OE.pm-1645-  
##############################################
sql-ledger-3.2.6/SL/OE.pm-1719-                 FROM project
sql-ledger-3.2.6/SL/OE.pm:1720:		 WHERE id = $id|;
sql-ledger-3.2.6/SL/OE.pm-1721-  ($_) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-1818-		  reqdate = '$form->{shippingdate}'
sql-ledger-3.2.6/SL/OE.pm:1819:		  WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/OE.pm-1820-		  AND id = $form->{"orderitems_id_$i"}|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-1838-		    volume = $form->{"volume_$i"}
sql-ledger-3.2.6/SL/OE.pm:1839:		    WHERE id = $form->{"orderitems_id_$i"}
sql-ledger-3.2.6/SL/OE.pm-1840-		    AND trans_id = $form->{id}|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-1856-		  warehouse_id = $warehouse_id
sql-ledger-3.2.6/SL/OE.pm:1857:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-1858-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-1863-                  weight = $form->{"netweight_$i"} / $ship
sql-ledger-3.2.6/SL/OE.pm:1864:                  WHERE id = $form->{"id_$i"}
sql-ledger-3.2.6/SL/OE.pm-1865-                  AND (inventory_accno_id > 0 OR assembly = '1')|;
##############################################
sql-ledger-3.2.6/SL/OE.pm-1890-		 JOIN parts p ON (p.id = oi.parts_id)
sql-ledger-3.2.6/SL/OE.pm:1891:                 WHERE oi.trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-1892-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2073-		JOIN parts p ON (p.id = a.parts_id)
sql-ledger-3.2.6/SL/OE.pm:2074:		WHERE a.aid = $parts_id|;
sql-ledger-3.2.6/SL/OE.pm-2075-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2088-		  JOIN parts p ON (p.id = oi.parts_id)
sql-ledger-3.2.6/SL/OE.pm:2089:		  WHERE oi.parts_id = $parts_id
sql-ledger-3.2.6/SL/OE.pm-2090-		  AND oi.id = $orderitemsid
##############################################
sql-ledger-3.2.6/SL/OE.pm-2094-		  FROM parts
sql-ledger-3.2.6/SL/OE.pm:2095:		  WHERE id = $parts_id|;
sql-ledger-3.2.6/SL/OE.pm-2096-    }
##############################################
sql-ledger-3.2.6/SL/OE.pm-2187-		LEFT JOIN chart c ON (c.id = t.chart_id)
sql-ledger-3.2.6/SL/OE.pm:2188:                WHERE v.id = $vendor_id|;
sql-ledger-3.2.6/SL/OE.pm-2189-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2203-    $query = qq|SELECT prec FROM curr
sql-ledger-3.2.6/SL/OE.pm:2204:                WHERE curr = '$curr'|;
sql-ledger-3.2.6/SL/OE.pm-2205-    ($form->{precision}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2219-    $query = qq|SELECT id FROM oe
sql-ledger-3.2.6/SL/OE.pm:2220:                WHERE ordnumber = '$uid'|;
sql-ledger-3.2.6/SL/OE.pm-2221-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2227-    $query = qq|SELECT * FROM shipto
sql-ledger-3.2.6/SL/OE.pm:2228:                WHERE trans_id = $vendor_id|;
sql-ledger-3.2.6/SL/OE.pm-2229-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2263-                  JOIN partstax pt ON (pt.chart_id = c.id)
sql-ledger-3.2.6/SL/OE.pm:2264:		  WHERE pt.parts_id = $ph|;
sql-ledger-3.2.6/SL/OE.pm-2265-      $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2278-		    JOIN orderitems oi ON (oi.parts_id = p.id)
sql-ledger-3.2.6/SL/OE.pm:2279:		    WHERE oi.parts_id = $ph
sql-ledger-3.2.6/SL/OE.pm-2280-		    AND oi.trans_id = $trans_id
##############################################
sql-ledger-3.2.6/SL/OE.pm-2284-	            FROM parts p
sql-ledger-3.2.6/SL/OE.pm:2285:		    WHERE p.id = $ph|;
sql-ledger-3.2.6/SL/OE.pm-2286-      }
##############################################
sql-ledger-3.2.6/SL/OE.pm-2338-		ponumber = |.$dbh->quote($form->{ponumber}).qq|
sql-ledger-3.2.6/SL/OE.pm:2339:		WHERE id = $id|;
sql-ledger-3.2.6/SL/OE.pm-2340-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2469-	            closed = '1'
sql-ledger-3.2.6/SL/OE.pm:2470:		    WHERE id = $id|;
sql-ledger-3.2.6/SL/OE.pm-2471-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2475-	            ship = 0
sql-ledger-3.2.6/SL/OE.pm:2476:		    WHERE trans_id = $id|;
sql-ledger-3.2.6/SL/OE.pm-2477-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2488-                  FROM oe
sql-ledger-3.2.6/SL/OE.pm:2489:		  WHERE ordnumber = '$uid'|;
sql-ledger-3.2.6/SL/OE.pm-2490-      ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2514-		  description = |.$dbh->quote($form->{orddescription}).qq|
sql-ledger-3.2.6/SL/OE.pm:2515:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/OE.pm-2516-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OE.pm-2558-                      SET trans_id = $form->{id}
sql-ledger-3.2.6/SL/OE.pm:2559:                      WHERE trans_id = $id|;
sql-ledger-3.2.6/SL/OE.pm-2560-          $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-208-                FROM $table
sql-ledger-3.2.6/SL/AA.pm:209: 	        WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-210-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-216-      for (qw(acc_trans dpt_trans payment)) {
sql-ledger-3.2.6/SL/AA.pm:217:        $query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-218-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-232-    $query = qq|SELECT id FROM $table
sql-ledger-3.2.6/SL/AA.pm:233:                WHERE invnumber = '$uid'|;
sql-ledger-3.2.6/SL/AA.pm-234-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-268-		JOIN chart c ON (c.id = bk.id)
sql-ledger-3.2.6/SL/AA.pm:269:		WHERE c.accno = '$paymentaccno'|;
sql-ledger-3.2.6/SL/AA.pm-270-    ($form->{membernumber}, $form->{dcn}, $form->{rvc}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-297-	      dcn = |.$dbh->quote($form->{dcn}).qq|,
sql-ledger-3.2.6/SL/AA.pm:298:	      bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/AA.pm-299-	      paymentmethod_id = $paymentmethod_id,
sql-ledger-3.2.6/SL/AA.pm-300-	      language_code = '$form->{language_code}'
sql-ledger-3.2.6/SL/AA.pm:301:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-302-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-334-		  VALUES ($form->{id}, (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:335:					WHERE accno = '$ref->{accno}'),
sql-ledger-3.2.6/SL/AA.pm-336-		  $ref->{amount} * $ml * $arapml, '$form->{transdate}',
##############################################
sql-ledger-3.2.6/SL/AA.pm-351-			 (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:352:			  WHERE accno = '$ref->{accno}'),
sql-ledger-3.2.6/SL/AA.pm-353-		  $ref->{amount} * $ml * $arapml, '$ref->{transdate}',
##############################################
sql-ledger-3.2.6/SL/AA.pm-369-		       (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:370:			WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/AA.pm-371-		$invamount * -1 * $ml * $arapml, '$form->{transdate}', '$approved')|;
##############################################
sql-ledger-3.2.6/SL/AA.pm-436-		           (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:437:			    WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/AA.pm-438-		    $paid{amount}{$i} * $ml * $arapml, '$form->{"datepaid_$i"}',
##############################################
sql-ledger-3.2.6/SL/AA.pm-463-			   (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:464:			    WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/AA.pm-465-		    $amount * -1 * $ml * $arapml, '$form->{"datepaid_$i"}', |
##############################################
sql-ledger-3.2.6/SL/AA.pm-500-			       (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:501:				WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/AA.pm-502-			$amount * -1 * $ml * $arapml, '$form->{"datepaid_$i"}', '1',
##############################################
sql-ledger-3.2.6/SL/AA.pm-533-			   (SELECT id FROM chart
sql-ledger-3.2.6/SL/AA.pm:534:			    WHERE accno = '$ref->{accno}'),
sql-ledger-3.2.6/SL/AA.pm-535-		    $ref->{amount} * $ml * $arapml, '$ref->{transdate}',
##############################################
sql-ledger-3.2.6/SL/AA.pm-589-		 JOIN vr ON (vr.trans_id = a.id)
sql-ledger-3.2.6/SL/AA.pm:590: 	         WHERE vr.id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-591-  my $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-605-    $query = qq|SELECT * FROM vr
sql-ledger-3.2.6/SL/AA.pm:606:		WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/AA.pm-607-		AND NOT br_id = $form->{batchid}|;
##############################################
sql-ledger-3.2.6/SL/AA.pm-613-		JOIN chart c ON (c.id = ac.chart_id)
sql-ledger-3.2.6/SL/AA.pm:614:		WHERE ac.trans_id = $form->{id}
sql-ledger-3.2.6/SL/AA.pm-615-		AND vr.id = ?
##############################################
sql-ledger-3.2.6/SL/AA.pm-643-  $query = qq|DELETE FROM vr
sql-ledger-3.2.6/SL/AA.pm:644:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-645-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-673-  
sql-ledger-3.2.6/SL/AA.pm:674:  $query = qq|DELETE FROM $table WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-675-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-677-  $query = qq|SELECT glid FROM pay_trans
sql-ledger-3.2.6/SL/AA.pm:678:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AA.pm-679-  ($form->{glid}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-684-      if ($form->{$id}) {
sql-ledger-3.2.6/SL/AA.pm:685:	$query = qq|DELETE FROM $_ WHERE trans_id = $form->{$id}|;
sql-ledger-3.2.6/SL/AA.pm-686-	$dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-690-      if ($form->{$id}) {
sql-ledger-3.2.6/SL/AA.pm:691:	$query = qq|DELETE FROM $_ WHERE id = $form->{$id}|;
sql-ledger-3.2.6/SL/AA.pm-692-	$dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-865-  if ($form->{"$form->{vc}_id"} *= 1) {
sql-ledger-3.2.6/SL/AA.pm:866:    $where .= qq| AND a.$form->{vc}_id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-867-  } else {
##############################################
sql-ledger-3.2.6/SL/AA.pm-869-      $var = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/AA.pm:870:      $where .= " AND lower(vc.name) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-871-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-873-      $var = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/AA.pm:874:      $where .= " AND lower(vc.$form->{vc}number) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-875-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-879-      (undef, $var) = split /--/, $form->{$_};
sql-ledger-3.2.6/SL/AA.pm:880:      $where .= " AND a.${_}_id = $var";
sql-ledger-3.2.6/SL/AA.pm-881-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-896-      $where .= " AND (";
sql-ledger-3.2.6/SL/AA.pm:897:      for (@ids) { $where .= "a.department_id = $_ OR " }
sql-ledger-3.2.6/SL/AA.pm:898:      $where = substr($where, 0, -4) . ")";
sql-ledger-3.2.6/SL/AA.pm-899-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-904-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/AA.pm:905:      $where .= " AND lower(a.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-906-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-910-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/AA.pm:911:      $where .= " AND lower(a.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-912-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-916-      $var = $form->like(lc $form->{memo});
sql-ledger-3.2.6/SL/AA.pm:917:      $where .= " AND lower(ac.memo) LIKE '$var'
sql-ledger-3.2.6/SL/AA.pm-918-		  OR lower(i.description) LIKE '$var'";
##############################################
sql-ledger-3.2.6/SL/AA.pm-925-      $var = $form->like(lc $form->{source});
sql-ledger-3.2.6/SL/AA.pm:926:      $where .= " AND lower(ac.source) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-927-    } else {
##############################################
sql-ledger-3.2.6/SL/AA.pm-931-
sql-ledger-3.2.6/SL/AA.pm:932:  $where .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/AA.pm:933:  $where .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/AA.pm-934-
##############################################
sql-ledger-3.2.6/SL/AA.pm-938-    if ($form->{paidlate}) {
sql-ledger-3.2.6/SL/AA.pm:939:      $where .= " AND a.datepaid > a.duedate" unless $form->{paidearly};
sql-ledger-3.2.6/SL/AA.pm-940-    }
sql-ledger-3.2.6/SL/AA.pm-941-    if ($form->{paidearly}) {
sql-ledger-3.2.6/SL/AA.pm:942:      $where .= " AND a.datepaid <= a.duedate" unless $form->{paidlate};
sql-ledger-3.2.6/SL/AA.pm-943-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-951-    if ($form->{open}) {
sql-ledger-3.2.6/SL/AA.pm:952:      $where .= " AND a.amount != a.paid" unless $form->{closed};
sql-ledger-3.2.6/SL/AA.pm-953-    }
sql-ledger-3.2.6/SL/AA.pm-954-    if ($form->{closed}) {
sql-ledger-3.2.6/SL/AA.pm:955:      $where .= " AND a.amount = a.paid" unless $form->{open};
sql-ledger-3.2.6/SL/AA.pm-956-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1126-                 $shiptojoin
sql-ledger-3.2.6/SL/AA.pm:1127:                 WHERE c.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-1128-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1186-              JOIN $form->{vc}tax ct ON (ct.chart_id = c.id)
sql-ledger-3.2.6/SL/AA.pm:1187:              WHERE ct.$form->{vc}_id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-1188-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1198-  if ($form->{transdate}) {
sql-ledger-3.2.6/SL/AA.pm:1199:    $where = qq|AND (t.validto >= '$form->{transdate}' OR t.validto IS NULL)|;
sql-ledger-3.2.6/SL/AA.pm-1200-  } else {
##############################################
sql-ledger-3.2.6/SL/AA.pm-1243-                  LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/AA.pm:1244:                  WHERE a.$form->{vc}_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/AA.pm-1245-                  AND a.id IN (SELECT max(id) FROM $arap
sql-ledger-3.2.6/SL/AA.pm:1246:                  WHERE $form->{vc}_id = $form->{"$form->{vc}_id"})|;
sql-ledger-3.2.6/SL/AA.pm-1247-    } elsif ($form->{type} =~ /transaction/) {
##############################################
sql-ledger-3.2.6/SL/AA.pm-1255-                  LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/AA.pm:1256:                  WHERE a.$form->{vc}_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/AA.pm-1257-                  AND a.id IN (SELECT max(id) FROM $arap
sql-ledger-3.2.6/SL/AA.pm:1258:                  WHERE $form->{vc}_id = $form->{"$form->{vc}_id"})|;
sql-ledger-3.2.6/SL/AA.pm-1259-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1308-		 LEFT JOIN bank bk ON (bk.id = ct.id)
sql-ledger-3.2.6/SL/AA.pm:1309:	         WHERE ct.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-1310-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1317-  $query = qq|SELECT * FROM contact
sql-ledger-3.2.6/SL/AA.pm:1318:              WHERE trans_id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-1319-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1330-              FROM employee
sql-ledger-3.2.6/SL/AA.pm:1331:              WHERE id = $id|;
sql-ledger-3.2.6/SL/AA.pm-1332-  ($form->{workphone}, $form->{workfax}, $form->{workmobile}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1352-		FROM address
sql-ledger-3.2.6/SL/AA.pm:1353:		WHERE trans_id = $form->{warehouse_id}|;
sql-ledger-3.2.6/SL/AA.pm-1354-    $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1368-		JOIN address ad ON (c.id = ad.trans_id)
sql-ledger-3.2.6/SL/AA.pm:1369:		WHERE c.accno = '$paymentaccno'|;
sql-ledger-3.2.6/SL/AA.pm-1370-    $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AA.pm-1403-                 FROM shipto s
sql-ledger-3.2.6/SL/AA.pm:1404:		 WHERE trans_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/AA.pm-1405-		 UNION
##############################################
sql-ledger-3.2.6/SL/AA.pm-1412-		 JOIN oe o ON (o.id = s.trans_id)
sql-ledger-3.2.6/SL/AA.pm:1413:		 WHERE o.$form->{vc}_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/AA.pm-1414-		 UNION
##############################################
sql-ledger-3.2.6/SL/AA.pm-1421-		 JOIN $table a ON (a.id = s.trans_id)
sql-ledger-3.2.6/SL/AA.pm:1422:	         WHERE a.$form->{vc}_id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/AA.pm-1423-
##############################################
sql-ledger-3.2.6/SL/AA.pm-1432-		 FROM shipto s
sql-ledger-3.2.6/SL/AA.pm:1433:		 WHERE s.trans_id = '$form->{id}'|;
sql-ledger-3.2.6/SL/AA.pm-1434-  }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1478-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/AA.pm:1479:      $where .= " AND lower(vc.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-1480-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1484-    if ($form->{"${_}from"}) {
sql-ledger-3.2.6/SL/AA.pm:1485:      $where .= qq| AND vc.$_ >= '$form->{"${_}from"}'|;
sql-ledger-3.2.6/SL/AA.pm-1486-    }
sql-ledger-3.2.6/SL/AA.pm-1487-    if ($form->{"${_}to"}) {
sql-ledger-3.2.6/SL/AA.pm:1488:      $where .= qq| AND vc.$_ <= '$form->{"${_}to"}'|;
sql-ledger-3.2.6/SL/AA.pm-1489-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1493-    if ($form->{$_} ne "") {
sql-ledger-3.2.6/SL/AA.pm:1494:      $where .= " AND vc.$_ = '$_'";
sql-ledger-3.2.6/SL/AA.pm-1495-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1498-  if ($form->{curr}) {
sql-ledger-3.2.6/SL/AA.pm:1499:    $where .= " AND vc.curr = '$form->{curr}'";
sql-ledger-3.2.6/SL/AA.pm-1500-  }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1504-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/AA.pm:1505:      $where .= " AND lower(ad.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/AA.pm-1506-    }
##############################################
sql-ledger-3.2.6/SL/AA.pm-1511-      (undef, $var) = split /--/, $form->{$_};
sql-ledger-3.2.6/SL/AA.pm:1512:      $where .= " AND vc.${_}_id = $var";
sql-ledger-3.2.6/SL/AA.pm-1513-    }
##############################################
sql-ledger-3.2.6/SL/IM.pm-34-  $query = qq|SELECT accno FROM chart
sql-ledger-3.2.6/SL/IM.pm:35:              WHERE link = '$form->{ARAP}'|;
sql-ledger-3.2.6/SL/IM.pm-36-  $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-461-  my $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:462:                 WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-463-	         AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-471-    $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:472:                WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-473-		AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-477-  $query = qq|DELETE FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:478:              WHERE reportid = $reportid|;
sql-ledger-3.2.6/SL/IM.pm-479-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-528-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:529:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-530-	      AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-533-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:534:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-535-	      AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-566-		FROM ar
sql-ledger-3.2.6/SL/IM.pm:567:		WHERE invnumber = |.$dbh->quote($form->{invnumber});
sql-ledger-3.2.6/SL/IM.pm-568-    ($form->{id}, $paid) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-596-                FROM paymentmethod
sql-ledger-3.2.6/SL/IM.pm:597:		WHERE description = |.$dbh->quote($form->{paymentmethod_1});
sql-ledger-3.2.6/SL/IM.pm-598-    ($paymentmethod_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-608-	      LEFT JOIN paymentmethod pm ON (pm.id = c.paymentmethod_id)
sql-ledger-3.2.6/SL/IM.pm:609:	      WHERE c.id = |.$dbh->quote($form->{customer_id});
sql-ledger-3.2.6/SL/IM.pm-610-  ($form->{customernumber}, $language_code, $form->{city}, $paymentaccno, $paymentmethod_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-620-	      JOIN tax t ON (t.chart_id = c.id)
sql-ledger-3.2.6/SL/IM.pm:621:              WHERE ct.customer_id = $form->{customer_id}
sql-ledger-3.2.6/SL/IM.pm-622-	      AND (validto > '$form->{transdate}' OR validto IS NULL)
##############################################
sql-ledger-3.2.6/SL/IM.pm-664-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:665:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-666-	            AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-669-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:670:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-671-	            AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-702-                FROM oe
sql-ledger-3.2.6/SL/IM.pm:703:                WHERE ordnumber = '$form->{ordnumber}'|;
sql-ledger-3.2.6/SL/IM.pm-704-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-724-              JOIN address a ON (a.trans_id = c.id)
sql-ledger-3.2.6/SL/IM.pm:725:              WHERE c.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/IM.pm-726-  ($form->{"$form->{vc}number"}, $language_code, $form->{city}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-733-              JOIN tax t ON (t.chart_id = c.id)
sql-ledger-3.2.6/SL/IM.pm:734:              WHERE ct.$form->{vc}_id = $form->{"$form->{vc}_id"}
sql-ledger-3.2.6/SL/IM.pm-735-              AND (validto > '$form->{transdate}' OR validto IS NULL)
##############################################
sql-ledger-3.2.6/SL/IM.pm-778-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:779:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-780-	      AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-783-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:784:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-785-	      AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-829-          $query = qq|SELECT id FROM $_
sql-ledger-3.2.6/SL/IM.pm:830:                WHERE trans_id = $newform->{id}|;
sql-ledger-3.2.6/SL/IM.pm-831-          ($newform->{"${_}id"}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-836-        $query = qq|SELECT id FROM $_
sql-ledger-3.2.6/SL/IM.pm:837:              WHERE $link{$_}{fld} = '$newform->{$_}'|;
sql-ledger-3.2.6/SL/IM.pm-838-        ($var) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-884-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:885:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-886-	      AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-889-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:890:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-891-	      AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-945-    $query = qq|SELECT accno FROM chart
sql-ledger-3.2.6/SL/IM.pm:946:                WHERE id = $defaults{"${_}_accno_id"}|;
sql-ledger-3.2.6/SL/IM.pm-947-    ($form->{"IC_$_"}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-1213-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:1214:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-1215-	      AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1218-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:1219:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-1220-	      AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1280-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:1281:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-1282-	      AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1285-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:1286:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-1287-	            AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1363-  $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/IM.pm:1364:              WHERE reportcode = '$form->{reportcode}'
sql-ledger-3.2.6/SL/IM.pm-1365-	            AND login = '$form->{login}'|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1368-  $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:1369:              WHERE reportid = $reportid
sql-ledger-3.2.6/SL/IM.pm-1370-	            AND reportvariable LIKE ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1495-  $query = qq|DELETE FROM reportvars
sql-ledger-3.2.6/SL/IM.pm:1496:              WHERE reportid = $reportid|;
sql-ledger-3.2.6/SL/IM.pm-1497-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-1643-  $query = qq|SELECT exchangerate FROM exchangerate
sql-ledger-3.2.6/SL/IM.pm:1644:	      WHERE curr = '$form->{currency}'
sql-ledger-3.2.6/SL/IM.pm-1645-	      AND transdate = ?|;
##############################################
sql-ledger-3.2.6/SL/IM.pm-1789-  if ($form->{curr}) {
sql-ledger-3.2.6/SL/IM.pm:1790:    $where = " AND a.curr = '$form->{curr}'";
sql-ledger-3.2.6/SL/IM.pm-1791-    $query = qq|SELECT prec FROM curr
sql-ledger-3.2.6/SL/IM.pm:1792:                WHERE curr = '$form->{curr}'|;
sql-ledger-3.2.6/SL/IM.pm-1793-    ($form->{precision}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-1798-    (undef, $paymentmethod_id) = split /--/, $form->{paymentmethod};
sql-ledger-3.2.6/SL/IM.pm:1799:    $where .= " AND pm.paymentmethod_id = $paymentmethod_id";
sql-ledger-3.2.6/SL/IM.pm-1800-  }
##############################################
sql-ledger-3.2.6/SL/IM.pm-1857-              WHERE id = (SELECT id FROM chart
sql-ledger-3.2.6/SL/IM.pm:1858:	                  WHERE accno = '$accno')|;
sql-ledger-3.2.6/SL/IM.pm-1859-  ($form->{accountnumber}, $form->{accountclearingnumber}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IM.pm-1877-  $query = qq|SELECT id FROM chart
sql-ledger-3.2.6/SL/IM.pm:1878:              WHERE accno = |.$dbh->quote($paymentaccount);
sql-ledger-3.2.6/SL/IM.pm-1879-  my ($paymentaccount_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-30-                 FROM chart
sql-ledger-3.2.6/SL/AM.pm:31:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-32-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-44-  $query = qq|SELECT trans_id FROM acc_trans
sql-ledger-3.2.6/SL/AM.pm:45:              WHERE chart_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-46-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-114-                closed = '$form->{closed}'
sql-ledger-3.2.6/SL/AM.pm:115:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-116-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-135-		FROM chart
sql-ledger-3.2.6/SL/AM.pm:136:		WHERE accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/AM.pm-137-    ($chart_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-144-                FROM tax
sql-ledger-3.2.6/SL/AM.pm:145:		WHERE chart_id = $chart_id|;
sql-ledger-3.2.6/SL/AM.pm-146-    my ($tax_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-157-      $query = qq|DELETE FROM tax
sql-ledger-3.2.6/SL/AM.pm:158:		  WHERE chart_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-159-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-227-                FROM parts
sql-ledger-3.2.6/SL/AM.pm:228:		WHERE $_ = $defaults{$_}|;
sql-ledger-3.2.6/SL/AM.pm-229-    if ($dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/AM.pm-232-		    SET $_ = $defaults{$_}
sql-ledger-3.2.6/SL/AM.pm:233:		    WHERE $_ = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-234-	$dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-243-  $query = qq|DELETE FROM chart
sql-ledger-3.2.6/SL/AM.pm:244:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-245-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-247-  $query = qq|DELETE FROM bank
sql-ledger-3.2.6/SL/AM.pm:248:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-249-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-251-  $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/AM.pm:252:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-253-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-255-  $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/AM.pm:256:              WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-257-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-260-    $query = qq|DELETE FROM $table
sql-ledger-3.2.6/SL/AM.pm:261:		WHERE chart_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-262-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-313-                 FROM gifi
sql-ledger-3.2.6/SL/AM.pm:314:	         WHERE accno = |.$dbh->quote($form->{accno});
sql-ledger-3.2.6/SL/AM.pm-315-
##############################################
sql-ledger-3.2.6/SL/AM.pm-321-	      JOIN gifi g ON (c.gifi_accno = g.accno)
sql-ledger-3.2.6/SL/AM.pm:322:	      WHERE g.accno = |.$dbh->quote($form->{accno});
sql-ledger-3.2.6/SL/AM.pm-323-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-348-		description = |.$dbh->quote($form->{description}).qq|
sql-ledger-3.2.6/SL/AM.pm:349:		WHERE accno = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-350-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-381-  $query = qq|DELETE FROM gifi
sql-ledger-3.2.6/SL/AM.pm:382:	      WHERE accno = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-383-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-435-		 JOIN address a ON (a.trans_id = w.id)
sql-ledger-3.2.6/SL/AM.pm:436:	         WHERE w.id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-437-  my $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-445-  $query = qq|SELECT * FROM inventory
sql-ledger-3.2.6/SL/AM.pm:446:              WHERE warehouse_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-447-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-466-                FROM warehouse
sql-ledger-3.2.6/SL/AM.pm:467:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-468-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-484-                FROM warehouse
sql-ledger-3.2.6/SL/AM.pm:485:		WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/AM.pm-486-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-495-	      description = |.$dbh->quote($form->{description}).qq|
sql-ledger-3.2.6/SL/AM.pm:496:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-497-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-505-              country = |.$dbh->quote($form->{country}).qq|
sql-ledger-3.2.6/SL/AM.pm:506:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-507-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-535-  my $query = qq|DELETE FROM warehouse
sql-ledger-3.2.6/SL/AM.pm:536:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-537-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-539-  $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/AM.pm:540:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-541-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-593-                 FROM department
sql-ledger-3.2.6/SL/AM.pm:594:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-595-  ($form->{description}, $form->{role}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-598-  $query = qq|SELECT * FROM dpt_trans
sql-ledger-3.2.6/SL/AM.pm:599:              WHERE department_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-600-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-620-		role = '$form->{role}'
sql-ledger-3.2.6/SL/AM.pm:621:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-622-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-657-  $query = qq|DELETE FROM department
sql-ledger-3.2.6/SL/AM.pm:658:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-659-  $dbh->do($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-707-                 FROM business
sql-ledger-3.2.6/SL/AM.pm:708:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-709-  ($form->{description}, $form->{discount}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-729-		discount = $form->{discount}
sql-ledger-3.2.6/SL/AM.pm:730:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-731-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-766-  $query = qq|DELETE FROM business
sql-ledger-3.2.6/SL/AM.pm:767:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-768-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-829-                 FROM paymentmethod
sql-ledger-3.2.6/SL/AM.pm:830:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-831-  ($form->{description}, $form->{fee}, $form->{roundchange}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-853-		fee = |.$form->parse_amount($myconfig, $form->{fee}).qq|
sql-ledger-3.2.6/SL/AM.pm:854:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-855-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-892-  my $query = qq|DELETE FROM paymentmethod
sql-ledger-3.2.6/SL/AM.pm:893: 	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-894-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-912-  my $query = qq|SELECT rn FROM $db
sql-ledger-3.2.6/SL/AM.pm:913:                 WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-914-  my ($rn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-959-                 FROM sic
sql-ledger-3.2.6/SL/AM.pm:960:	         WHERE code = |.$dbh->quote($form->{code});
sql-ledger-3.2.6/SL/AM.pm-961-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-988-		description = |.$dbh->quote($form->{description}).qq|
sql-ledger-3.2.6/SL/AM.pm:989:		WHERE code = |.$dbh->quote($form->{id});
sql-ledger-3.2.6/SL/AM.pm-990-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-1019-  $query = qq|DELETE FROM sic
sql-ledger-3.2.6/SL/AM.pm:1020:	      WHERE code = |.$dbh->quote($form->{code});
sql-ledger-3.2.6/SL/AM.pm-1021-  $dbh->do($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1072-                 FROM language
sql-ledger-3.2.6/SL/AM.pm:1073:	         WHERE code = |.$dbh->quote($form->{code});
sql-ledger-3.2.6/SL/AM.pm-1074-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1102-		description = |.$dbh->quote($form->{description}).qq|
sql-ledger-3.2.6/SL/AM.pm:1103:		WHERE code = |.$dbh->quote($form->{id});
sql-ledger-3.2.6/SL/AM.pm-1104-  } else {
##############################################
sql-ledger-3.2.6/SL/AM.pm-1132-  $query = qq|DELETE FROM language
sql-ledger-3.2.6/SL/AM.pm:1133:	      WHERE code = |.$dbh->quote($form->{code});
sql-ledger-3.2.6/SL/AM.pm-1134-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1225-  $query = qq|DELETE FROM mimetype
sql-ledger-3.2.6/SL/AM.pm:1226:	      WHERE extension = |.$dbh->quote($form->{extension});
sql-ledger-3.2.6/SL/AM.pm-1227-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1419-		 LEFT JOIN oe ON (oe.id = s.id)
sql-ledger-3.2.6/SL/AM.pm:1420:                 WHERE s.id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1421-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1433-  $query = qq|SELECT * FROM recurringemail
sql-ledger-3.2.6/SL/AM.pm:1434:              WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1435-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1445-  $query = qq|SELECT * FROM recurringprint
sql-ledger-3.2.6/SL/AM.pm:1446:              WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1447-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1472-                 FROM recurring
sql-ledger-3.2.6/SL/AM.pm:1473:		 WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1474-  my ($repeat, $unit) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1484-              FROM recurring
sql-ledger-3.2.6/SL/AM.pm:1485:	      WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1486-  my ($last_repeat) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1492-              nextdate = $advance{$myconfig->{dbdriver}}
sql-ledger-3.2.6/SL/AM.pm:1493:	      WHERE id = $id|;
sql-ledger-3.2.6/SL/AM.pm-1494-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1599-		                FROM chart
sql-ledger-3.2.6/SL/AM.pm:1600:				WHERE accno = '$form->{"${_}_accno"}'))|;
sql-ledger-3.2.6/SL/AM.pm-1601-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-1704-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/AM.pm:1705:		WHERE c.link = '$_'
sql-ledger-3.2.6/SL/AM.pm-1706-		ORDER BY c.accno|;
##############################################
sql-ledger-3.2.6/SL/AM.pm-1778-                closed = '$form->{"closed_$_"}'
sql-ledger-3.2.6/SL/AM.pm:1779:                WHERE id = '$_'|;
sql-ledger-3.2.6/SL/AM.pm-1780-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2074-    push @args, "$tmpfile";
sql-ledger-3.2.6/SL/AM.pm:2075:    system(@args) == 0 or $form->error("$args[0] : $?");
sql-ledger-3.2.6/SL/AM.pm-2076-
##############################################
sql-ledger-3.2.6/SL/AM.pm-2222-	      VALUES ('$uid', (SELECT id FROM employee
sql-ledger-3.2.6/SL/AM.pm:2223:			       WHERE login = '$form->{login}'), '$curr')|;
sql-ledger-3.2.6/SL/AM.pm-2224-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2226-  $query = qq|SELECT id FROM gl
sql-ledger-3.2.6/SL/AM.pm:2227:	      WHERE reference = '$uid'|;
sql-ledger-3.2.6/SL/AM.pm-2228-  ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2238-	      exchangerate = 1
sql-ledger-3.2.6/SL/AM.pm:2239:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2240-
##############################################
sql-ledger-3.2.6/SL/AM.pm-2265-		                 FROM chart
sql-ledger-3.2.6/SL/AM.pm:2266:				 WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/AM.pm-2267-		   $amount, '$form->{transdate}', |
##############################################
sql-ledger-3.2.6/SL/AM.pm-2306-                 FROM employee
sql-ledger-3.2.6/SL/AM.pm:2307:		 WHERE login = '$login'|;
sql-ledger-3.2.6/SL/AM.pm-2308-  ($form->{username}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2376-	      LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/AM.pm:2377:	      WHERE c.id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2378-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2403-  my $query = qq|SELECT id FROM bank
sql-ledger-3.2.6/SL/AM.pm:2404:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2405-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2409-              closed = '$form->{closed}'
sql-ledger-3.2.6/SL/AM.pm:2410:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2411-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2433-		  dcn = |.$dbh->quote($form->{dcn}).qq|
sql-ledger-3.2.6/SL/AM.pm:2434:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2435-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2451-                  FROM bank
sql-ledger-3.2.6/SL/AM.pm:2452:		  WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2453-      ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2466-		country = |.$dbh->quote(uc $form->{country}).qq|
sql-ledger-3.2.6/SL/AM.pm:2467:		WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2468-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2477-    $query = qq|DELETE FROM bank
sql-ledger-3.2.6/SL/AM.pm:2478:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2479-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2481-    $query = qq|DELETE FROM address
sql-ledger-3.2.6/SL/AM.pm:2482:                WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-2483-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2554-  
sql-ledger-3.2.6/SL/AM.pm:2555:  $where .= " AND transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/AM.pm:2556:  $where .= " AND transdate <= '$form->{transdateto}'" if $form->{transdateto};   
sql-ledger-3.2.6/SL/AM.pm:2557:  $where .= " AND curr = '$form->{currency}'" if $form->{currency};
sql-ledger-3.2.6/SL/AM.pm-2558-
##############################################
sql-ledger-3.2.6/SL/AM.pm-2667-              FROM employee
sql-ledger-3.2.6/SL/AM.pm:2668:	      WHERE login = '$login'|;
sql-ledger-3.2.6/SL/AM.pm-2669-  ($form->{name}, $form->{email}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2709-  my $query = qq|SELECT * FROM curr
sql-ledger-3.2.6/SL/AM.pm:2710:	         WHERE curr = |.$dbh->quote($form->{curr});
sql-ledger-3.2.6/SL/AM.pm-2711-  my $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2717-
sql-ledger-3.2.6/SL/AM.pm:2718:  $query = qq|SELECT DISTINCT curr FROM ar WHERE curr = '$form->{curr}'
sql-ledger-3.2.6/SL/AM.pm:2719:        UNION SELECT DISTINCT curr FROM ap WHERE curr = '$form->{curr}'
sql-ledger-3.2.6/SL/AM.pm:2720:	UNION SELECT DISTINCT curr FROM oe WHERE curr = '$form->{curr}'|;
sql-ledger-3.2.6/SL/AM.pm-2721-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2738-	      FROM curr
sql-ledger-3.2.6/SL/AM.pm:2739:	      WHERE curr = '$form->{curr}'|;
sql-ledger-3.2.6/SL/AM.pm-2740-  my ($curr) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2756-	      prec = $form->{prec}
sql-ledger-3.2.6/SL/AM.pm:2757:	      WHERE curr = '$form->{curr}'|;
sql-ledger-3.2.6/SL/AM.pm-2758-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2781-  my $query = qq|SELECT rn FROM curr
sql-ledger-3.2.6/SL/AM.pm:2782:                 WHERE curr = |.$dbh->quote($form->{curr});
sql-ledger-3.2.6/SL/AM.pm-2783-  my ($rn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2789-  $query = qq|DELETE FROM curr
sql-ledger-3.2.6/SL/AM.pm:2790:	      WHERE curr = |.$dbh->quote($form->{curr});
sql-ledger-3.2.6/SL/AM.pm-2791-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2958-  my $query = qq|SELECT rn FROM $form->{db}
sql-ledger-3.2.6/SL/AM.pm:2959:                 WHERE $form->{fld} = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-2960-  my ($rn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2974-      $query = qq|UPDATE $form->{db} SET rn = $firstrn
sql-ledger-3.2.6/SL/AM.pm:2975:		  WHERE $form->{fld} = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-2976-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2978-      $query = qq|SELECT $form->{fld} FROM $form->{db}
sql-ledger-3.2.6/SL/AM.pm:2979:		  WHERE rn = $rn + 1|;
sql-ledger-3.2.6/SL/AM.pm-2980-      ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2982-      $query = qq|UPDATE $form->{db} SET rn = $rn + 1
sql-ledger-3.2.6/SL/AM.pm:2983:		  WHERE $form->{fld} = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-2984-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2986-      $query = qq|UPDATE $form->{db} SET rn = $rn
sql-ledger-3.2.6/SL/AM.pm:2987:		  WHERE $form->{fld} = '$id'|;
sql-ledger-3.2.6/SL/AM.pm-2988-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-2999-      $query = qq|UPDATE $form->{db} SET rn = $lastrn
sql-ledger-3.2.6/SL/AM.pm:3000:		  WHERE $form->{fld} = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-3001-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3003-      $query = qq|SELECT $form->{fld} FROM $form->{db}
sql-ledger-3.2.6/SL/AM.pm:3004:		  WHERE rn = $rn - 1|;
sql-ledger-3.2.6/SL/AM.pm-3005-      ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3007-      $query = qq|UPDATE $form->{db} SET rn = $rn - 1
sql-ledger-3.2.6/SL/AM.pm:3008:		  WHERE $form->{fld} = '$form->{id}'|;
sql-ledger-3.2.6/SL/AM.pm-3009-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3011-      $query = qq|UPDATE $form->{db} SET rn = $rn
sql-ledger-3.2.6/SL/AM.pm:3012:		  WHERE $form->{fld} = '$id'|;
sql-ledger-3.2.6/SL/AM.pm-3013-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3060-  my $query = qq|SELECT * FROM acsrole
sql-ledger-3.2.6/SL/AM.pm:3061:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3062-  my $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3070-  $query = qq|SELECT * FROM employee
sql-ledger-3.2.6/SL/AM.pm:3071:              WHERE acsrole_id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3072-  ($form->{orphaned}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3088-                FROM acsrole
sql-ledger-3.2.6/SL/AM.pm:3089:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3090-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3107-                FROM acsrole
sql-ledger-3.2.6/SL/AM.pm:3108:		WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/AM.pm-3109-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3141-	      acs = '$acs'
sql-ledger-3.2.6/SL/AM.pm:3142:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3143-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3161-  my $query = qq|SELECT rn FROM acsrole
sql-ledger-3.2.6/SL/AM.pm:3162:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3163-  my ($rn) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3169-  $query = qq|DELETE FROM acsrole
sql-ledger-3.2.6/SL/AM.pm:3170:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/AM.pm-3171-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/AM.pm-3333-    (undef, $id) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/AM.pm:3334:    $where .= qq| AND a.employee_id = $id|;
sql-ledger-3.2.6/SL/AM.pm-3335-  }
sql-ledger-3.2.6/SL/AM.pm-3336-  if ($form->{transdatefrom}) {
sql-ledger-3.2.6/SL/AM.pm:3337:    $where .= qq| AND a.transdate >= '$form->{transdatefrom}'|;
sql-ledger-3.2.6/SL/AM.pm-3338-  }
sql-ledger-3.2.6/SL/AM.pm-3339-  if ($form->{transdateto}) {
sql-ledger-3.2.6/SL/AM.pm:3340:    $where .= qq| AND a.transdate < date '$form->{transdateto}' + 1|;
sql-ledger-3.2.6/SL/AM.pm-3341-  }
sql-ledger-3.2.6/SL/AM.pm-3342-  if ($form->{logaction}) {
sql-ledger-3.2.6/SL/AM.pm:3343:    $where .= qq| AND a.action = |.$dbh->quote($form->{logaction});
sql-ledger-3.2.6/SL/AM.pm-3344-  }
##############################################
sql-ledger-3.2.6/SL/AM.pm-3347-    $var = $form->like(lc $form->{reference});
sql-ledger-3.2.6/SL/AM.pm:3348:    $where .= qq| AND lower(a.reference) LIKE '$var'|;
sql-ledger-3.2.6/SL/AM.pm-3349-  }
##############################################
sql-ledger-3.2.6/SL/BP.pm-214-		  JOIN status s ON (s.trans_id = j.id)
sql-ledger-3.2.6/SL/BP.pm:215:		  WHERE s.formname = '$form->{type}'
sql-ledger-3.2.6/SL/BP.pm-216-		  AND s.spoolfile IS NOT NULL
##############################################
sql-ledger-3.2.6/SL/BP.pm-222-	unless ($form->{open} && $form->{closed}) {
sql-ledger-3.2.6/SL/BP.pm:223:	  $where .= " AND j.qty != j.allocated" if $form->{open};
sql-ledger-3.2.6/SL/BP.pm:224:	  $where .= " AND j.qty = j.allocated" if $form->{closed};
sql-ledger-3.2.6/SL/BP.pm-225-	}
##############################################
sql-ledger-3.2.6/SL/BP.pm-234-	  
sql-ledger-3.2.6/SL/BP.pm:235:	  $where .= " AND $not j.id IN (SELECT s.trans_id
sql-ledger-3.2.6/SL/BP.pm-236-					FROM status s
##############################################
sql-ledger-3.2.6/SL/BP.pm-291-	$invoice = "'0'";
sql-ledger-3.2.6/SL/BP.pm:292:	$where .= ($form->{type} =~ /_quotation/) ? " AND a.quotation = '1'" : " AND a.quotation = '0'";
sql-ledger-3.2.6/SL/BP.pm-293-      }
##############################################
sql-ledger-3.2.6/SL/BP.pm-305-	  ($var, $paymentmethod_id) = split /--/, $form->{paymentmethod};
sql-ledger-3.2.6/SL/BP.pm:306:	  $where .= qq| AND a.paymentmethod_id = $paymentmethod_id|;
sql-ledger-3.2.6/SL/BP.pm-307-	}
##############################################
sql-ledger-3.2.6/SL/BP.pm-338-	  } elsif (!($form->{open} && $form->{closed})) {
sql-ledger-3.2.6/SL/BP.pm:339:	    $where .= ($form->{open}) ? " AND a.closed = '0'" : " AND a.closed = '1'";
sql-ledger-3.2.6/SL/BP.pm-340-	  }
##############################################
sql-ledger-3.2.6/SL/BP.pm-344-	    unless ($form->{open} && $form->{closed}) {
sql-ledger-3.2.6/SL/BP.pm:345:	      $where .= " AND a.amount != a.paid" if ($form->{open});
sql-ledger-3.2.6/SL/BP.pm:346:	      $where .= " AND a.amount = a.paid" if ($form->{closed});
sql-ledger-3.2.6/SL/BP.pm-347-	    }
##############################################
sql-ledger-3.2.6/SL/BP.pm-451-                FROM status s
sql-ledger-3.2.6/SL/BP.pm:452:                WHERE s.formname = '$form->{type}'
sql-ledger-3.2.6/SL/BP.pm-453-                AND s.spoolfile IS NOT NULL
##############################################
sql-ledger-3.2.6/SL/RP.pm-24-  my $query = qq|SELECT trans_id FROM yearend
sql-ledger-3.2.6/SL/RP.pm:25:                 WHERE transdate >= '$form->{todate}'|;
sql-ledger-3.2.6/SL/RP.pm-26-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/RP.pm-474-    if ($form->{method} eq 'cash') {
sql-ledger-3.2.6/SL/RP.pm:475:      $subwhere .= " AND ac.transdate >= '$fromdate'";
sql-ledger-3.2.6/SL/RP.pm:476:      $glwhere = " AND ac.transdate >= '$fromdate'";
sql-ledger-3.2.6/SL/RP.pm-477-    } else {
sql-ledger-3.2.6/SL/RP.pm:478:      $where .= " AND ac.transdate >= '$fromdate'";
sql-ledger-3.2.6/SL/RP.pm-479-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-482-  if ($todate) {
sql-ledger-3.2.6/SL/RP.pm:483:    $where .= " AND ac.transdate <= '$todate'";
sql-ledger-3.2.6/SL/RP.pm:484:    $subwhere .= " AND ac.transdate <= '$todate'";
sql-ledger-3.2.6/SL/RP.pm:485:    $yearendwhere = "ac.transdate < '$todate'";
sql-ledger-3.2.6/SL/RP.pm-486-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-494-		 (SELECT trans_id FROM yearend
sql-ledger-3.2.6/SL/RP.pm:495:		  WHERE transdate <= '$todate')";
sql-ledger-3.2.6/SL/RP.pm-496-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-500-		 (SELECT trans_id FROM yearend
sql-ledger-3.2.6/SL/RP.pm:501:		  WHERE transdate >= '$fromdate')";
sql-ledger-3.2.6/SL/RP.pm-502-      if ($todate) {
##############################################
sql-ledger-3.2.6/SL/RP.pm-504-		   (SELECT trans_id FROM yearend
sql-ledger-3.2.6/SL/RP.pm:505:		    WHERE transdate >= '$fromdate'
sql-ledger-3.2.6/SL/RP.pm-506-		    AND transdate <= '$todate')";
##############################################
sql-ledger-3.2.6/SL/RP.pm-891-  my $where = "ac.approved = '1'";
sql-ledger-3.2.6/SL/RP.pm:892:  my $invwhere = $where;
sql-ledger-3.2.6/SL/RP.pm-893-  
##############################################
sql-ledger-3.2.6/SL/RP.pm-1011-    if ($form->{fromdate}) {
sql-ledger-3.2.6/SL/RP.pm:1012:      $where .= " AND ac.transdate >= '$form->{fromdate}'";
sql-ledger-3.2.6/SL/RP.pm:1013:      $invwhere .= " AND a.transdate >= '$form->{fromdate}'";
sql-ledger-3.2.6/SL/RP.pm-1014-    }
sql-ledger-3.2.6/SL/RP.pm-1015-    if ($form->{todate}) {
sql-ledger-3.2.6/SL/RP.pm:1016:      $where .= " AND ac.transdate <= '$form->{todate}'";
sql-ledger-3.2.6/SL/RP.pm:1017:      $invwhere .= " AND a.transdate <= '$form->{todate}'";
sql-ledger-3.2.6/SL/RP.pm-1018-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1225-  if ($form->{"$form->{vc}_id"}) {
sql-ledger-3.2.6/SL/RP.pm:1226:    $where .= qq| AND vc.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/RP.pm-1227-  } else {
##############################################
sql-ledger-3.2.6/SL/RP.pm-1229-      $name = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/RP.pm:1230:      $where .= qq| AND lower(vc.name) LIKE '$name'|;
sql-ledger-3.2.6/SL/RP.pm-1231-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1233-      $name = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/RP.pm:1234:      $where .= qq| AND lower(vc.$form->{vc}number) LIKE '$name'|;
sql-ledger-3.2.6/SL/RP.pm-1235-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1239-    (undef, $department_id) = split /--/, $form->{department};
sql-ledger-3.2.6/SL/RP.pm:1240:    $where .= qq| AND a.department_id = $department_id|;
sql-ledger-3.2.6/SL/RP.pm-1241-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1293-  if ($department_id) {
sql-ledger-3.2.6/SL/RP.pm:1294:    $where .= qq| AND a.department_id = $department_id|;
sql-ledger-3.2.6/SL/RP.pm-1295-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1450-  if ($vc_id) {
sql-ledger-3.2.6/SL/RP.pm:1451:    $where .= qq| AND vc.id = $vc_id|;
sql-ledger-3.2.6/SL/RP.pm-1452-  } else {
##############################################
sql-ledger-3.2.6/SL/RP.pm-1454-      $name = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/RP.pm:1455:      $where .= qq| AND lower(vc.name) LIKE '$name'|;
sql-ledger-3.2.6/SL/RP.pm-1456-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1458-      $name = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/RP.pm:1459:      $where .= qq| AND lower(vc.$form->{vc}number) LIKE '$name'|;
sql-ledger-3.2.6/SL/RP.pm-1460-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1464-    (undef, $department_id) = split /--/, $form->{department};
sql-ledger-3.2.6/SL/RP.pm:1465:    $where .= qq| AND a.department_id = $department_id|;
sql-ledger-3.2.6/SL/RP.pm-1466-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1507-  if ($department_id) {
sql-ledger-3.2.6/SL/RP.pm:1508:    $where .= qq| AND a.department_id = $department_id|;
sql-ledger-3.2.6/SL/RP.pm-1509-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1655-                 FROM $form->{vc} ct
sql-ledger-3.2.6/SL/RP.pm:1656:		 WHERE ct.id = $form->{"$form->{vc}_id"}|;
sql-ledger-3.2.6/SL/RP.pm-1657-  ($form->{$form->{vc}}, $form->{email}, $form->{cc}, $form->{bcc}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/RP.pm-1789-    if ($form->{fromdate}) {
sql-ledger-3.2.6/SL/RP.pm:1790:      $where .= " AND $transdate >= '$form->{fromdate}'";
sql-ledger-3.2.6/SL/RP.pm-1791-    }
sql-ledger-3.2.6/SL/RP.pm-1792-    if ($form->{todate}) {
sql-ledger-3.2.6/SL/RP.pm:1793:      $where .= " AND $transdate <= '$form->{todate}'";
sql-ledger-3.2.6/SL/RP.pm-1794-    }
##############################################
sql-ledger-3.2.6/SL/RP.pm-1863-              JOIN address ad ON (ad.trans_id = n.id)
sql-ledger-3.2.6/SL/RP.pm:1864:              WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-1865-              $accno
##############################################
sql-ledger-3.2.6/SL/RP.pm-1902-                i.sellprice * i.qty * $ml *
sql-ledger-3.2.6/SL/RP.pm:1903:                (SELECT tx.rate FROM tax tx WHERE tx.chart_id = ch.id AND (tx.validto > $transdate OR tx.validto IS NULL) ORDER BY tx.validto LIMIT 1) AS tax,
sql-ledger-3.2.6/SL/RP.pm-1904-                a.till, n.id AS vc_id, ch.accno
##############################################
sql-ledger-3.2.6/SL/RP.pm-1935-              JOIN address ad ON (ad.trans_id = n.id)
sql-ledger-3.2.6/SL/RP.pm:1936:              WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-1937-              $accno
##############################################
sql-ledger-3.2.6/SL/RP.pm-1949-              i.sellprice * i.qty * $ml *
sql-ledger-3.2.6/SL/RP.pm:1950:              (SELECT tx.rate FROM tax tx WHERE tx.chart_id = ch.id AND (tx.validto > $transdate OR tx.validto IS NULL) ORDER BY tx.validto LIMIT 1) AS tax,
sql-ledger-3.2.6/SL/RP.pm-1951-              a.till, n.id AS vc_id, ch.accno
##############################################
sql-ledger-3.2.6/SL/RP.pm-1959-              JOIN partstax pt ON (pt.parts_id = i.parts_id AND pt.chart_id = ch.id)
sql-ledger-3.2.6/SL/RP.pm:1960:              WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-1961-              $accno
##############################################
sql-ledger-3.2.6/SL/RP.pm-2001-                  JOIN address ad ON (ad.trans_id = n.id)
sql-ledger-3.2.6/SL/RP.pm:2002:                  WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-2003-                  AND a.netamount = a.amount
##############################################
sql-ledger-3.2.6/SL/RP.pm-2062-                  JOIN chart ch ON (ch.id = ac.chart_id)
sql-ledger-3.2.6/SL/RP.pm:2063:                  WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-2064-                  AND a.invoice = '0'
##############################################
sql-ledger-3.2.6/SL/RP.pm-2080-                  JOIN address ad ON (ad.trans_id = n.id)
sql-ledger-3.2.6/SL/RP.pm:2081:                  WHERE a.datepaid >= '$form->{fromdate}'
sql-ledger-3.2.6/SL/RP.pm-2082-                  AND a.invoice = '1'
##############################################
sql-ledger-3.2.6/SL/RP.pm-2190-  if ($form->{fromdate}) {
sql-ledger-3.2.6/SL/RP.pm:2191:    $where .= " AND ac.transdate >= '$form->{fromdate}'";
sql-ledger-3.2.6/SL/RP.pm-2192-  }
sql-ledger-3.2.6/SL/RP.pm-2193-  if ($form->{todate}) {
sql-ledger-3.2.6/SL/RP.pm:2194:    $where .= " AND ac.transdate <= '$form->{todate}'";
sql-ledger-3.2.6/SL/RP.pm-2195-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-2201-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/RP.pm:2202:    $where .= " AND lower(a.description) LIKE '$var'";
sql-ledger-3.2.6/SL/RP.pm-2203-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-2205-    $var = $form->like(lc $form->{source});
sql-ledger-3.2.6/SL/RP.pm:2206:    $where .= " AND lower(ac.source) LIKE '$var'";
sql-ledger-3.2.6/SL/RP.pm-2207-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-2209-    $var = $form->like(lc $form->{memo});
sql-ledger-3.2.6/SL/RP.pm:2210:    $where .= " AND lower(ac.memo) LIKE '$var'";
sql-ledger-3.2.6/SL/RP.pm-2211-  }
##############################################
sql-ledger-3.2.6/SL/RP.pm-2213-    $var = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/RP.pm:2214:    $where .= " AND lower(c.$form->{vc}number) LIKE '$var'";
sql-ledger-3.2.6/SL/RP.pm-2215-    $gl = 0;
##############################################
sql-ledger-3.2.6/SL/RP.pm-2218-    $var = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/RP.pm:2219:    $where .= " AND lower(c.name) LIKE '$var'";
sql-ledger-3.2.6/SL/RP.pm-2220-    $gl = 0;
##############################################
sql-ledger-3.2.6/SL/RP.pm-2229-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/RP.pm:2230:		WHERE c.accno = '$accno'|;
sql-ledger-3.2.6/SL/RP.pm-2231-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-41-    $var = $form->like(lc $form->{projectnumber});
sql-ledger-3.2.6/SL/PE.pm:42:    $where .= " AND lower(pr.projectnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-43-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-45-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/PE.pm:46:    $where .= " AND lower(pr.description) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-47-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-53-  if ($form->{startdatefrom}) {
sql-ledger-3.2.6/SL/PE.pm:54:    $where .= " AND (pr.startdate IS NULL OR pr.startdate >= '$form->{startdatefrom}')";
sql-ledger-3.2.6/SL/PE.pm-55-  }
sql-ledger-3.2.6/SL/PE.pm-56-  if ($form->{startdateto}) {
sql-ledger-3.2.6/SL/PE.pm:57:    $where .= " AND (pr.startdate IS NULL OR pr.startdate <= '$form->{startdateto}')";
sql-ledger-3.2.6/SL/PE.pm-58-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-120-
sql-ledger-3.2.6/SL/PE.pm:121:    $where = "WHERE pr.id = $form->{id}" if $form->{id};
sql-ledger-3.2.6/SL/PE.pm-122-    
##############################################
sql-ledger-3.2.6/SL/PE.pm-139-		FROM acc_trans
sql-ledger-3.2.6/SL/PE.pm:140:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-141-	     UNION
##############################################
sql-ledger-3.2.6/SL/PE.pm-143-		FROM invoice
sql-ledger-3.2.6/SL/PE.pm:144:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-145-	     UNION
##############################################
sql-ledger-3.2.6/SL/PE.pm-147-		FROM orderitems
sql-ledger-3.2.6/SL/PE.pm:148:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-149-	     UNION
##############################################
sql-ledger-3.2.6/SL/PE.pm-151-		FROM jcitems
sql-ledger-3.2.6/SL/PE.pm:152:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-153-	       |;
##############################################
sql-ledger-3.2.6/SL/PE.pm-183-    $query = qq|SELECT id FROM project
sql-ledger-3.2.6/SL/PE.pm:184:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-185-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-196-    $query = qq|SELECT id FROM project
sql-ledger-3.2.6/SL/PE.pm:197:                WHERE projectnumber = '$uid'|;
sql-ledger-3.2.6/SL/PE.pm-198-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-208-	      customer_id = $form->{customer_id}
sql-ledger-3.2.6/SL/PE.pm:209:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-210-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-239-    $var = $form->like(lc $form->{projectnumber});
sql-ledger-3.2.6/SL/PE.pm:240:    $where .= " AND lower(pr.projectnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-241-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-244-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/PE.pm:245:    $where .= " AND lower(pr.description) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-246-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-376-		LEFT JOIN partsgroup pg ON (pg.id = p.partsgroup_id)
sql-ledger-3.2.6/SL/PE.pm:377:		WHERE pr.id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-378-
##############################################
sql-ledger-3.2.6/SL/PE.pm-398-		FROM invoice
sql-ledger-3.2.6/SL/PE.pm:399:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-400-	     UNION
##############################################
sql-ledger-3.2.6/SL/PE.pm-402-		FROM orderitems
sql-ledger-3.2.6/SL/PE.pm:403:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-404-	     UNION
##############################################
sql-ledger-3.2.6/SL/PE.pm-406-		FROM jcitems
sql-ledger-3.2.6/SL/PE.pm:407:		WHERE project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm-408-	       |;
##############################################
sql-ledger-3.2.6/SL/PE.pm-448-		JOIN chart ch ON (pt.chart_id = ch.id)
sql-ledger-3.2.6/SL/PE.pm:449:		WHERE p.id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-450-		
##############################################
sql-ledger-3.2.6/SL/PE.pm-486-  
sql-ledger-3.2.6/SL/PE.pm:487:  my $where = qq|(startdate >= '$form->{startdate}' OR startdate IS NULL OR enddate IS NULL)|;
sql-ledger-3.2.6/SL/PE.pm-488-  
sql-ledger-3.2.6/SL/PE.pm-489-  if ($form->{enddate}) {
sql-ledger-3.2.6/SL/PE.pm:490:    $where .= qq| AND (enddate >= '$form->{enddate}' OR enddate IS NULL)|;
sql-ledger-3.2.6/SL/PE.pm-491-  } else {
##############################################
sql-ledger-3.2.6/SL/PE.pm-508-		FROM customer
sql-ledger-3.2.6/SL/PE.pm:509:		WHERE id = $form->{customer_id}|;
sql-ledger-3.2.6/SL/PE.pm-510-    }
##############################################
sql-ledger-3.2.6/SL/PE.pm-540-    $query = qq|SELECT id FROM project
sql-ledger-3.2.6/SL/PE.pm:541:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-542-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-553-    $query = qq|SELECT id FROM project
sql-ledger-3.2.6/SL/PE.pm:554:                WHERE projectnumber = '$uid'|;
sql-ledger-3.2.6/SL/PE.pm-555-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-567-	      customer_id = $form->{customer_id}
sql-ledger-3.2.6/SL/PE.pm:568:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-569-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-573-  $query = qq|SELECT id FROM parts
sql-ledger-3.2.6/SL/PE.pm:574:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-575-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-595-	      income_accno_id = (SELECT id FROM chart
sql-ledger-3.2.6/SL/PE.pm:596:	                         WHERE accno = '$income_accno'),
sql-ledger-3.2.6/SL/PE.pm-597-	      partsgroup_id = $partsgroup_id,
##############################################
sql-ledger-3.2.6/SL/PE.pm-600-	      project_id = $form->{id}
sql-ledger-3.2.6/SL/PE.pm:601:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-602-
##############################################
sql-ledger-3.2.6/SL/PE.pm-605-  $query = qq|DELETE FROM partstax
sql-ledger-3.2.6/SL/PE.pm:606:              WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-607-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-614-			   FROM chart
sql-ledger-3.2.6/SL/PE.pm:615:			   WHERE accno = '$_'))|;
sql-ledger-3.2.6/SL/PE.pm-616-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-725-                  FROM parts
sql-ledger-3.2.6/SL/PE.pm:726:                  WHERE partnumber = '$uid'|;
sql-ledger-3.2.6/SL/PE.pm-727-      ($uid) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-751-		  project_id = $form->{"id_$i"}
sql-ledger-3.2.6/SL/PE.pm:752:		  WHERE id = $uid|;
sql-ledger-3.2.6/SL/PE.pm-753-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-756-                  SELECT '$uid', chart_id FROM partstax
sql-ledger-3.2.6/SL/PE.pm:757:		  WHERE parts_id = $pref->{id}|;
sql-ledger-3.2.6/SL/PE.pm-758-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-809-  $query = qq|DELETE FROM project
sql-ledger-3.2.6/SL/PE.pm:810:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-811-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-813-  $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/PE.pm:814:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-815-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-835-  $query = qq|DELETE FROM partsgroup
sql-ledger-3.2.6/SL/PE.pm:836:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-837-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-839-  $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/PE.pm:840:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-841-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-859-  $query = qq|DELETE FROM pricegroup
sql-ledger-3.2.6/SL/PE.pm:860:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-861-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-887-  my $query = qq|DELETE FROM project
sql-ledger-3.2.6/SL/PE.pm:888:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-889-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-891-  $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/PE.pm:892:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-893-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-898-              (SELECT id FROM parts
sql-ledger-3.2.6/SL/PE.pm:899:               WHERE project_id = $form->{id})|;
sql-ledger-3.2.6/SL/PE.pm-900-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-902-  $query = qq|DELETE FROM parts
sql-ledger-3.2.6/SL/PE.pm:903:	      WHERE project_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-904-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-935-    $var = $form->like(lc $form->{partsgroup});
sql-ledger-3.2.6/SL/PE.pm:936:    $where .= " AND lower(g.partsgroup) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-937-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-939-    $var = $form->like(lc $form->{partsgroupcode});
sql-ledger-3.2.6/SL/PE.pm:940:    $where .= " AND lower(g.code) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-941-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-992-		pos = '$form->{pos}'
sql-ledger-3.2.6/SL/PE.pm:993:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-994-  } else {
##############################################
sql-ledger-3.2.6/SL/PE.pm-1018-                 FROM partsgroup
sql-ledger-3.2.6/SL/PE.pm:1019:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1020-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1031-              FROM parts
sql-ledger-3.2.6/SL/PE.pm:1032:	      WHERE partsgroup_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1033-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1065-    $var = $form->like(lc $form->{pricegroup});
sql-ledger-3.2.6/SL/PE.pm:1066:    $where .= " AND lower(g.pricegroup) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-1067-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1108-                pricegroup = |.$dbh->quote($form->{pricegroup}).qq|
sql-ledger-3.2.6/SL/PE.pm:1109:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1110-  } else {
##############################################
sql-ledger-3.2.6/SL/PE.pm-1131-                 FROM pricegroup
sql-ledger-3.2.6/SL/PE.pm:1132:	         WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1133-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1144-              FROM partscustomer
sql-ledger-3.2.6/SL/PE.pm:1145:	      WHERE pricegroup_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1146-  $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1170-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/PE.pm:1171:      $where .= " AND lower(p.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-1172-    }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1175-  $where .= " AND p.obsolete = '0'";
sql-ledger-3.2.6/SL/PE.pm:1176:  $where .= " AND p.id = $form->{id}" if $form->{id};
sql-ledger-3.2.6/SL/PE.pm-1177-
##############################################
sql-ledger-3.2.6/SL/PE.pm-1239-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/PE.pm:1240:    $where .= " AND lower(p.partsgroup) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-1241-  }
sql-ledger-3.2.6/SL/PE.pm:1242:  $where .= " AND p.id = $form->{id}" if $form->{id};
sql-ledger-3.2.6/SL/PE.pm-1243-  
##############################################
sql-ledger-3.2.6/SL/PE.pm-1300-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/PE.pm:1301:      $where .= " AND lower(p.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-1302-    }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1304-  
sql-ledger-3.2.6/SL/PE.pm:1305:  $where .= " AND p.id = $form->{id}" if $form->{id};
sql-ledger-3.2.6/SL/PE.pm-1306-
##############################################
sql-ledger-3.2.6/SL/PE.pm-1369-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/PE.pm:1370:      $where .= " AND lower(c.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/PE.pm-1371-    }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1373-  
sql-ledger-3.2.6/SL/PE.pm:1374:  $where .= " AND c.id = $form->{id}" if $form->{id};
sql-ledger-3.2.6/SL/PE.pm-1375-
##############################################
sql-ledger-3.2.6/SL/PE.pm-1436-  my $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/PE.pm:1437:                 WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1438-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1464-  my $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/PE.pm:1465:  	         WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/PE.pm-1466-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/PE.pm-1507-    (undef, $var) = split /--/, $form->{projectnumber};
sql-ledger-3.2.6/SL/PE.pm:1508:    $where .= " AND j.project_id = $var";
sql-ledger-3.2.6/SL/PE.pm-1509-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1512-    (undef, $var) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/PE.pm:1513:    $where .= " AND j.employee_id = $var";
sql-ledger-3.2.6/SL/PE.pm-1514-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1520-  if ($form->{transdatefrom}) {
sql-ledger-3.2.6/SL/PE.pm:1521:    $where .= " AND j.checkedin >= '$form->{transdatefrom}'";
sql-ledger-3.2.6/SL/PE.pm-1522-  }
sql-ledger-3.2.6/SL/PE.pm-1523-  if ($form->{transdateto}) {
sql-ledger-3.2.6/SL/PE.pm:1524:    $where .= " AND j.checkedout <= (date '$form->{transdateto}' + interval '1 days')";
sql-ledger-3.2.6/SL/PE.pm-1525-  }
##############################################
sql-ledger-3.2.6/SL/PE.pm-1583-  if ($form->{transdateto}) {
sql-ledger-3.2.6/SL/PE.pm:1584:    $where = "WHERE t.validto >= '$form->{transdateto}' OR t.validto IS NULL";
sql-ledger-3.2.6/SL/PE.pm-1585-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-35-		FROM acc_trans
sql-ledger-3.2.6/SL/GL.pm:36:		WHERE trans_id = $form->{id}
sql-ledger-3.2.6/SL/GL.pm-37-		AND amount < 0|;
##############################################
sql-ledger-3.2.6/SL/GL.pm-46-    
sql-ledger-3.2.6/SL/GL.pm:47:    $query = qq|DELETE FROM vr WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-48-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-50-  
sql-ledger-3.2.6/SL/GL.pm:51:  $query = qq|DELETE FROM gl WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-52-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-54-  $query = qq|SELECT trans_id FROM pay_trans
sql-ledger-3.2.6/SL/GL.pm:55:              WHERE glid = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-56-  ($form->{apid}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-61-      if ($form->{$id} *= 1) {
sql-ledger-3.2.6/SL/GL.pm:62:	$query = qq|DELETE FROM $_ WHERE trans_id = $form->{$id}|;
sql-ledger-3.2.6/SL/GL.pm-63-	$dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-68-  for (qw(recurring recurringemail recurringprint)) {
sql-ledger-3.2.6/SL/GL.pm:69:    $query = qq|DELETE FROM $_ WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-70-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-114-      $query = qq|SELECT * FROM vr
sql-ledger-3.2.6/SL/GL.pm:115:		  WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-116-      $sth = $dbh->prepare($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-135-      $query = qq|DELETE FROM vr
sql-ledger-3.2.6/SL/GL.pm:136:                  WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-137-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-141-    $query = qq|SELECT id FROM gl
sql-ledger-3.2.6/SL/GL.pm:142:                WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-143-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-147-      for (qw(acc_trans dpt_trans)) {
sql-ledger-3.2.6/SL/GL.pm:148:	$query = qq|DELETE FROM $_ WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-149-	$dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-160-                VALUES ('$uid', (SELECT id FROM employee
sql-ledger-3.2.6/SL/GL.pm:161:		                 WHERE login = '$form->{login}'),
sql-ledger-3.2.6/SL/GL.pm-162-		'$approved')|;
##############################################
sql-ledger-3.2.6/SL/GL.pm-165-    $query = qq|SELECT id FROM gl
sql-ledger-3.2.6/SL/GL.pm:166:                WHERE reference = '$uid'|;
sql-ledger-3.2.6/SL/GL.pm-167-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-186-	      exchangerate = $form->{exchangerate}
sql-ledger-3.2.6/SL/GL.pm:187:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-188-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-241-				 FROM chart
sql-ledger-3.2.6/SL/GL.pm:242:				 WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/GL.pm-243-		   $amount, '$form->{transdate}', |.
##############################################
sql-ledger-3.2.6/SL/GL.pm-259-									 FROM chart
sql-ledger-3.2.6/SL/GL.pm:260:									 WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/GL.pm-261-								 $amount, '$form->{transdate}', |.
##############################################
sql-ledger-3.2.6/SL/GL.pm-332-    $var = $form->like(lc $form->{reference});
sql-ledger-3.2.6/SL/GL.pm:333:    $glwhere .= " AND lower(g.reference) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:334:    $arwhere .= " AND lower(a.invnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:335:    $apwhere .= " AND lower(a.invnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-336-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-338-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/GL.pm:339:    $glwhere .= " AND lower(g.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:340:    $arwhere .= " AND lower(a.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:341:    $apwhere .= " AND lower(a.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-342-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-344-    $var = $form->like(lc $form->{name});
sql-ledger-3.2.6/SL/GL.pm:345:    $glwhere .= " AND lower(g.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:346:    $arwhere .= " AND lower(ct.name) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:347:    $apwhere .= " AND lower(ct.name) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-348-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-351-    $glwhere .= " AND g.id = 0";
sql-ledger-3.2.6/SL/GL.pm:352:    $arwhere .= " AND lower(ct.customernumber) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:353:    $apwhere .= " AND lower(ct.vendornumber) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-354-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-356-    (undef, $var) = split /--/, $form->{department};
sql-ledger-3.2.6/SL/GL.pm:357:    $glwhere .= " AND g.department_id = $var";
sql-ledger-3.2.6/SL/GL.pm:358:    $arwhere .= " AND a.department_id = $var";
sql-ledger-3.2.6/SL/GL.pm:359:    $apwhere .= " AND a.department_id = $var";
sql-ledger-3.2.6/SL/GL.pm-360-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-367-    $var = $form->like(lc $form->{lineitem});
sql-ledger-3.2.6/SL/GL.pm:368:    $glwhere .= " AND lower(ac.memo) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:369:    $arwhere .= " AND lower(i.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:370:    $apwhere .= " AND lower(i.description) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-371-
##############################################
sql-ledger-3.2.6/SL/GL.pm-386-    $var = $form->like(lc $form->{source});
sql-ledger-3.2.6/SL/GL.pm:387:    $glwhere .= " AND lower(ac.source) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:388:    $arwhere .= " AND lower(ac.source) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:389:    $apwhere .= " AND lower(ac.source) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-390-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-398-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/GL.pm:399:		WHERE c.accno = '$form->{accnofrom}'|;
sql-ledger-3.2.6/SL/GL.pm-400-    ($form->{accnofrom_description}, $form->{accnofrom_translation}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-402- 
sql-ledger-3.2.6/SL/GL.pm:403:    $where = " AND c.accno >= '$form->{accnofrom}'";
sql-ledger-3.2.6/SL/GL.pm:404:    $glwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm:405:    $arwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm:406:    $apwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm-407-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-413-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/GL.pm:414:		WHERE c.accno = '$form->{accnoto}'|;
sql-ledger-3.2.6/SL/GL.pm-415-    ($form->{accnoto_description}, $form->{accnoto_translation}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-417- 
sql-ledger-3.2.6/SL/GL.pm:418:    $where = " AND c.accno <= '$form->{accnoto}'";
sql-ledger-3.2.6/SL/GL.pm:419:    $glwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm:420:    $arwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm:421:    $apwhere .= $where;
sql-ledger-3.2.6/SL/GL.pm-422-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-425-    $var = $form->like(lc $form->{memo});
sql-ledger-3.2.6/SL/GL.pm:426:    $glwhere .= " AND lower(ac.memo) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:427:    $arwhere .= " AND lower(ac.memo) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:428:    $apwhere .= " AND lower(ac.memo) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-429-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-435-  if ($form->{datefrom}) {
sql-ledger-3.2.6/SL/GL.pm:436:    $glwhere .= " AND ac.transdate >= '$form->{datefrom}'";
sql-ledger-3.2.6/SL/GL.pm:437:    $arwhere .= " AND ac.transdate >= '$form->{datefrom}'";
sql-ledger-3.2.6/SL/GL.pm:438:    $apwhere .= " AND ac.transdate >= '$form->{datefrom}'";
sql-ledger-3.2.6/SL/GL.pm-439-  }
sql-ledger-3.2.6/SL/GL.pm-440-  if ($form->{dateto}) {
sql-ledger-3.2.6/SL/GL.pm:441:    $glwhere .= " AND ac.transdate <= '$form->{dateto}'";
sql-ledger-3.2.6/SL/GL.pm:442:    $arwhere .= " AND ac.transdate <= '$form->{dateto}'";
sql-ledger-3.2.6/SL/GL.pm:443:    $apwhere .= " AND ac.transdate <= '$form->{dateto}'";
sql-ledger-3.2.6/SL/GL.pm-444-  }
sql-ledger-3.2.6/SL/GL.pm-445-  if ($form->{amountfrom}) {
sql-ledger-3.2.6/SL/GL.pm:446:    $glwhere .= " AND abs(ac.amount) >= $form->{amountfrom}";
sql-ledger-3.2.6/SL/GL.pm:447:    $arwhere .= " AND abs(ac.amount) >= $form->{amountfrom}";
sql-ledger-3.2.6/SL/GL.pm:448:    $apwhere .= " AND abs(ac.amount) >= $form->{amountfrom}";
sql-ledger-3.2.6/SL/GL.pm-449-  }
sql-ledger-3.2.6/SL/GL.pm-450-  if ($form->{amountto}) {
sql-ledger-3.2.6/SL/GL.pm:451:    $glwhere .= " AND abs(ac.amount) <= $form->{amountto}";
sql-ledger-3.2.6/SL/GL.pm:452:    $arwhere .= " AND abs(ac.amount) <= $form->{amountto}";
sql-ledger-3.2.6/SL/GL.pm:453:    $apwhere .= " AND abs(ac.amount) <= $form->{amountto}";
sql-ledger-3.2.6/SL/GL.pm-454-  }
##############################################
sql-ledger-3.2.6/SL/GL.pm-456-    $var = $form->like(lc $form->{notes});
sql-ledger-3.2.6/SL/GL.pm:457:    $glwhere .= " AND lower(g.notes) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:458:    $arwhere .= " AND lower(a.notes) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm:459:    $apwhere .= " AND lower(a.notes) LIKE '$var'";
sql-ledger-3.2.6/SL/GL.pm-460-  }
sql-ledger-3.2.6/SL/GL.pm-461-  if ($form->{accno}) {
sql-ledger-3.2.6/SL/GL.pm:462:    $glwhere .= " AND c.accno = '$form->{accno}'";
sql-ledger-3.2.6/SL/GL.pm:463:    $arwhere .= " AND c.accno = '$form->{accno}'";
sql-ledger-3.2.6/SL/GL.pm:464:    $apwhere .= " AND c.accno = '$form->{accno}'";
sql-ledger-3.2.6/SL/GL.pm-465-  }
sql-ledger-3.2.6/SL/GL.pm-466-  if ($form->{gifi_accno}) {
sql-ledger-3.2.6/SL/GL.pm:467:    $glwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
sql-ledger-3.2.6/SL/GL.pm:468:    $arwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
sql-ledger-3.2.6/SL/GL.pm:469:    $apwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
sql-ledger-3.2.6/SL/GL.pm-470-  }
sql-ledger-3.2.6/SL/GL.pm-471-  if ($form->{category} ne 'X') {
sql-ledger-3.2.6/SL/GL.pm:472:    $glwhere .= " AND c.category = '$form->{category}'";
sql-ledger-3.2.6/SL/GL.pm:473:    $arwhere .= " AND c.category = '$form->{category}'";
sql-ledger-3.2.6/SL/GL.pm:474:    $apwhere .= " AND c.category = '$form->{category}'";
sql-ledger-3.2.6/SL/GL.pm-475-
##############################################
sql-ledger-3.2.6/SL/GL.pm-486-		  LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/GL.pm:487:		  WHERE c.accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/GL.pm-488-      ($form->{category}, $form->{link}, $form->{contra}, $form->{account_description}, $form->{account_translation}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-495-		  LEFT JOIN gifi g ON (g.accno = c.gifi_accno)
sql-ledger-3.2.6/SL/GL.pm:496:		  WHERE c.gifi_accno = '$form->{gifi_accno}'|;
sql-ledger-3.2.6/SL/GL.pm-497-      ($form->{category}, $form->{link}, $form->{contra}, $form->{gifi_account_description}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-500-    if ($form->{datefrom}) {
sql-ledger-3.2.6/SL/GL.pm:501:      $where = $glwhere;
sql-ledger-3.2.6/SL/GL.pm:502:      $where =~ s/(AND)??ac.transdate.*?(AND|$)//g;
sql-ledger-3.2.6/SL/GL.pm-503-      
##############################################
sql-ledger-3.2.6/SL/GL.pm-514-
sql-ledger-3.2.6/SL/GL.pm:515:      $where = $arwhere;
sql-ledger-3.2.6/SL/GL.pm:516:      $where =~ s/(AND)??ac.transdate.*?(AND|$)//g;
sql-ledger-3.2.6/SL/GL.pm-517-      
##############################################
sql-ledger-3.2.6/SL/GL.pm-530- 
sql-ledger-3.2.6/SL/GL.pm:531:      $where = $apwhere;
sql-ledger-3.2.6/SL/GL.pm:532:      $where =~ s/(AND)??ac.transdate.*?(AND|$)//g;
sql-ledger-3.2.6/SL/GL.pm-533-      
##############################################
sql-ledger-3.2.6/SL/GL.pm-816-		LEFT JOIN br ON (br.id = vr.br_id)
sql-ledger-3.2.6/SL/GL.pm:817:	        WHERE g.id = $form->{id}|;
sql-ledger-3.2.6/SL/GL.pm-818-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/GL.pm-832-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/GL.pm:833:	        WHERE ac.trans_id = $form->{id}
sql-ledger-3.2.6/SL/GL.pm-834-	        ORDER BY c.accno|;
##############################################
sql-ledger-3.2.6/SL/OP.pm-43-	      VALUES ('$uid', (SELECT id FROM employee
sql-ledger-3.2.6/SL/OP.pm:44:			     WHERE login = '$form->{login}'), '$approved')|;
sql-ledger-3.2.6/SL/OP.pm-45-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OP.pm-47-  $query = qq|SELECT id FROM $form->{arap}
sql-ledger-3.2.6/SL/OP.pm:48:	    WHERE invnumber = '$uid'|;
sql-ledger-3.2.6/SL/OP.pm-49-  ($uid) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/OP.pm-75-	      department_id = $department_id,
sql-ledger-3.2.6/SL/OP.pm:76:	      bank_id = (SELECT id FROM chart WHERE accno = '$paymentaccno')
sql-ledger-3.2.6/SL/OP.pm:77:	      WHERE id = $uid|;
sql-ledger-3.2.6/SL/OP.pm-78-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/OP.pm-85-	      VALUES ($uid, (SELECT id FROM chart
sql-ledger-3.2.6/SL/OP.pm:86:			     WHERE accno = '$accno'),
sql-ledger-3.2.6/SL/OP.pm-87-	      '$form->{datepaid}', $fxamount * $ml, '$approved', $voucherid)|;
##############################################
sql-ledger-3.2.6/SL/OP.pm-93-	      VALUES ($uid, (SELECT id FROM chart
sql-ledger-3.2.6/SL/OP.pm:94:			     WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/OP.pm-95-		'$form->{datepaid}', $amount * $ml * -1, |
##############################################
sql-ledger-3.2.6/SL/OP.pm-104-		VALUES ($uid, (SELECT id FROM chart
sql-ledger-3.2.6/SL/OP.pm:105:			       WHERE accno = '$paymentaccno'),
sql-ledger-3.2.6/SL/OP.pm-106-	        '$form->{datepaid}', ($fxamount - $amount) * $ml * -1,
##############################################
sql-ledger-3.2.6/SL/Form.pm-233-  my $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/Form.pm:234:		 WHERE reportid = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-235-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-269-    $query = qq|DELETE FROM reportvars
sql-ledger-3.2.6/SL/Form.pm:270:		WHERE reportid = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-271-    $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-1199-  if ($self->{format} eq 'ps') {
sql-ledger-3.2.6/SL/Form.pm:1200:    system("latex --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1201-    while ($self->rerun_latex) {
sql-ledger-3.2.6/SL/Form.pm:1202:      system("latex --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1203-      last if ++$r > 4;
##############################################
sql-ledger-3.2.6/SL/Form.pm-1208-    if ($self->{format} eq 'ps') {
sql-ledger-3.2.6/SL/Form.pm:1209:      system("dvips $self->{tmpfile} -o -q");
sql-ledger-3.2.6/SL/Form.pm-1210-      $self->error($self->cleanup."dvips : $!") if ($?);
##############################################
sql-ledger-3.2.6/SL/Form.pm-1217-    if ($dvipdf) {
sql-ledger-3.2.6/SL/Form.pm:1218:      system("latex --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1219-      while ($self->rerun_latex) {
sql-ledger-3.2.6/SL/Form.pm:1220:        system("latex --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1221-        last if ++$r > 4;
##############################################
sql-ledger-3.2.6/SL/Form.pm-1225-     
sql-ledger-3.2.6/SL/Form.pm:1226:      system("dvipdf $self->{tmpfile}");
sql-ledger-3.2.6/SL/Form.pm-1227-      $self->error($self->cleanup."dvipdf : $!") if ($?);
##############################################
sql-ledger-3.2.6/SL/Form.pm-1231-      $lt = ($xelatex) ? "xelatex" : "pdflatex";
sql-ledger-3.2.6/SL/Form.pm:1232:      system("$lt --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1233-      while ($self->rerun_latex) {
sql-ledger-3.2.6/SL/Form.pm:1234:        system("$lt --interaction=nonstopmode $self->{tmpfile} > $self->{errfile}");
sql-ledger-3.2.6/SL/Form.pm-1235-        last if ++$r > 4;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2231-  my $query = qq|SELECT curr FROM exchangerate
sql-ledger-3.2.6/SL/Form.pm:2232:                 WHERE curr = '$curr'
sql-ledger-3.2.6/SL/Form.pm-2233-                 AND transdate = '$transdate'
##############################################
sql-ledger-3.2.6/SL/Form.pm-2242-                SET exchangerate = $exchangerate
sql-ledger-3.2.6/SL/Form.pm:2243:                WHERE curr = '$curr'
sql-ledger-3.2.6/SL/Form.pm-2244-                AND transdate = '$transdate'|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2281-    my $query = qq|SELECT exchangerate FROM exchangerate
sql-ledger-3.2.6/SL/Form.pm:2282:		   WHERE curr = '$curr'
sql-ledger-3.2.6/SL/Form.pm-2283-		   AND transdate = '$transdate'|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2304-  $query = qq|SELECT exchangerate FROM exchangerate
sql-ledger-3.2.6/SL/Form.pm:2305:	      WHERE curr = '$currency'
sql-ledger-3.2.6/SL/Form.pm-2306-	      AND transdate = |.$self->dbquote($transdate, SQL_DATE);
##############################################
sql-ledger-3.2.6/SL/Form.pm-2309-  $query = qq|SELECT prec FROM curr
sql-ledger-3.2.6/SL/Form.pm:2310:              WHERE curr = '$currency'|;
sql-ledger-3.2.6/SL/Form.pm-2311-  ($self->{precision}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-2399-                 JOIN parts p ON (p.id = o.parts_id)
sql-ledger-3.2.6/SL/Form.pm:2400:                 WHERE trans_id = $id|;
sql-ledger-3.2.6/SL/Form.pm-2401-
##############################################
sql-ledger-3.2.6/SL/Form.pm-2448-  my $query = qq|SELECT name, id FROM employee 
sql-ledger-3.2.6/SL/Form.pm:2449:                 WHERE login = '$login'|;
sql-ledger-3.2.6/SL/Form.pm-2450-  my (@name) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-2466-  if ($transdate) {
sql-ledger-3.2.6/SL/Form.pm:2467:    $where .= qq| AND (ct.startdate IS NULL OR ct.startdate <= '$transdate')
sql-ledger-3.2.6/SL/Form.pm-2468-                  AND (ct.enddate IS NULL OR ct.enddate >= '$transdate')|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2479-    $var = $self->like(lc $self->{$table});
sql-ledger-3.2.6/SL/Form.pm:2480:    $where .= qq| AND lower(ct.name) LIKE '$var'|;
sql-ledger-3.2.6/SL/Form.pm-2481-  } else {
sql-ledger-3.2.6/SL/Form.pm-2482-    $var = $self->like(lc $self->{"${table}number"});
sql-ledger-3.2.6/SL/Form.pm:2483:    $where .= qq| AND lower(ct.${table}number) LIKE '$var'|;
sql-ledger-3.2.6/SL/Form.pm-2484-  }
##############################################
sql-ledger-3.2.6/SL/Form.pm-2644-  if ($transdate) {
sql-ledger-3.2.6/SL/Form.pm:2645:    $where .= qq| AND (vc.startdate IS NULL OR vc.startdate <= '$transdate')
sql-ledger-3.2.6/SL/Form.pm-2646-                  AND (vc.enddate IS NULL OR vc.enddate >= '$transdate')|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2664-		FROM $vc vc
sql-ledger-3.2.6/SL/Form.pm:2665:		WHERE vc.id = $self->{"${vc}_id"}
sql-ledger-3.2.6/SL/Form.pm-2666-		ORDER BY 2|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-2743-  if ($transdate) {
sql-ledger-3.2.6/SL/Form.pm:2744:    $where = qq| AND (t.validto >= '$transdate' OR t.validto IS NULL)|;
sql-ledger-3.2.6/SL/Form.pm-2745-  }
##############################################
sql-ledger-3.2.6/SL/Form.pm-3088-              FROM chart
sql-ledger-3.2.6/SL/Form.pm:3089:	      WHERE id = $self->{cashovershort_accno_id}
sql-ledger-3.2.6/SL/Form.pm-3090-              AND closed = '0'|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-3151-		LEFT JOIN paymentmethod pm ON (pm.id = a.paymentmethod_id)
sql-ledger-3.2.6/SL/Form.pm:3152:		WHERE a.id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3153-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3174-                FROM status s
sql-ledger-3.2.6/SL/Form.pm:3175:		WHERE s.trans_id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3176-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3202-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/Form.pm:3203:		WHERE ac.trans_id = $self->{id}
sql-ledger-3.2.6/SL/Form.pm-3204-		AND ac.fx_transaction = '0'
##############################################
sql-ledger-3.2.6/SL/Form.pm-3359-    $query = qq|SELECT id, login FROM semaphore
sql-ledger-3.2.6/SL/Form.pm:3360:		WHERE id = $id|;
sql-ledger-3.2.6/SL/Form.pm-3361-    my ($readonly, $login) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3365-      $query = qq|SELECT name FROM employee
sql-ledger-3.2.6/SL/Form.pm:3366:		  WHERE login = '$login'|;
sql-ledger-3.2.6/SL/Form.pm-3367-      ($self->{haslock}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3391-  my $query = qq|DELETE FROM semaphore
sql-ledger-3.2.6/SL/Form.pm:3392:	         WHERE login = '$self->{login}'|;
sql-ledger-3.2.6/SL/Form.pm-3393-  $query .= qq|
##############################################
sql-ledger-3.2.6/SL/Form.pm-3443-		LEFT JOIN department d ON (a.department_id = d.id)
sql-ledger-3.2.6/SL/Form.pm:3444:		WHERE a.id = $trans_id|;
sql-ledger-3.2.6/SL/Form.pm-3445-  } else {
##############################################
sql-ledger-3.2.6/SL/Form.pm-3687-    $query = qq|SELECT code FROM partsgroup
sql-ledger-3.2.6/SL/Form.pm:3688:                WHERE id = $id|;
sql-ledger-3.2.6/SL/Form.pm-3689-    ($self->{partsgroupcode}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3696-                  FROM partsgroup
sql-ledger-3.2.6/SL/Form.pm:3697:		  WHERE code = '$self->{partsgroupcode}'
sql-ledger-3.2.6/SL/Form.pm-3698-                  ORDER BY partsgroup|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-3815-  my $query = qq|DELETE FROM status
sql-ledger-3.2.6/SL/Form.pm:3816: 	         WHERE formname = '$self->{formname}'
sql-ledger-3.2.6/SL/Form.pm-3817-	         AND trans_id = $self->{id}|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-3842-  my $query = qq|DELETE FROM status
sql-ledger-3.2.6/SL/Form.pm:3843:		 WHERE trans_id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3844-  $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3900-		   LEFT JOIN archive a ON (a.id = r.archive_id)
sql-ledger-3.2.6/SL/Form.pm:3901:		   WHERE r.trans_id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3902-
##############################################
sql-ledger-3.2.6/SL/Form.pm-3930-  my $query = qq|SELECT bt FROM archivedata
sql-ledger-3.2.6/SL/Form.pm:3931:                 WHERE archive_id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3932-  my $sth = $dbh->prepare($query) || $self->error($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3946-	      JOIN archive a ON (r.archive_id = a.id)
sql-ledger-3.2.6/SL/Form.pm:3947:              WHERE r.archive_id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-3948-  ($self->{description}, $self->{filename}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3957-              FROM mimetype
sql-ledger-3.2.6/SL/Form.pm:3958:	      WHERE lower(extension) = '$self->{extension}'|;
sql-ledger-3.2.6/SL/Form.pm-3959-  ($self->{contenttype}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-3979-  my $sth;
sql-ledger-3.2.6/SL/Form.pm:3980:  my $where = qq| AND (login = '$login' OR login = '' OR login IS NULL)|;
sql-ledger-3.2.6/SL/Form.pm:3981:  $where .= qq| AND formname = '$formname'| if $formname;
sql-ledger-3.2.6/SL/Form.pm-3982-  
##############################################
sql-ledger-3.2.6/SL/Form.pm-3985-                FROM reference
sql-ledger-3.2.6/SL/Form.pm:3986:	        WHERE trans_id = $self->{id}
sql-ledger-3.2.6/SL/Form.pm-3987-		$where
##############################################
sql-ledger-3.2.6/SL/Form.pm-4000-    $query = qq|DELETE FROM reference
sql-ledger-3.2.6/SL/Form.pm:4001:		WHERE trans_id = $self->{id}
sql-ledger-3.2.6/SL/Form.pm-4002-		AND (login = '$login' OR login = '' OR login IS NULL)|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-4105-                 FROM reference
sql-ledger-3.2.6/SL/Form.pm:4106:	         WHERE trans_id = $self->{id}
sql-ledger-3.2.6/SL/Form.pm-4107-	         AND (login = '$login' OR login = '' OR login IS NULL)|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-4124-  $query = qq|DELETE FROM reference
sql-ledger-3.2.6/SL/Form.pm:4125:              WHERE trans_id = $self->{id}
sql-ledger-3.2.6/SL/Form.pm-4126-	      AND (login = '$login' OR login = '' OR login IS NULL)|;
##############################################
sql-ledger-3.2.6/SL/Form.pm-4142-	      LEFT JOIN recurringprint sp ON (s.id = sp.id)
sql-ledger-3.2.6/SL/Form.pm:4143:	      WHERE s.id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-4144-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4179-  for (qw(recurring recurringemail recurringprint)) {
sql-ledger-3.2.6/SL/Form.pm:4180:    $query = qq|DELETE FROM $_ WHERE id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-4181-    $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4322-                 intnotes = |.$dbh->quote($self->{intnotes}).qq|
sql-ledger-3.2.6/SL/Form.pm:4323:                 WHERE id = $self->{id}|;
sql-ledger-3.2.6/SL/Form.pm-4324-  $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4341-  my $query = qq|SELECT fldname FROM defaults
sql-ledger-3.2.6/SL/Form.pm:4342:                   WHERE fldname = '$fld'|;
sql-ledger-3.2.6/SL/Form.pm-4343-  $ini =~ s/;.*//g;
##############################################
sql-ledger-3.2.6/SL/Form.pm-4358-                  fldvalue = '$ini'
sql-ledger-3.2.6/SL/Form.pm:4359:                  WHERE fldname = '$fld'|;
sql-ledger-3.2.6/SL/Form.pm-4360-      $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4365-  $query = qq|SELECT fldvalue FROM defaults
sql-ledger-3.2.6/SL/Form.pm:4366:              WHERE fldname = '$fld' FOR UPDATE|;
sql-ledger-3.2.6/SL/Form.pm-4367-  ($_) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4480-              SET fldvalue = '$dbvar'
sql-ledger-3.2.6/SL/Form.pm:4481:	      WHERE fldname = '$fld'|;
sql-ledger-3.2.6/SL/Form.pm-4482-  $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4506-  my $query = qq|SELECT r.* FROM report r
sql-ledger-3.2.6/SL/Form.pm:4507:                 WHERE r.reportcode = |.$dbh->quote($self->{reportcode});
sql-ledger-3.2.6/SL/Form.pm-4508-
##############################################
sql-ledger-3.2.6/SL/Form.pm-4537-              JOIN report r ON (r.reportid = rv.reportid)
sql-ledger-3.2.6/SL/Form.pm:4538:              WHERE r.reportcode = |.$dbh->quote($self->{reportcode});
sql-ledger-3.2.6/SL/Form.pm-4539-	      
##############################################
sql-ledger-3.2.6/SL/Form.pm-4576-  my $query = qq|SELECT * FROM reportvars
sql-ledger-3.2.6/SL/Form.pm:4577:		 WHERE reportid = $self->{reportid}|;
sql-ledger-3.2.6/SL/Form.pm-4578-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4604-              FROM report
sql-ledger-3.2.6/SL/Form.pm:4605:	      WHERE reportid = $self->{reportid}|;
sql-ledger-3.2.6/SL/Form.pm-4606-	      
##############################################
sql-ledger-3.2.6/SL/Form.pm-4655-    $query = qq|DELETE FROM reportvars
sql-ledger-3.2.6/SL/Form.pm:4656:		WHERE reportid = '$self->{reportid}'|;
sql-ledger-3.2.6/SL/Form.pm-4657-    $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4659-    $query = qq|DELETE FROM report
sql-ledger-3.2.6/SL/Form.pm:4660:		WHERE reportid = '$self->{reportid}'|;
sql-ledger-3.2.6/SL/Form.pm-4661-    $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4677-      $query = qq|SELECT reportid FROM report
sql-ledger-3.2.6/SL/Form.pm:4678:		  WHERE reportdescription = '$uid'|;
sql-ledger-3.2.6/SL/Form.pm-4679-      ($self->{reportid}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/Form.pm-4685-		login = '$self->{reportlogin}'
sql-ledger-3.2.6/SL/Form.pm:4686:		WHERE reportid = $self->{reportid}|;
sql-ledger-3.2.6/SL/Form.pm-4687-    $dbh->do($query) || $self->dberror($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-50-                JOIN project pr ON (pr.id = j.project_id)
sql-ledger-3.2.6/SL/JC.pm:51:                WHERE j.id = $form->{id}|;
sql-ledger-3.2.6/SL/JC.pm-52-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-66-                FROM status s
sql-ledger-3.2.6/SL/JC.pm:67:                WHERE s.formname = '$form->{type}'
sql-ledger-3.2.6/SL/JC.pm-68-                AND s.trans_id = $form->{id}|;
##############################################
sql-ledger-3.2.6/SL/JC.pm-121-                FROM project
sql-ledger-3.2.6/SL/JC.pm:122:	        WHERE id = $form->{project_id}|;
sql-ledger-3.2.6/SL/JC.pm-123-    if ($dbh->selectrow_array($query)) {
##############################################
sql-ledger-3.2.6/SL/JC.pm-180-	       FROM project
sql-ledger-3.2.6/SL/JC.pm:181:	       WHERE id = $form->{project_id}|;
sql-ledger-3.2.6/SL/JC.pm-182-  }
##############################################
sql-ledger-3.2.6/SL/JC.pm-211-                 FROM project
sql-ledger-3.2.6/SL/JC.pm:212:		 WHERE id = $project_id|;
sql-ledger-3.2.6/SL/JC.pm-213-  ($form->{customer_id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-220-    $var = $form->like(lc $form->{partnumber});
sql-ledger-3.2.6/SL/JC.pm:221:    $where .= qq| AND lower(p.partnumber) LIKE '$var'|;
sql-ledger-3.2.6/SL/JC.pm-222-  }
##############################################
sql-ledger-3.2.6/SL/JC.pm-293-  my $query = qq|DELETE FROM jcitems
sql-ledger-3.2.6/SL/JC.pm:294:                 WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/JC.pm-295-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-298-  $query = qq|SELECT spoolfile FROM status
sql-ledger-3.2.6/SL/JC.pm:299:              WHERE formname = '$form->{type}'
sql-ledger-3.2.6/SL/JC.pm-300-	      AND trans_id = $form->{id}
##############################################
sql-ledger-3.2.6/SL/JC.pm-314-  $query = qq|DELETE FROM status
sql-ledger-3.2.6/SL/JC.pm:315:              WHERE formname = '$form->{type}'
sql-ledger-3.2.6/SL/JC.pm-316-	      AND trans_id = $form->{id}|;
##############################################
sql-ledger-3.2.6/SL/JC.pm-351-    (undef, $var) = split /--/, $form->{projectnumber};
sql-ledger-3.2.6/SL/JC.pm:352:    $where .= " AND j.project_id = $var";
sql-ledger-3.2.6/SL/JC.pm-353-
##############################################
sql-ledger-3.2.6/SL/JC.pm-355-                FROM project
sql-ledger-3.2.6/SL/JC.pm:356:		WHERE id = $var|;
sql-ledger-3.2.6/SL/JC.pm-357-    my ($job) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-361-    $var = $form->like(lc $form->{partnumber});
sql-ledger-3.2.6/SL/JC.pm:362:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/JC.pm-363-
##############################################
sql-ledger-3.2.6/SL/JC.pm-377-    (undef, $var) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/JC.pm:378:    $where .= " AND j.employee_id = $var";
sql-ledger-3.2.6/SL/JC.pm-379-  }
##############################################
sql-ledger-3.2.6/SL/JC.pm-381-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/JC.pm:382:    $where .= " AND lower(j.description) LIKE '$var'";
sql-ledger-3.2.6/SL/JC.pm-383-  }
##############################################
sql-ledger-3.2.6/SL/JC.pm-385-    $var = $form->like(lc $form->{notes});
sql-ledger-3.2.6/SL/JC.pm:386:    $where .= " AND lower(j.notes) LIKE '$var'";
sql-ledger-3.2.6/SL/JC.pm-387-  }
##############################################
sql-ledger-3.2.6/SL/JC.pm-390-    unless ($form->{open} && $form->{closed}) {
sql-ledger-3.2.6/SL/JC.pm:391:      $where .= " AND j.qty != j.allocated" if $form->{open};
sql-ledger-3.2.6/SL/JC.pm:392:      $where .= " AND j.qty = j.allocated" if $form->{closed};
sql-ledger-3.2.6/SL/JC.pm-393-    }
##############################################
sql-ledger-3.2.6/SL/JC.pm-399-  
sql-ledger-3.2.6/SL/JC.pm:400:  $where .= " AND j.checkedin >= '$form->{startdatefrom}'" if $form->{startdatefrom};
sql-ledger-3.2.6/SL/JC.pm:401:  $where .= " AND j.checkedout < date '$form->{startdateto}' + 1" if $form->{startdateto};
sql-ledger-3.2.6/SL/JC.pm-402-
##############################################
sql-ledger-3.2.6/SL/JC.pm-495-                JOIN jcitems j ON (j.project_id = pr.id)
sql-ledger-3.2.6/SL/JC.pm:496:                WHERE j.id = $form->{id}|;
sql-ledger-3.2.6/SL/JC.pm-497-    my ($job_id, $qty) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-507-                  FROM project pr
sql-ledger-3.2.6/SL/JC.pm:508:                  WHERE pr.id = $project_id|;
sql-ledger-3.2.6/SL/JC.pm-509-      my ($job_id, $qty) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-525-    $query = qq|SELECT id FROM jcitems
sql-ledger-3.2.6/SL/JC.pm:526:                WHERE description = '$uid'|;
sql-ledger-3.2.6/SL/JC.pm-527-    ($form->{id}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/JC.pm-558-              notes = |.$dbh->quote($form->{notes}).qq|
sql-ledger-3.2.6/SL/JC.pm:559:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/JC.pm-560-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/CA.pm-93-  my $query = qq|SELECT id FROM chart
sql-ledger-3.2.6/SL/CA.pm:94:                 WHERE accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/CA.pm-95-  if ($form->{accounttype} eq 'gifi') {
sql-ledger-3.2.6/SL/CA.pm-96-    $query = qq|SELECT id FROM chart
sql-ledger-3.2.6/SL/CA.pm:97:                WHERE gifi_accno = '$form->{gifi_accno}'|;
sql-ledger-3.2.6/SL/CA.pm-98-  }
##############################################
sql-ledger-3.2.6/SL/CA.pm-159-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/CA.pm:160:		WHERE c.accno = '$form->{accno}'|;
sql-ledger-3.2.6/SL/CA.pm-161-    if ($form->{accounttype} eq 'gifi') {
##############################################
sql-ledger-3.2.6/SL/CA.pm-163-                FROM chart
sql-ledger-3.2.6/SL/CA.pm:164:		WHERE gifi_accno = '$form->{gifi_accno}'
sql-ledger-3.2.6/SL/CA.pm-165-		AND charttype = 'A'|;
##############################################
sql-ledger-3.2.6/SL/CA.pm-187-			JOIN chart c ON (ac.chart_id = c.id)
sql-ledger-3.2.6/SL/CA.pm:188:			WHERE c.gifi_accno = '$form->{gifi_accno}'
sql-ledger-3.2.6/SL/CA.pm-189-			AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-202-			JOIN chart c ON (ac.chart_id = c.id)
sql-ledger-3.2.6/SL/CA.pm:203:			WHERE c.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/CA.pm-204-			AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-218-		    JOIN chart c ON (ac.chart_id = c.id)
sql-ledger-3.2.6/SL/CA.pm:219:		    WHERE c.gifi_accno = '$form->{gifi_accno}'
sql-ledger-3.2.6/SL/CA.pm-220-		    AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-227-		      JOIN chart c ON (ac.chart_id = c.id)
sql-ledger-3.2.6/SL/CA.pm:228:		      WHERE c.accno = '$form->{accno}'
sql-ledger-3.2.6/SL/CA.pm-229-		      AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-254-		 $dpt_join
sql-ledger-3.2.6/SL/CA.pm:255:		 WHERE ac.chart_id = $id
sql-ledger-3.2.6/SL/CA.pm-256-		 AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-271-		 $dpt_join
sql-ledger-3.2.6/SL/CA.pm:272:		 WHERE ac.chart_id = $id
sql-ledger-3.2.6/SL/CA.pm-273-		 AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/CA.pm-288-		 $dpt_join
sql-ledger-3.2.6/SL/CA.pm:289:		 WHERE ac.chart_id = $id
sql-ledger-3.2.6/SL/CA.pm-290-		 AND ac.approved = '1'
##############################################
sql-ledger-3.2.6/SL/VR.pm-41-	         FROM br a
sql-ledger-3.2.6/SL/VR.pm:42:		 WHERE a.id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-43-  ($form->{batchnumber}, $form->{batchdescription}, $form->{transdate}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-62-		 transdate = '$transdate'
sql-ledger-3.2.6/SL/VR.pm:63:		 WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-64-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-95-  my $where = "1 = 1";
sql-ledger-3.2.6/SL/VR.pm:96:  $where .= " AND a.batch = '$form->{batch}'" if $form->{batch};
sql-ledger-3.2.6/SL/VR.pm-97-
##############################################
sql-ledger-3.2.6/SL/VR.pm-99-    (undef, $var) = split /--/, $form->{employee};
sql-ledger-3.2.6/SL/VR.pm:100:    $where .= " AND a.employee_id = $var";
sql-ledger-3.2.6/SL/VR.pm-101-  }
##############################################
sql-ledger-3.2.6/SL/VR.pm-104-    $var = $form->like(lc $form->{batchnumber});
sql-ledger-3.2.6/SL/VR.pm:105:    $where .= " AND lower(a.batchnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/VR.pm-106-  }
##############################################
sql-ledger-3.2.6/SL/VR.pm-108-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/VR.pm:109:    $where .= " AND lower(a.description) LIKE '$var'";
sql-ledger-3.2.6/SL/VR.pm-110-  }
sql-ledger-3.2.6/SL/VR.pm-111-
sql-ledger-3.2.6/SL/VR.pm:112:  $where .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/VR.pm:113:  $where .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/VR.pm-114-  
##############################################
sql-ledger-3.2.6/SL/VR.pm-157-		    (SELECT id FROM employee
sql-ledger-3.2.6/SL/VR.pm:158:		     WHERE login = '$form->{login}'))|;
sql-ledger-3.2.6/SL/VR.pm-159-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-161-    $query = qq|SELECT id FROM br
sql-ledger-3.2.6/SL/VR.pm:162:                WHERE batchnumber = '$uid'|;
sql-ledger-3.2.6/SL/VR.pm-163-    ($form->{batchid}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-168-		transdate = '$form->{transdate}'
sql-ledger-3.2.6/SL/VR.pm:169:		WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-170-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-208-                 FROM br
sql-ledger-3.2.6/SL/VR.pm:209:		 WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-210-  ($form->{batchnumber}, $form->{batchdescription}, $form->{transdate}, $form->{apprdate}, $form->{batch}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-221-		JOIN vendor v ON (v.id = a.vendor_id)
sql-ledger-3.2.6/SL/VR.pm:222:		WHERE vr.br_id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-223-
##############################################
sql-ledger-3.2.6/SL/VR.pm-236-		JOIN $form->{vc} v ON (v.id = a.$form->{vc}_id)
sql-ledger-3.2.6/SL/VR.pm:237:		WHERE vr.br_id = $form->{batchid}
sql-ledger-3.2.6/SL/VR.pm-238-		AND c.link LIKE '%AP_paid%'
##############################################
sql-ledger-3.2.6/SL/VR.pm-256-		JOIN $form->{vc} v ON (v.id = a.$form->{vc}_id)
sql-ledger-3.2.6/SL/VR.pm:257:		WHERE vr.br_id = $form->{batchid}
sql-ledger-3.2.6/SL/VR.pm-258-		AND c.link LIKE '%AP_paid%'
##############################################
sql-ledger-3.2.6/SL/VR.pm-268-		JOIN vr ON (vr.trans_id = g.id)
sql-ledger-3.2.6/SL/VR.pm:269:		WHERE vr.br_id = $form->{batchid}
sql-ledger-3.2.6/SL/VR.pm-270-		AND ac.amount >= 0
##############################################
sql-ledger-3.2.6/SL/VR.pm-306-              FROM $table
sql-ledger-3.2.6/SL/VR.pm:307:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/VR.pm-308-  if ($form->{batch} eq 'gl') {
##############################################
sql-ledger-3.2.6/SL/VR.pm-316-  $query = qq|DELETE FROM $table
sql-ledger-3.2.6/SL/VR.pm:317:	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/VR.pm-318-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-321-    $query = qq|DELETE FROM $_
sql-ledger-3.2.6/SL/VR.pm:322:		WHERE trans_id = $form->{id};|;
sql-ledger-3.2.6/SL/VR.pm-323-  }
##############################################
sql-ledger-3.2.6/SL/VR.pm-354-	      JOIN chart c ON (c.id = ac.chart_id)
sql-ledger-3.2.6/SL/VR.pm:355:	      WHERE vr_id = $form->{id}
sql-ledger-3.2.6/SL/VR.pm-356-	      AND ac.approved = '0'
##############################################
sql-ledger-3.2.6/SL/VR.pm-360-  $query = qq|DELETE FROM vr
sql-ledger-3.2.6/SL/VR.pm:361:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/VR.pm-362-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-364-  $query = qq|DELETE FROM acc_trans
sql-ledger-3.2.6/SL/VR.pm:365:              WHERE vr_id = $form->{id}|;
sql-ledger-3.2.6/SL/VR.pm-366-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-382-                onhold = '0'
sql-ledger-3.2.6/SL/VR.pm:383:		WHERE id = $trans_id|;
sql-ledger-3.2.6/SL/VR.pm-384-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-407-                 FROM vr
sql-ledger-3.2.6/SL/VR.pm:408:	         WHERE vr.br_id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-409-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-487-  $query = qq|DELETE FROM br
sql-ledger-3.2.6/SL/VR.pm:488:	      WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-489-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-515-                 FROM vr
sql-ledger-3.2.6/SL/VR.pm:516:	         WHERE br_id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-517-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-576-              apprdate = current_date
sql-ledger-3.2.6/SL/VR.pm:577:	      WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-578-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-629-		LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/VR.pm:630:		WHERE vr.id = $form->{id}
sql-ledger-3.2.6/SL/VR.pm-631-		AND c.link LIKE '%AP_paid%'|;
##############################################
sql-ledger-3.2.6/SL/VR.pm-660-		JOIN chart c ON (c.id = ac.chart_id)
sql-ledger-3.2.6/SL/VR.pm:661:		WHERE vr_id = $form->{id}
sql-ledger-3.2.6/SL/VR.pm-662-		AND c.link LIKE '%AP_paid%'|;
##############################################
sql-ledger-3.2.6/SL/VR.pm-672-    $query = qq|DELETE FROM acc_trans
sql-ledger-3.2.6/SL/VR.pm:673:                WHERE vr_id = $form->{id}|;
sql-ledger-3.2.6/SL/VR.pm-674-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-684-  my $query = qq|SELECT id FROM chart
sql-ledger-3.2.6/SL/VR.pm:685:                 WHERE accno = '$accno'|;
sql-ledger-3.2.6/SL/VR.pm-686-  my ($chart_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-704-		    (SELECT id FROM employee
sql-ledger-3.2.6/SL/VR.pm:705:		     WHERE login = '$form->{login}'))|;
sql-ledger-3.2.6/SL/VR.pm-706-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-708-    $query = qq|SELECT id FROM br
sql-ledger-3.2.6/SL/VR.pm:709:                WHERE batchnumber = '$uid'|;
sql-ledger-3.2.6/SL/VR.pm-710-    ($form->{batchid}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/VR.pm-715-		transdate = '$form->{transdate}'
sql-ledger-3.2.6/SL/VR.pm:716:		WHERE id = $form->{batchid}|;
sql-ledger-3.2.6/SL/VR.pm-717-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-135-                FROM employee
sql-ledger-3.2.6/SL/User.pm:136:		WHERE login = '$login'|;
sql-ledger-3.2.6/SL/User.pm-137-    ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-183-                FROM employee
sql-ledger-3.2.6/SL/User.pm:184:		WHERE login = '$login'|;
sql-ledger-3.2.6/SL/User.pm-185-    my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-189-                FROM audittrail
sql-ledger-3.2.6/SL/User.pm:190:                WHERE employee_id = $id
sql-ledger-3.2.6/SL/User.pm-191-                AND action = 'login'
##############################################
sql-ledger-3.2.6/SL/User.pm-693-	      LEFT JOIN acsrole a ON (e.acsrole_id = a.id)
sql-ledger-3.2.6/SL/User.pm:694:	      WHERE login = '$login'|;
sql-ledger-3.2.6/SL/User.pm-695-  ($id, $acs{acs}, $acs{role}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-859-  my $query = qq|SELECT id FROM employee
sql-ledger-3.2.6/SL/User.pm:860:                 WHERE login = '$login'|; 
sql-ledger-3.2.6/SL/User.pm-861-  my ($id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-865-		 enddate = current_date
sql-ledger-3.2.6/SL/User.pm:866:		 WHERE login = '$login'|;
sql-ledger-3.2.6/SL/User.pm-867-  $dbh->do($query);
##############################################
sql-ledger-3.2.6/SL/User.pm-870-		 login = ''
sql-ledger-3.2.6/SL/User.pm:871:		 WHERE login = '$login'|;
sql-ledger-3.2.6/SL/User.pm-872-  $dbh->do($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-41-		 LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id)
sql-ledger-3.2.6/SL/IC.pm:42:                 WHERE p.id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-43-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-70-		LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id)
sql-ledger-3.2.6/SL/IC.pm:71:		WHERE a.aid = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-72-		ORDER BY a.id|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-96-                  FROM makemodel
sql-ledger-3.2.6/SL/IC.pm:97:                  WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-98-
##############################################
sql-ledger-3.2.6/SL/IC.pm-111-                JOIN warehouse w ON (i.warehouse_id = w.id)
sql-ledger-3.2.6/SL/IC.pm:112:                WHERE i.parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-113-                GROUP BY w.description
##############################################
sql-ledger-3.2.6/SL/IC.pm-150-		JOIN vendor v ON (v.id = pv.vendor_id)
sql-ledger-3.2.6/SL/IC.pm:151:		WHERE pv.parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-152-		ORDER BY 2|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-171-		LEFT JOIN pricegroup g ON (g.id = pc.pricegroup_id)
sql-ledger-3.2.6/SL/IC.pm:172:		WHERE pc.parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-173-		ORDER BY c.name, g.pricegroup, pc.pricebreak|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-192-              FROM invoice
sql-ledger-3.2.6/SL/IC.pm:193:	      WHERE parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-194-	    UNION
##############################################
sql-ledger-3.2.6/SL/IC.pm-196-	      FROM orderitems
sql-ledger-3.2.6/SL/IC.pm:197:	      WHERE parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-198-	    UNION
##############################################
sql-ledger-3.2.6/SL/IC.pm-200-	      FROM assembly
sql-ledger-3.2.6/SL/IC.pm:201:	      WHERE parts_id = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-202-	    UNION
##############################################
sql-ledger-3.2.6/SL/IC.pm-204-	      FROM jcitems
sql-ledger-3.2.6/SL/IC.pm:205:	      WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-206-  my ($orphaned) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-243-        $query = qq|UPDATE parts SET obsolete = '1'
sql-ledger-3.2.6/SL/IC.pm:244:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-245-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-249-        $query = qq|UPDATE parts SET obsolete = '1', onhand = 0
sql-ledger-3.2.6/SL/IC.pm:250:                    WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-251-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-275-                FROM parts
sql-ledger-3.2.6/SL/IC.pm:276:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-277-    my ($id, $listprice, $sellprice, $lastcost, $weight, $project_id) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-284-                    FROM assembly
sql-ledger-3.2.6/SL/IC.pm:285:                    WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-286-        $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-296-        $query = qq|DELETE FROM partsvendor
sql-ledger-3.2.6/SL/IC.pm:297:                    WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-298-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-303-        $query = qq|DELETE FROM makemodel
sql-ledger-3.2.6/SL/IC.pm:304:                    WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-305-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-310-        $query = qq|DELETE FROM assembly
sql-ledger-3.2.6/SL/IC.pm:311:                    WHERE aid = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-312-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-319-          $query = qq|DELETE FROM assembly
sql-ledger-3.2.6/SL/IC.pm:320:                      WHERE aid = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-321-          $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-330-                        adj = '$form->{"adj_$i"}'
sql-ledger-3.2.6/SL/IC.pm:331:                        WHERE aid = $form->{id}
sql-ledger-3.2.6/SL/IC.pm-332-                        AND parts_id = $form->{"id_$i"}|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-339-      $query = qq|DELETE FROM partstax
sql-ledger-3.2.6/SL/IC.pm:340:		  WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-341-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-344-      $query = qq|DELETE FROM partscustomer
sql-ledger-3.2.6/SL/IC.pm:345:		  WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-346-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-363-    $query = qq|SELECT id FROM parts
sql-ledger-3.2.6/SL/IC.pm:364:                WHERE partnumber = '$uid'|;
sql-ledger-3.2.6/SL/IC.pm-365-    $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-396-              inventory_accno_id = (SELECT id FROM chart
sql-ledger-3.2.6/SL/IC.pm:397:                                    WHERE accno = '$form->{inventory_accno}'),
sql-ledger-3.2.6/SL/IC.pm-398-              income_accno_id = (SELECT id FROM chart
sql-ledger-3.2.6/SL/IC.pm:399:              WHERE accno = '$form->{income_accno}'),
sql-ledger-3.2.6/SL/IC.pm-400-              expense_accno_id = (SELECT id FROM chart
sql-ledger-3.2.6/SL/IC.pm:401:                                  WHERE accno = '$form->{expense_accno}'),
sql-ledger-3.2.6/SL/IC.pm-402-                                  obsolete = '$form->{obsolete}',
##############################################
sql-ledger-3.2.6/SL/IC.pm-410-              barcode = '$form->{barcode}'
sql-ledger-3.2.6/SL/IC.pm:411:              WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-412-        $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-434-			            FROM chart
sql-ledger-3.2.6/SL/IC.pm:435:			            WHERE accno = '$_'))|;
sql-ledger-3.2.6/SL/IC.pm-436-      $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-578-                 FROM assembly
sql-ledger-3.2.6/SL/IC.pm:579:	         WHERE parts_id = $id|;
sql-ledger-3.2.6/SL/IC.pm-580-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-594-                  weight = weight + $qty * ($form->{weight} - $weight)
sql-ledger-3.2.6/SL/IC.pm:595:	      WHERE id = $id|;
sql-ledger-3.2.6/SL/IC.pm-596-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-613-    $var = $form->like(lc $form->{partnumber});
sql-ledger-3.2.6/SL/IC.pm:614:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-615-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-618-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:619:    $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-620-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-625-    (undef, $var) = split /--/, $form->{partsgroup};
sql-ledger-3.2.6/SL/IC.pm:626:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-627-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-653-		FROM inventory
sql-ledger-3.2.6/SL/IC.pm:654:		WHERE warehouse_id = $warehouse_id
sql-ledger-3.2.6/SL/IC.pm-655-		AND parts_id = ?|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-772-    $var = $form->like(lc $form->{partnumber});
sql-ledger-3.2.6/SL/IC.pm:773:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-774-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-776-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:777:    $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-778-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-955-		 JOIN assembly a ON (a.parts_id = p.id)
sql-ledger-3.2.6/SL/IC.pm:956:		 WHERE a.aid = $id|;
sql-ledger-3.2.6/SL/IC.pm-957-  my $sth = $dbh->prepare($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1014-  $query = qq|DELETE FROM parts
sql-ledger-3.2.6/SL/IC.pm:1015: 	      WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1016-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1018-  $query = qq|DELETE FROM partstax
sql-ledger-3.2.6/SL/IC.pm:1019:	      WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1020-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1024-    $query = qq|DELETE FROM partsvendor
sql-ledger-3.2.6/SL/IC.pm:1025:		WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1026-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1031-    $query = qq|DELETE FROM makemodel
sql-ledger-3.2.6/SL/IC.pm:1032:		WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1033-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1040-    $query = qq|DELETE FROM assembly
sql-ledger-3.2.6/SL/IC.pm:1041:		WHERE aid = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1042-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1046-    $query = qq|DELETE FROM alternate
sql-ledger-3.2.6/SL/IC.pm:1047:		WHERE id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1048-    $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1051-  $query = qq|DELETE FROM inventory
sql-ledger-3.2.6/SL/IC.pm:1052:	      WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1053-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1055-  $query = qq|DELETE FROM partscustomer
sql-ledger-3.2.6/SL/IC.pm:1056:	      WHERE parts_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1057-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1059-  $query = qq|DELETE FROM translation
sql-ledger-3.2.6/SL/IC.pm:1060:	      WHERE trans_id = $form->{id}|;
sql-ledger-3.2.6/SL/IC.pm-1061-  $dbh->do($query) || $form->dberror($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-1090-    $var = $form->like(lc $form->{"partnumber_$i"});
sql-ledger-3.2.6/SL/IC.pm:1091:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1092-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1094-    $var = $form->like(lc $form->{"description_$i"});
sql-ledger-3.2.6/SL/IC.pm:1095:    $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1096-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1098-    (undef, $var) = split /--/, $form->{"partsgroup_$i"};
sql-ledger-3.2.6/SL/IC.pm:1099:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-1100-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1102-  if ($form->{id}) {
sql-ledger-3.2.6/SL/IC.pm:1103:    $where .= " AND p.id != $form->{id}";
sql-ledger-3.2.6/SL/IC.pm-1104-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1147-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/IC.pm:1148:      $where .= " AND lower(p.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1149-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1154-      $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:1155:      $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1156-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1168-      $var = $form->like(lc $form->{serialnumber});
sql-ledger-3.2.6/SL/IC.pm:1169:      $where .= " AND lower(i.serialnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1170-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1244-      $var = $form->like(lc $form->{make});
sql-ledger-3.2.6/SL/IC.pm:1245:      $where .= " AND lower(m.make) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1246-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1248-      $var = $form->like(lc $form->{model});
sql-ledger-3.2.6/SL/IC.pm:1249:      $where .= " AND lower(m.model) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1250-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1253-    (undef, $var) = split /--/, $form->{partsgroup};
sql-ledger-3.2.6/SL/IC.pm:1254:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-1255-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1331-      
sql-ledger-3.2.6/SL/IC.pm:1332:      my $invwhere = "$where";
sql-ledger-3.2.6/SL/IC.pm-1333-      my $transdate = ($form->{method} eq 'accrual') ? "transdate" : "datepaid";
##############################################
sql-ledger-3.2.6/SL/IC.pm-1335-      $invwhere .= " AND i.assemblyitem = '0'";
sql-ledger-3.2.6/SL/IC.pm:1336:      $invwhere .= " AND a.$transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/IC.pm:1337:      $invwhere .= " AND a.$transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/IC.pm-1338-
##############################################
sql-ledger-3.2.6/SL/IC.pm-1340-	$var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:1341:	$invwhere .= " AND lower(i.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1342-      }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1431-      if ($form->{onorder} || $form->{ordered}) {
sql-ledger-3.2.6/SL/IC.pm:1432:	my $ordwhere = "$where
sql-ledger-3.2.6/SL/IC.pm-1433-		       AND a.quotation = '0'";
sql-ledger-3.2.6/SL/IC.pm:1434:	$ordwhere .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/IC.pm:1435:	$ordwhere .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/IC.pm-1436-
##############################################
sql-ledger-3.2.6/SL/IC.pm-1438-	  $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:1439:	  $ordwhere .= " AND lower(i.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1440-	}
##############################################
sql-ledger-3.2.6/SL/IC.pm-1443-	  unless ($form->{open} && $form->{closed}) {
sql-ledger-3.2.6/SL/IC.pm:1444:	    $ordwhere .= " AND a.closed = '0'" if $form->{open};
sql-ledger-3.2.6/SL/IC.pm:1445:	    $ordwhere .= " AND a.closed = '1'" if $form->{closed};
sql-ledger-3.2.6/SL/IC.pm-1446-	  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1521-      if ($form->{rfq} || $form->{quoted}) {
sql-ledger-3.2.6/SL/IC.pm:1522:	my $quowhere = "$where
sql-ledger-3.2.6/SL/IC.pm-1523-		       AND a.quotation = '1'";
sql-ledger-3.2.6/SL/IC.pm:1524:	$quowhere .= " AND a.transdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/IC.pm:1525:	$quowhere .= " AND a.transdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/IC.pm-1526-
##############################################
sql-ledger-3.2.6/SL/IC.pm-1528-	  $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:1529:	  $quowhere .= " AND lower(i.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1530-	}
##############################################
sql-ledger-3.2.6/SL/IC.pm-1533-	  unless ($form->{open} && $form->{closed}) {
sql-ledger-3.2.6/SL/IC.pm:1534:	    $ordwhere .= " AND a.closed = '0'" if $form->{open};
sql-ledger-3.2.6/SL/IC.pm:1535:	    $ordwhere .= " AND a.closed = '1'" if $form->{closed};
sql-ledger-3.2.6/SL/IC.pm-1536-	  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1680-                  FROM inventory
sql-ledger-3.2.6/SL/IC.pm:1681:		  WHERE warehouse_id = $var
sql-ledger-3.2.6/SL/IC.pm-1682-                  AND parts_id = ?|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-1784-		 $makemodeljoin
sql-ledger-3.2.6/SL/IC.pm:1785:		 WHERE a.aid = $id
sql-ledger-3.2.6/SL/IC.pm-1786-		 ORDER BY $sortorder|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-1826-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/IC.pm:1827:      $where .= " AND lower(p.$_) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-1828-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1832-    (undef, $var) = split /--/, $form->{partsgroup};
sql-ledger-3.2.6/SL/IC.pm:1833:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-1834-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1943-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/IC.pm:1944:      $where .= qq| AND lower(p.$_) LIKE '$var'|;
sql-ledger-3.2.6/SL/IC.pm-1945-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1949-    (undef, $var) = split /--/, $form->{partsgroup};
sql-ledger-3.2.6/SL/IC.pm:1950:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-1951-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-1959-    
sql-ledger-3.2.6/SL/IC.pm:1960:    $dwhere = qq| AND a.transdate >= '$transdatefrom'
sql-ledger-3.2.6/SL/IC.pm-1961- 		  AND a.transdate <= '$transdateto'|;
##############################################
sql-ledger-3.2.6/SL/IC.pm-2104-      $var = $form->like(lc $form->{$_});
sql-ledger-3.2.6/SL/IC.pm:2105:      $where .= qq| AND lower(p.$_) LIKE '$var'|;
sql-ledger-3.2.6/SL/IC.pm-2106-    }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2110-    (undef, $var) = split /--/, $form->{partsgroup};
sql-ledger-3.2.6/SL/IC.pm:2111:    $where .= qq| AND p.partsgroup_id = $var|;
sql-ledger-3.2.6/SL/IC.pm-2112-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2390-		  LEFT JOIN translation l ON (l.trans_id = c.id AND l.language_code = '$myconfig->{countrycode}')
sql-ledger-3.2.6/SL/IC.pm:2391:		  WHERE c.id = '$defaults{"${_}_accno_id"}'|;
sql-ledger-3.2.6/SL/IC.pm-2392-      ($form->{"${_}_accno"}, $form->{"${_}_description"}, $form->{"${_}_translation"}) = $dbh->selectrow_array($query);
##############################################
sql-ledger-3.2.6/SL/IC.pm-2468-
sql-ledger-3.2.6/SL/IC.pm:2469:  my $wwhere = $where;
sql-ledger-3.2.6/SL/IC.pm-2470-  if ($form->{warehouse} ne "") {
sql-ledger-3.2.6/SL/IC.pm-2471-    (undef, $var) = split /--/, $form->{warehouse};
sql-ledger-3.2.6/SL/IC.pm:2472:    $wwhere .= " AND i.warehouse_id = $var";
sql-ledger-3.2.6/SL/IC.pm-2473-
##############################################
sql-ledger-3.2.6/SL/IC.pm-2670-
sql-ledger-3.2.6/SL/IC.pm:2671:  $where .= " AND i.shippingdate >= '$form->{transdatefrom}'" if $form->{transdatefrom};
sql-ledger-3.2.6/SL/IC.pm:2672:  $where .= " AND i.shippingdate <= '$form->{transdateto}'" if $form->{transdateto};
sql-ledger-3.2.6/SL/IC.pm-2673-
##############################################
sql-ledger-3.2.6/SL/IC.pm-2779-    $var = $form->like(lc $form->{partnumber});
sql-ledger-3.2.6/SL/IC.pm:2780:    $where .= " AND lower(p.partnumber) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-2781-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2783-    $var = $form->like(lc $form->{description});
sql-ledger-3.2.6/SL/IC.pm:2784:    $where .= " AND lower(p.description) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-2785-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2787-    $var = $form->like(lc $form->{$form->{vc}});
sql-ledger-3.2.6/SL/IC.pm:2788:    $where .= " AND lower(c.name) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-2789-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2791-    $var = $form->like(lc $form->{"$form->{vc}number"});
sql-ledger-3.2.6/SL/IC.pm:2792:    $where .= " AND lower(c.$form->{vc}number) LIKE '$var'";
sql-ledger-3.2.6/SL/IC.pm-2793-  }
##############################################
sql-ledger-3.2.6/SL/IC.pm-2797-  }
sql-ledger-3.2.6/SL/IC.pm:2798:  $where .= " AND o.reqdate >= '$form->{reqdatefrom}'" if $form->{reqdatefrom};
sql-ledger-3.2.6/SL/IC.pm:2799:  $where .= " AND o.reqdate <= '$form->{reqdateto}'" if $form->{reqdateto};
sql-ledger-3.2.6/SL/IC.pm-2800-  
##############################################
sql-ledger-3.2.6/SL/IC.pm-2847-		JOIN customer c ON (c.id = a.customer_id)
sql-ledger-3.2.6/SL/IC.pm:2848:		WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IC.pm-2849-	      UNION ALL
##############################################
sql-ledger-3.2.6/SL/IC.pm-2881-		JOIN vendor v ON (v.id = a.vendor_id)
sql-ledger-3.2.6/SL/IC.pm:2882:		WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IC.pm-2883-	      UNION ALL
##############################################
sql-ledger-3.2.6/SL/IC.pm-2914-		JOIN customer c ON (c.id = a.customer_id)
sql-ledger-3.2.6/SL/IC.pm:2915:		WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IC.pm-2916-	      UNION ALL
##############################################
sql-ledger-3.2.6/SL/IC.pm-2923-		JOIN vendor v ON (v.id = a.vendor_id)
sql-ledger-3.2.6/SL/IC.pm:2924:		WHERE i.parts_id = $id
sql-ledger-3.2.6/SL/IC.pm-2925-	      UNION ALL
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/am.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/am.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/am.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ap.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ap.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ap.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ar.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ar.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ar.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/bp.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/bp.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/bp.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ca.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ca.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ca.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/cp.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/cp.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/cp.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ct.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ct.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ct.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/gl.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/gl.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/gl.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/hr.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/hr.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/hr.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ic.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ic.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ic.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/im.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/im.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/im.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ir.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ir.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ir.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/is.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/is.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/is.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/jc.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/jc.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/jc.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/menu.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/menu.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/menu.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/oe.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/oe.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/oe.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/pe.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/pe.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/pe.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/ps.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/ps.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/ps.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/rc.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/rc.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/rc.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/rp.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/rp.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/rp.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-79-  chomp $httpd;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:80:  $webowner = `grep "^User " $httpd`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:81:  $webgroup = `grep "^Group " $httpd`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-82-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-229-      print "$source{$checkversion{$source}}{site} ... ";
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:230:      if ($latest_version = `wget -q -O - $url/latest_version`) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-231-	$found = 1;
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-251-      print "$source{$checkversion{$source}}{site} ... ";
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:252:      $ok = `lynx -dump -head $url/latest_version`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-253-      if ($ok = ($ok =~ s/HTTP.*?200 //)) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:254:	$latest_version = `lynx -dump $url/latest_version`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-255-	last;
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-294-      } elsif ($wget) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:295:	$ok = `wget -Sqc $source{$key}{url}/$latest_version`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-296-	if ($ok =~ /HTTP.*?(20|416)/) {
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-299-      } else {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:300:	$ok = `lynx -dump -head $source{$key}{url}/$latest_version`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-301-	$err = !($ok =~ s/HTTP.*?200 //);
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-303-	if (!$err) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:304:	  $err = system("lynx -dump $source{$key}{url}/$latest_version > $latest_version");
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-305-	}
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-354-    
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:355:    $httpddir = `dirname $httpd`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-356-    if ($confd) {
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-430-      if (!$confd) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:431:	if (!(`grep "^# SQL-Ledger" $httpd`)) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-432-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-448-    if ($permset = ($) =~ getgrnam $webgroup)) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:449:      `chown -hR :$webgroup users templates css spool`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-450-      chmod 0771, 'users', 'templates', 'css', 'spool';
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:451:      `chown :$webgroup sql-ledger.conf`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-452-    }
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-455-    `chown -hR 0:0 *`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:456:    `chown -hR $webowner:$webgroup users templates css spool`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-457-    chmod 0771, 'users', 'templates', 'css', 'spool';
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:458:    `chown $webowner:$webgroup sql-ledger.conf`;
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-459-  }
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-490-    
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:491:  if (system("gzip -df $latest_version")) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-492-    print "Error: Could not decompress $latest_version\n";
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-503-  print "Unpacking $latest_version ... ";
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:504:  if (system("tar -xf $latest_version")) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-505-    print "Error: Could not unpack $latest_version\n";
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-509-    # now we have a copy in sql-ledger
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:510:    if (system("tar -cf $latest_version -C sql-ledger .")) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-511-      print "Error: Could not create archive for $latest_version\n";
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-514-    } else {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl:515:      if (system("tar -xf $latest_version")) {
sql-ledger-3.2.6/.pc/FixINCissue.patch/setup.pl-516-        print "Error: Could not unpack $latest_version\n";
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/sm.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/sm.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/sm.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/vr.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/vr.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/vr.pl-53-
##############################################
sql-ledger-3.2.6/.pc/FixINCissue.patch/rd.pl-51-# check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/FixINCissue.patch/rd.pl:52:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/FixINCissue.patch/rd.pl-53-
##############################################
sql-ledger-3.2.6/.pc/45crosslink/bin/mozilla/login.pl-474-  # check for user config file, could be missing or ???
sql-ledger-3.2.6/.pc/45crosslink/bin/mozilla/login.pl:475:  eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/.pc/45crosslink/bin/mozilla/login.pl-476-
##############################################
sql-ledger-3.2.6/.pc/MitigateSourceMissingLintianError.patch/js/calendar.js-301-	b_ieMac  = b_mac && b_ie5,
sql-ledger-3.2.6/.pc/MitigateSourceMissingLintianError.patch/js/calendar.js:302:	b_safari = b_mac && re_webkit.exec(s_userAgent) && Number(RegExp.$1) < 500;
sql-ledger-3.2.6/.pc/MitigateSourceMissingLintianError.patch/js/calendar.js-303-
##############################################
sql-ledger-3.2.6/am.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/am.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/am.pl-60-
##############################################
sql-ledger-3.2.6/ap.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ap.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ap.pl-60-
##############################################
sql-ledger-3.2.6/ar.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ar.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ar.pl-60-
##############################################
sql-ledger-3.2.6/bp.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/bp.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/bp.pl-60-
##############################################
sql-ledger-3.2.6/ca.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ca.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ca.pl-60-
##############################################
sql-ledger-3.2.6/cp.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/cp.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/cp.pl-60-
##############################################
sql-ledger-3.2.6/ct.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ct.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ct.pl-60-
##############################################
sql-ledger-3.2.6/gl.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/gl.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/gl.pl-60-
##############################################
sql-ledger-3.2.6/hr.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/hr.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/hr.pl-60-
##############################################
sql-ledger-3.2.6/ic.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ic.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ic.pl-60-
##############################################
sql-ledger-3.2.6/im.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/im.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/im.pl-60-
##############################################
sql-ledger-3.2.6/ir.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ir.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ir.pl-60-
##############################################
sql-ledger-3.2.6/is.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/is.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/is.pl-60-
##############################################
sql-ledger-3.2.6/jc.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/jc.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/jc.pl-60-
##############################################
sql-ledger-3.2.6/menu.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/menu.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/menu.pl-60-
##############################################
sql-ledger-3.2.6/oe.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/oe.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/oe.pl-60-
##############################################
sql-ledger-3.2.6/pe.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/pe.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/pe.pl-60-
##############################################
sql-ledger-3.2.6/ps.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/ps.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/ps.pl-60-
##############################################
sql-ledger-3.2.6/rc.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/rc.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/rc.pl-60-
##############################################
sql-ledger-3.2.6/rp.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/rp.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/rp.pl-60-
##############################################
sql-ledger-3.2.6/setup.pl-86-  chomp $httpd;
sql-ledger-3.2.6/setup.pl:87:  $webowner = `grep "^User " $httpd`;
sql-ledger-3.2.6/setup.pl:88:  $webgroup = `grep "^Group " $httpd`;
sql-ledger-3.2.6/setup.pl-89-
##############################################
sql-ledger-3.2.6/setup.pl-236-      print "$source{$checkversion{$source}}{site} ... ";
sql-ledger-3.2.6/setup.pl:237:      if ($latest_version = `wget -q -O - $url/latest_version`) {
sql-ledger-3.2.6/setup.pl-238-	$found = 1;
##############################################
sql-ledger-3.2.6/setup.pl-258-      print "$source{$checkversion{$source}}{site} ... ";
sql-ledger-3.2.6/setup.pl:259:      $ok = `lynx -dump -head $url/latest_version`;
sql-ledger-3.2.6/setup.pl-260-      if ($ok = ($ok =~ s/HTTP.*?200 //)) {
sql-ledger-3.2.6/setup.pl:261:	$latest_version = `lynx -dump $url/latest_version`;
sql-ledger-3.2.6/setup.pl-262-	last;
##############################################
sql-ledger-3.2.6/setup.pl-301-      } elsif ($wget) {
sql-ledger-3.2.6/setup.pl:302:	$ok = `wget -Sqc $source{$key}{url}/$latest_version`;
sql-ledger-3.2.6/setup.pl-303-	if ($ok =~ /HTTP.*?(20|416)/) {
##############################################
sql-ledger-3.2.6/setup.pl-306-      } else {
sql-ledger-3.2.6/setup.pl:307:	$ok = `lynx -dump -head $source{$key}{url}/$latest_version`;
sql-ledger-3.2.6/setup.pl-308-	$err = !($ok =~ s/HTTP.*?200 //);
##############################################
sql-ledger-3.2.6/setup.pl-310-	if (!$err) {
sql-ledger-3.2.6/setup.pl:311:	  $err = system("lynx -dump $source{$key}{url}/$latest_version > $latest_version");
sql-ledger-3.2.6/setup.pl-312-	}
##############################################
sql-ledger-3.2.6/setup.pl-361-    
sql-ledger-3.2.6/setup.pl:362:    $httpddir = `dirname $httpd`;
sql-ledger-3.2.6/setup.pl-363-    if ($confd) {
##############################################
sql-ledger-3.2.6/setup.pl-437-      if (!$confd) {
sql-ledger-3.2.6/setup.pl:438:	if (!(`grep "^# SQL-Ledger" $httpd`)) {
sql-ledger-3.2.6/setup.pl-439-
##############################################
sql-ledger-3.2.6/setup.pl-455-    if ($permset = ($) =~ getgrnam $webgroup)) {
sql-ledger-3.2.6/setup.pl:456:      `chown -hR :$webgroup users templates css spool`;
sql-ledger-3.2.6/setup.pl-457-      chmod 0771, 'users', 'templates', 'css', 'spool';
sql-ledger-3.2.6/setup.pl:458:      `chown :$webgroup sql-ledger.conf`;
sql-ledger-3.2.6/setup.pl-459-    }
##############################################
sql-ledger-3.2.6/setup.pl-462-    `chown -hR 0:0 *`;
sql-ledger-3.2.6/setup.pl:463:    `chown -hR $webowner:$webgroup users templates css spool`;
sql-ledger-3.2.6/setup.pl-464-    chmod 0771, 'users', 'templates', 'css', 'spool';
sql-ledger-3.2.6/setup.pl:465:    `chown $webowner:$webgroup sql-ledger.conf`;
sql-ledger-3.2.6/setup.pl-466-  }
##############################################
sql-ledger-3.2.6/setup.pl-497-    
sql-ledger-3.2.6/setup.pl:498:  if (system("gzip -df $latest_version")) {
sql-ledger-3.2.6/setup.pl-499-    print "Error: Could not decompress $latest_version\n";
##############################################
sql-ledger-3.2.6/setup.pl-510-  print "Unpacking $latest_version ... ";
sql-ledger-3.2.6/setup.pl:511:  if (system("tar -xf $latest_version")) {
sql-ledger-3.2.6/setup.pl-512-    print "Error: Could not unpack $latest_version\n";
##############################################
sql-ledger-3.2.6/setup.pl-516-    # now we have a copy in sql-ledger
sql-ledger-3.2.6/setup.pl:517:    if (system("tar -cf $latest_version -C sql-ledger .")) {
sql-ledger-3.2.6/setup.pl-518-      print "Error: Could not create archive for $latest_version\n";
##############################################
sql-ledger-3.2.6/setup.pl-521-    } else {
sql-ledger-3.2.6/setup.pl:522:      if (system("tar -xf $latest_version")) {
sql-ledger-3.2.6/setup.pl-523-        print "Error: Could not unpack $latest_version\n";
##############################################
sql-ledger-3.2.6/sm.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/sm.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/sm.pl-60-
##############################################
sql-ledger-3.2.6/vr.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/vr.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/vr.pl-60-
##############################################
sql-ledger-3.2.6/rd.pl-58-# check for user config file, could be missing or ???
sql-ledger-3.2.6/rd.pl:59:eval { require("$userspath/$form->{login}.conf"); };
sql-ledger-3.2.6/rd.pl-60-