Update init.php

This commit is contained in:
loviuz 2018-05-24 18:47:15 +02:00 committed by GitHub
parent 5b3d959668
commit ee3dbe170d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -63,8 +63,9 @@ if (!empty($rsd[0]['citta'])) {
if (!empty($rsd[0]['provincia'])) {
$destinazione .= ' ('.$rsd[0]['provincia'].')';
}
$id_sede = 0;
$rsd = $dbo->fetchArray('SELECT (SELECT codice FROM an_anagrafiche WHERE idanagrafica=an_sedi.idanagrafica) AS codice, (SELECT ragione_sociale FROM an_anagrafiche WHERE idanagrafica=an_sedi.idanagrafica) AS ragione_sociale, indirizzo, indirizzo2, cap, citta, provincia, piva, codice_fiscale FROM an_sedi WHERE idanagrafica='.prepare($id_cliente).(!empty($records[0]['idsede']) ? ' AND id='.prepare($records[0]['idsede']) : ''));
// Sostituzioni specifiche
$custom = [
'tipo_doc' => Stringy\Stringy::create($tipo_doc)->toUpperCase(),