|
|
@@ -64,6 +64,7 @@ $tables['Z']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel_and']['TERYT']['budynek']='
|
|
|
|
|
|
//$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['teryt']=1;
|
|
|
|
|
|
+//$tables['X']['BI_audit_ENERGA_RUM_UMOWY']['rel_like']['Numer_kontrahenta']='Strony_umowy';
|
|
|
//$tables['X']['BI_audit_ENERGA_RUM_UMOWY']['rel_like']['nip']='Strony_umowy';
|
|
|
|
|
|
|
|
|
@@ -539,6 +540,12 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path,$ta
|
|
|
print_r($h);
|
|
|
echo "<br> Historia sledzen:";
|
|
|
print_r($hist_time);
|
|
|
+ echo "<br> obiekty powiazane z BI_audit_ENERGA_RUM_UMOWY";
|
|
|
+ $sql_BI_audit_ENERGA_RUM_UMOWY="select * from BI_audit_ENERGA_RUM_UMOWY where Strony_umowy REGEXP '^.*(;".$h->Numer_kontrahenta.")(;|$)'";
|
|
|
+ $res_BI_audit_ENERGA_RUM_UMOWY=$db->query($sql_BI_audit_ENERGA_RUM_UMOWY) or die('545 blad '.$sql_BI_audit_ENERGA_RUM_UMOWY);
|
|
|
+ while($h_$res_BI_audit_ENERGA_RUM_UMOWY=$db->fetch($res_BI_audit_ENERGA_RUM_UMOWY)) {
|
|
|
+ print_r($res_BI_audit_ENERGA_RUM_UMOWY);
|
|
|
+ }
|
|
|
echo "#177 eof </pre>";
|
|
|
}
|
|
|
// echo "<pre>"; print_r($h); echo "</pre>";
|