1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-24 22:42:33 +01:00
openstamanager/templates/interventi/init.php

14 lines
437 B
PHP
Raw Normal View History

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