2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
2019-07-12 17:35:14 +02:00
|
|
|
use Modules\Interventi\Intervento;
|
2017-08-04 16:28:16 +02:00
|
|
|
|
2019-07-12 17:35:14 +02:00
|
|
|
$documento = Intervento::find($id_record);
|
2017-08-04 16:28:16 +02:00
|
|
|
|
2019-07-12 17:35:14 +02:00
|
|
|
$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']));
|
2017-09-11 13:08:50 +02:00
|
|
|
|
2019-07-12 17:35:14 +02:00
|
|
|
$id_cliente = $documento['idanagrafica'];
|
|
|
|
$id_sede = $documento['idsede'];
|