2018-03-02 19:20:42 +01:00
|
|
|
<?php
|
|
|
|
|
2018-06-23 15:41:32 +02:00
|
|
|
$r = $dbo->fetchOne('SELECT *,
|
2018-03-02 19:20:42 +01:00
|
|
|
(SELECT email FROM an_anagrafiche WHERE an_anagrafiche.idanagrafica=or_ordini.idanagrafica) AS email
|
|
|
|
FROM or_ordini WHERE id='.prepare($id_record));
|
|
|
|
|
|
|
|
// Variabili da sostituire
|
|
|
|
return [
|
|
|
|
'email' => $r['email'],
|
2018-09-28 17:24:12 +02:00
|
|
|
'id_anagrafica' => $r['idanagrafica'],
|
2018-03-02 19:20:42 +01:00
|
|
|
'numero' => empty($r['numero_esterno']) ? $r['numero'] : $r['numero_esterno'],
|
2018-06-26 10:25:50 +02:00
|
|
|
'note' => $r['note'],
|
2018-03-02 19:20:42 +01:00
|
|
|
'data' => Translator::dateToLocale($r['data']),
|
|
|
|
];
|