|
|
@@ -44,7 +44,7 @@ $tables['X']['BI_audit_KW_requested']['rel']['pesel']['search']='like';
|
|
|
$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']['teryt']=1;
|
|
|
+//$tables['X']['BI_audit_ENERGA_RUM_KONTRAHENCI']['rel']['teryt']=1;
|
|
|
|
|
|
$tables['Z']['BI_audit_CEIDG']['rel']['nip']='nip';
|
|
|
$tables['Z']['BI_audit_CEIDG']['rel']['regon']='regon';
|
|
|
@@ -130,11 +130,12 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
foreach($tables['X'] as $X=>$x) {
|
|
|
//rels in tbls
|
|
|
foreach($x['rel'] as $x_rel_from=>$x_rel_to) {
|
|
|
- echo "#133test z_rel_fr ".$x_rel_from." to z_rel_to ".$x_rel_to ;
|
|
|
+ echo "\n<br> #133test z_rel_fr ".$x_rel_from." to z_rel_to ".$x_rel_to ;
|
|
|
if( isset($prev_tbl['rel'][$x_rel_from]) and isset($prev_dig->$prev_tbl['rel'][$x_rel_to]) ) {
|
|
|
if( strlen($prev_dig->$prev_tbl['rel'][$x_rel_to]) > 1 ) {
|
|
|
$sql_X[$X]['rel'][$x_rel_to]= $prev_dig->$prev_tbl['rel'][$x_rel_to];
|
|
|
}
|
|
|
+ $sql_X['test'][]='1';
|
|
|
}
|
|
|
/*foreach($prev_dig as $col=>$val) {
|
|
|
//transl ref to ref
|