Compare commits
3 commits
42f0cc11d4
...
32d84879c7
Author | SHA1 | Date | |
---|---|---|---|
32d84879c7 | |||
6f1b4581ce | |||
0659f67e84 |
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue