a.binder 8 rokov pred
rodič
commit
23f0983c5d

+ 12 - 4
SE/dev/audit_krs_con_digger/audit_krs_con_digger.php

@@ -50,10 +50,18 @@ $tables['Z']['BI_audit_ENERGA_PRACOWNICY_adresy']['rel_and']['TERYT']['budynek']
 //$tables['Z']['BI_audit_ENERGA_PRACOWNICY_adresy']['rel_and']['TERYT']['nrLokalu']='nrLokalu';
 
 
-
+$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']['pesel']='PESEL';
+$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_like']['pesel']='PESEL';
+
+
+$tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['BI_audit_ENERGA_RUM_KONTRAHENCI']='ID';
+$tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_and']['TERYT']['TERYT_SYM']='TERYT_SYM';
+$tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_and']['TERYT']['TERYT_SYM_UL']='TERYT_SYM_UL';
+ //$tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_and']['TERYT']['nrLokalu']='A_nrLokalu';
+$tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_and']['TERYT']['budynek']='A_nrDomu';
+
 //$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['teryt']=1;
 
 //$tables['X']['BI_audit_ENERGA_RUM_UMOWY']['rel_like']['nip']='Strony_umowy';
@@ -430,7 +438,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path) {
 							 $res_rel_rec=$db->query($sql_rel_rec) or die('211 blad '.$sql_rel_rec);
 							 echo "<br>#159 ref tbl ".$sql_rel_rec;
 							 while($h_rel_rec=$db->fetch($res_rel_rec)){
-								 echo "#315 fnd:".$h_rel_rec->ID;
+								// echo "#315 fnd:".$h_rel_rec->ID;
 								 $hist_loop_cur=$hist_loop_root_cur;
 //									 $hist_loop_cur['hist_time']=$hist_time;
 								 //$hist_loop[$ref_table][]=$h_rel_rec;
@@ -458,7 +466,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path) {
 							 $res_rel_rec=$db->query($sql_rel_rec) or die('211 blad '.$sql_rel_rec);
 							 echo "<br>#324 ref tbl ".$sql_rel_rec;
 							 while($h_rel_rec=$db->fetch($res_rel_rec)){
-								 echo "#315 fnd:".$h_rel_rec->ID;
+							//	 echo "#315 fnd:".$h_rel_rec->ID;
 								 $hist_loop_cur=$hist_loop_root_cur;
 //  								 $hist_loop_cur['hist_time']=$hist_time;
 						//		 $hist_loop[$ref_table][]=$h_rel_rec;