This commit is contained in:
Luca 2019-06-25 17:13:26 +02:00
commit c17794ae7b
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ class FatturaElettronica
$documento = $fattura->getDocumento();
$cliente = $fattura->getCliente();
$sede = database()->fetchOne('SELECT `codice_destinatario` FROM `an_sedi` WHERE `id` = '.prepare($documento['idsede']));
$sede = database()->fetchOne('SELECT `codice_destinatario` FROM `an_sedi` WHERE `id` = '.prepare($documento['idsede_destinazione']));
if (!empty($sede)) {
$codice_destinatario = $sede['codice_destinatario'];
} else {