funcion/devoluciones #28

Merged
rho merged 31 commits from funcion/devoluciones into master 2024-08-27 21:18:17 -03:00
2 changed files with 34 additions and 2 deletions
Showing only changes of commit 5b2c489f2d - Show all commits

View file

@ -18,8 +18,6 @@ class CreateSubpedidosTable extends Migration
$table->string('nombre');
$table->foreignId('grupo_de_compra_id');
$table->boolean('aprobado')->default(false);
$table->double('devoluciones_total', 10, 2)->default(0);
$table->string('devoluciones_notas')->default("");
$table->timestamps();
});

View file

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class DevolucionesPedido extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('subpedidos', function (Blueprint $table) {
$table->double('devoluciones_total', 10, 2)->default(0);
$table->string('devoluciones_notas')->default("");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('subpedidos', function (Blueprint $table) {
$table->dropColumn('devoluciones_total');
$table->dropColumn('devoluciones_notas');
});
}
}