a.binder 8 anni fa
parent
commit
0679e57ae0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

+ 2 - 2
SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

@@ -52,7 +52,7 @@ $tables['Z']['BI_audit_ENERGA_PRACOWNICY_adresy']['rel_and']['TERYT']['budynek']
 
 $tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['BI_audit_ENERGA_RUM_KONTRAHENCI']='ID';
 $tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['nip']='NIP';
-$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['regon']='REGON';
+$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_like']['regon']='REGON';
 $tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_like']['pesel']='PESEL';
 
 
@@ -135,7 +135,7 @@ $tables['Z']['BI_audit_KRS_person']['backref'][12]='BI_audit_KRS';
 function start_dig($tables) {
 	global $db;
 	foreach($tables['Y'] as $Y=>$t)  {
-		$sql='select * from '.$Y.' where ID=12 or ID=19 or 1=1 limit 100' ;
+		$sql='select * from '.$Y.' where ID=12 or ID=19 or 1=12 limit 100' ;
 		$res=$db->query($sql);
 		 while($h=$db->fetch($res)) {
 			 $hist_loop[$Y][]=$h;