fix
This commit is contained in:
@@ -265,7 +265,7 @@ class ShowClientes extends Component
|
||||
|
||||
public function renovar($id)
|
||||
{
|
||||
$historiale = Historiale::with('tarifa','cuentas')->find($id);
|
||||
$historiale = Historiale::with('tarifa', 'cuentas')->find($id);
|
||||
|
||||
if (!$historiale) {
|
||||
return;
|
||||
@@ -289,7 +289,7 @@ class ShowClientes extends Component
|
||||
|
||||
$pantallas = $cuenta->servicio->completa;
|
||||
//dd($pantallas);
|
||||
for ($i=1; $i <= $pantallas ; $i++) {
|
||||
for ($i = 1; $i <= $pantallas; $i++) {
|
||||
$historial_cuenta = new Historial_cuenta;
|
||||
$historial_cuenta->historial_id = $nuevoHistorial->id;
|
||||
$historial_cuenta->cuenta_id = $cuenta->id;
|
||||
@@ -297,9 +297,6 @@ class ShowClientes extends Component
|
||||
$historial_cuenta->save();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$cuenta->vencimiento = $nuevaFechaVencimiento;
|
||||
$cuenta->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user