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:
Juan Felipe Duarte
2025-06-25 16:36:32 -07:00
parent e8050ea19f
commit 85d18dc4ff
7 changed files with 430 additions and 86 deletions
+7 -4
View File
@@ -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');
}
}