Compare commits

..

3 commits

Author SHA1 Message Date
Ale
10f4fefb0c Total sin devoluciones en la barra 2023-11-12 11:47:01 -03:00
Ale
f3ee5ea7d9 Agregado mouseover con notas de la devolucion 2023-11-12 11:46:16 -03:00
Ale
5b2c489f2d Columnas a su propia migracion 2023-11-12 11:26:29 -03:00
4 changed files with 36 additions and 4 deletions

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');
});
}
}

View file

@ -5,7 +5,7 @@
<span class="icon is-small mr-1">
<img src="/assets/chismosa.png">
</span>
<span v-text="'$' + this.$limpiarInt(this.$root.pedido.total)"></span>
<span v-text="'$' + this.$limpiarInt(this.$root.pedido.total_menos_devoluciones)"></span>
</a>
</div>
<div class="dropdown-menu chismosa-menu" :id="id" role="menu">

View file

@ -2,7 +2,7 @@
<tr>
<td>{{ pedido.nombre }}</td>
<td class="has-text-right" >{{ this.$limpiarInt(pedido.total) }}</td>
<td class="has-text-right" >-{{ pedido.devoluciones_total }}</td>
<td class="has-text-right" ><abbr :title="pedido.devoluciones_notas">-{{ pedido.devoluciones_total }}</abbr></td>
<td class="has-text-right" >{{ pedido.total_menos_devoluciones }}</td>
<td>
<pedidos-admin-switch-aprobacion