Compare commits

..

No commits in common. "32d84879c7389ed25ad70591dabc36b61a29e00a" and "42f0cc11d499f62035c93671e26631055e03699d" have entirely different histories.

3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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