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
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::table('tarifa_promos', function (Blueprint $table) {
$table->string('subvendedor_id')->nullable()->after('utilidad');
});
}
public function down()
{
Schema::table('tarifa_promos', function (Blueprint $table) {
$table->dropColumn('subvendedor_id');
});
}
};