nueva tabla pendientes

This commit is contained in:
Felipe
2023-10-17 15:38:54 -05:00
parent 0c15e3c3b0
commit c7ba02a974
5 changed files with 296 additions and 186 deletions
+18 -12
View File
@@ -22,27 +22,33 @@ class Historiale extends Model
'nombre_cliente'
];
public function vendedor(){
return $this ->belongsTo(User::class);
public function vendedor()
{
return $this->belongsTo(User::class);
}
public function tarifa(){
return $this ->belongsTo(Tarifas::class);
public function tarifa()
{
return $this->belongsTo(Tarifas::class);
}
public function promocion(){
return $this ->belongsTo(Promociones::class);
public function promocion()
{
return $this->belongsTo(Promociones::class);
}
public function cliente(){
return $this ->belongsTo(User::class);
public function cliente()
{
return $this->belongsTo(User::class);
}
public function cuentas(){
return $this ->belongsToMany(Cuentas::class,'historial_cuentas','historial_id','cuenta_id');
public function cuentas()
{
return $this->belongsToMany(Cuentas::class, 'historial_cuentas', 'historial_id', 'cuenta_id');
}
public function cuentas_obsoletas(){
return $this ->belongsToMany(Cuentas::class,'logs','historial_id','cuenta_id');
public function cuentas_obsoletas()
{
return $this->belongsToMany(Cuentas::class, 'logs', 'historial_id', 'cuenta_id');
}
}