public static function delOrcamento($id_venda, $id_empreendimento, $id_usuario) { $VendaDao = new VendaDao(); if (is_numeric($id_venda)) { if ($VendaDao->delOrcamento($id_venda)) { $LogDao = new LogDao(); $LogTO = new LogTO(); $LogTO->id_tipo_log = 1; $LogTO->id_empreendimento = $id_empreendimento; $LogTO->id_usuario = $id_usuario; $LogTO->tabela = 'tbl_vendas'; $LogTO->id_ref = $id_venda; $LogTO->datetime = date('Y-m-d H:m:i'); $LogDao->saveLog($LogTO); Flight::halt(200, ''); } else { Flight::halt(500, 'erro ao excluir'); } } else { Flight::halt(406, 'parametro recusado'); } }