diff --git a/modules/ddt/actions.php b/modules/ddt/actions.php index 33278ae23..807ed4587 100644 --- a/modules/ddt/actions.php +++ b/modules/ddt/actions.php @@ -203,6 +203,7 @@ switch (post('op')) { $totale_ordine = 0.00; $data = post('data'); $idanagrafica = post('idanagrafica'); + $idsede = post('idsede'); $idpagamento = post('idpagamento'); $idconto = post('idconto'); $idordine = post('idordine'); diff --git a/modules/ordini/crea_documento.php b/modules/ordini/crea_documento.php index 1a8ba9526..dfce55d91 100644 --- a/modules/ordini/crea_documento.php +++ b/modules/ordini/crea_documento.php @@ -36,6 +36,7 @@ $button = !empty(get('op')) ? tr('Aggiungi') : $button; $rs = $dbo->fetchArray('SELECT * FROM '.$table.' WHERE id='.prepare($id_record)); $numero = !empty($rs[0]['numero_esterno']) ? $rs[0]['numero_esterno'] : $rs[0]['numero']; $idanagrafica = $rs[0]['idanagrafica']; +$idsede = $rs[0]['idsede']; $idpagamento = $rs[0]['idpagamento']; $idconto = $rs[0]['idconto']; @@ -55,6 +56,7 @@ if (!empty($rs)) {