mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-05 22:29:27 +00:00
This commit is contained in:
@@ -68,7 +68,7 @@ if($result = pg_query($conn_fas, $qry))
|
||||
$adresse->ort =$row->ort;
|
||||
$adresse->gemeinde =$row->gemeinde;
|
||||
$adresse->nation =$row->nation;
|
||||
$adresse->typ =$row->typ;
|
||||
//$adresse->typ =$row->typ; //h=Hauptws.(2), n=Nebenws.(3), f=Firma(1)
|
||||
$adresse->heimatadresse =$row->bismeldeadresse=='J'?true:false;
|
||||
$adresse->zustelladresse =$row->zustelladresse=='J'?true:false;
|
||||
$adresse->firma_id =null;
|
||||
@@ -78,6 +78,23 @@ if($result = pg_query($conn_fas, $qry))
|
||||
//$adresse->insertvon ="SYNC";
|
||||
$adresse->ext_id =$row->adresse_pk;
|
||||
|
||||
if($row->typ=='1')
|
||||
{
|
||||
$adresse->typ='f';
|
||||
}
|
||||
elseif($row->typ=='2')
|
||||
{
|
||||
$adresse->typ='h';
|
||||
}
|
||||
if($row->typ=='3')
|
||||
{
|
||||
$adresse->typ='n';
|
||||
}
|
||||
else
|
||||
{
|
||||
$adresse->typ='h';
|
||||
}
|
||||
|
||||
$ausgabe_adresse='';
|
||||
$update=false;
|
||||
//echo nl2br ($adresse->ext_id."\n");
|
||||
|
||||
Reference in New Issue
Block a user