openstamanager/modules/ordini/variables.php

14 lines
420 B
PHP
Raw Normal View History

<?php
2018-06-23 15:41:32 +02:00
$r = $dbo->fetchOne('SELECT *,
(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'],
'numero' => empty($r['numero_esterno']) ? $r['numero'] : $r['numero_esterno'],
'note' => $r['note'],
'data' => Translator::dateToLocale($r['data']),
];