1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00
openstamanager/templates/interventi/init.php
2019-07-12 17:35:14 +02:00

14 lines
437 B
PHP

<?php
include_once __DIR__.'/../../core.php';
use Modules\Interventi\Intervento;
$documento = Intervento::find($id_record);
$preventivo = $dbo->fetchOne('SELECT numero FROM co_preventivi WHERE id = '.prepare($documento['id_preventivo']));
$contratto = $dbo->fetchOne('SELECT nome, numero FROM co_contratti WHERE id = '.prepare($documento['id_contratto']));
$id_cliente = $documento['idanagrafica'];
$id_sede = $documento['idsede'];