D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Models
/
Filename :
GreVerBoleto.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreVerBoleto * * @copyright (c) year, Carlos Marques */ class GreVerBoleto { private $Resultado; private $DadosId; public function verBol($DadosId) { $this->DadosId = (int) $DadosId; $verBoleto = new \App\adms\Models\helper\AdmsRead(); $verBoleto->fullRead("SELECT fat.*, filial.nome_fantasia filial_nome, resid.nome resid_nome, gfat.nome gfat_nome FROM gre_fatura fat join gre_filial filial on filial.id = fat.gre_filial_id join gre_residente resid on resid.id = fat.gre_residente_id join gre_grupo_fatura gfat on gfat.id = fat.gre_grupo_fatura WHERE concat(fat.anomes, fat.gre_empr_princ_id, fat.gre_filial_id, fat.gre_residente_id) = :id order by gre_grupo_fatura, gre_produto", "id=".$this->DadosId); $this->Resultado= $verBoleto->getResultado(); return $this->Resultado; } }