Skip to content

Commit

Permalink
PAGOS ADELANTADOS NEW PACK TV 2 i
Browse files Browse the repository at this point in the history
Correccion para caso resultado del codigo #1
  • Loading branch information
Duber1234 committed Jan 13, 2023
1 parent 01e6bb1 commit 5086017
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/controllers/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,13 @@ public function payinvoicemultiple(){$this->load->helper('cookie');
$mes_pasado_fin= date("Y-m-t", strtotime($dia_inicial_mes_anterior));
$fac_caso_execpcional=false;
$tiquet1 =$this->db->query("select * from tickets where detalle like '%corte%' and (fecha_final>=".$dia_inicial_mes_anterior." and fecha_final<=".$mes_pasado_fin.")")->result();
if(count($tiquet1)>0){
/*borrar esto si no funciona */
$this->load->model('customers_model', 'customers');

$servicios_detail=$this->customers->servicios_detail($factura_asociada->csd);
$tiene_ya_internet=$this->db->query("select * from invoice_items where product like '%mega%' and tid=".$servicios_detail['tid'])->result();
/*end borrar esto si no funciona */
if(count($tiquet1)>0 && count($tiene_ya_internet)==0){ // aqui quitar si no funciona && count($tiene_ya_internet)==0
$mes1 = $dtime->format("Y-m");
$fac_caso_execpcional=true;
}
Expand Down

0 comments on commit 5086017

Please sign in to comment.