From b562686dfb8947deddd02ec76121fb8db148141a Mon Sep 17 00:00:00 2001 From: Rudolf Hangl Date: Thu, 3 May 2007 13:19:08 +0000 Subject: [PATCH] --- admin/sync/fas/sync_fas_vilesci_adresse.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/admin/sync/fas/sync_fas_vilesci_adresse.php b/admin/sync/fas/sync_fas_vilesci_adresse.php index 847054144..8e51475f0 100644 --- a/admin/sync/fas/sync_fas_vilesci_adresse.php +++ b/admin/sync/fas/sync_fas_vilesci_adresse.php @@ -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");