Compare commits

...

3 commits

Author SHA1 Message Date
ale
32d84879c7 cambio visual notas de devoluciones 2024-07-17 17:25:41 -03:00
ale
6f1b4581ce cambio en cuenta de bonos barriales 2024-07-17 17:25:19 -03:00
ale
0659f67e84 cambio en validacion 2024-07-17 17:25:08 -03:00
3 changed files with 6 additions and 6 deletions

View file

@ -103,9 +103,9 @@ class SubpedidoController extends Controller
$valid = request()->validate([
'total' => 'required|min:0',
'notas' => 'min:1',
'notas' => 'min:0'
]);
$subpedido->syncDevoluciones($valid['total'], $valid['notas']);
$subpedido->syncDevoluciones($valid['total'], $valid['notas'] ?? "");
return new SubpedidoResource($subpedido);
}

View file

@ -19,8 +19,8 @@
<th></th>
</tr>
<tr v-if="this.$root.devoluciones">
<th><p :title="this.$root.pedido.devoluciones_notas">Devoluciones</p></th>
<th class="has-text-right"></th>
<th><p>Devoluciones</p></th>
<td><p :title="this.$root.pedido.devoluciones_notas">...</p></td>
<th class="has-text-right">-{{ this.$root.pedido.devoluciones_total }}</th>
<th>
<button @click.capture="modificarDevoluciones()" class="button is-warning">
@ -34,7 +34,7 @@
<tr>
<th>Total total</th>
<th></th>
<th>{{ total }}</th>
<th class="has-text-right">{{ total }}</th>
<th></th>
<th></th>
</tr>

View file

@ -27,7 +27,7 @@
</tr>
<tr>
<th>Total bonos barriales:</th>
<td class="has-text-right">$ {{ totalBonosBarriales }}</td>
<td class="has-text-right">$ {{ $parent.totalBonosBarriales }}</td>
</tr>
<tr v-if="$root.devoluciones">
<th>Total devoluciones:</th>