Update ShowServicios.php
This commit is contained in:
@@ -163,7 +163,12 @@ class ShowServicios extends Component
|
|||||||
->whereDate('vencimiento', '<=', $this->fecha_final_2)
|
->whereDate('vencimiento', '<=', $this->fecha_final_2)
|
||||||
->where('servicio_id', $servicio_tarifa->id)
|
->where('servicio_id', $servicio_tarifa->id)
|
||||||
->where('estado', 'pendiente')
|
->where('estado', 'pendiente')
|
||||||
->doesntHave('perfil')
|
->where(function ($query) {
|
||||||
|
$query->doesntHave('perfil')
|
||||||
|
->orWhereHas('perfil', function ($query) {
|
||||||
|
$query->whereNull('historial_id');
|
||||||
|
});
|
||||||
|
})
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -208,7 +213,8 @@ class ShowServicios extends Component
|
|||||||
$this->tarjetaPlan = true;
|
$this->tarjetaPlan = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cerrartarjetaPlan(){
|
public function cerrartarjetaPlan()
|
||||||
|
{
|
||||||
$this->cantidad_tarjetaPlan = 1;
|
$this->cantidad_tarjetaPlan = 1;
|
||||||
$this->tarjetaPlan = false;
|
$this->tarjetaPlan = false;
|
||||||
$this->tarifa_id = '';
|
$this->tarifa_id = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user