Tarifas y promos por usuario (falta el editar en la vista de tarifas)
Introduces the subvendedor_id field to the tarifa_promos table and updates the TarifaPromo model accordingly. Refactors tarifas and promociones management in ShowTarifas and ShowUsuarios Livewire components, including utility calculation, validation, and UI improvements for managing both regular and promo tarifas.
This commit is contained in:
@@ -15,13 +15,16 @@ class TarifaPromo extends Model
|
||||
'rol_id',
|
||||
'precio',
|
||||
'visible',
|
||||
'subvendedor_id',
|
||||
];
|
||||
|
||||
public function rol(){
|
||||
return $this ->belongsTo(Role::class,'rol_id');
|
||||
public function rol()
|
||||
{
|
||||
return $this->belongsTo(Role::class, 'rol_id');
|
||||
}
|
||||
|
||||
public function promocion(){
|
||||
return $this ->belongsTo(Promociones::class,'promocion_id');
|
||||
public function promocion()
|
||||
{
|
||||
return $this->belongsTo(Promociones::class, 'promocion_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user