openstamanager/templates/contratti_cons/init.php

12 lines
290 B
PHP

<?php
include_once __DIR__.'/../../core.php';
$module_name = 'Contratti';
// Lettura info fattura
$records = $dbo->fetchArray('SELECT *, data_bozza AS data FROM co_contratti WHERE id='.prepare($idcontratto));
$id_cliente = $records[0]['idanagrafica'];
$id_sede = $records[0]['idsede'];