This commit is contained in:
Felipe
2023-10-23 17:09:05 -05:00
parent 42604a658c
commit fd9afd2183
22 changed files with 844 additions and 515 deletions
+5 -1
View File
@@ -11,6 +11,10 @@ class Historial_cuenta extends Model
protected $fillable = [
'historial_id',
'cuenta_id',
];
public function historial()
{
return $this->belongsTo(Historiale::class, 'historial_id');
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ class Historiale extends Model
public function vendedor()
{
return $this->belongsTo(User::class);
return $this->belongsTo(User::class , 'vendedor_id');
}
public function tarifa()
+2 -2
View File
@@ -18,10 +18,10 @@ class Pendientes extends Model
public function servicio()
{
return $this->hasMany(Servicio::class, 'servicio_id');
return $this->belongsTo(Servicio::class, 'servicio_id');
}
public function historial()
{
return $this->hasMany(Historiale::class, 'historial_id');
return $this->belongsTo(Historiale::class, 'historial_id');
}
}