Commit 10565640 authored by Marcello Pivanti's avatar Marcello Pivanti
Browse files

Fix organization migration

parent 8aabaa9b
......@@ -82,10 +82,11 @@ class m190104_174355_import_organization_fix extends Migration
private function importOrganizations($rowData){
$organization = new \arter\amos\organizzazioni\models\Profilo();
$organization->name = $rowData[0];
$organization->partita_iva = null;
$organization->codice_fiscale = null;
$organization->partita_iva = $rowData[1];
$organization->codice_fiscale = $rowData[2];
$organization->presentazione_della_organizzaz = $rowData[3];
$organization->email = str_replace('Contatto ASTER: ','', $rowData[9]);
$organization->indirizzo = $rowData[4].', '.$rowData[5].', '.$rowData[8].', '.$rowData[6]. ' '.$rowData[7];
$organization->email = str_replace('Contatto ARTER: ','', $rowData[9]);
$organization->telefono = $rowData[10];
$organization->fax = $rowData[11];
$organization->pec = $rowData[12];
......@@ -100,6 +101,20 @@ class m190104_174355_import_organization_fix extends Migration
$organization->tipologia_di_organizzazione = 14;
$organization->forma_legale = 16;
$organization->la_sede_legale_e_la_stessa_del = true;
$organization->istat_code = null ;
$organization->sede_legale_indirizzo = null ;
$organization->sede_legale_telefono = null ;
$organization->sede_legale_fax = null ;
$organization->sede_legale_email = null ;
$organization->sede_legale_pec = null ;
$organization->rappresentante_legale = null ;
$organization->rappresentante_legale_text = null ;
$organization->referente_operativo = $rowData[13] ;
$organization->parent_id = null ;
$organization->profilo_enti_type_id = 2 ;
$placeId = $this->saveAddress($rowData[4], $rowData[5], $rowData[6], $rowData[7], $rowData[8] );
if($placeId) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment