funcion/devoluciones #28

Merged
rho merged 31 commits from funcion/devoluciones into master 2024-08-27 21:18:17 -03:00
Showing only changes of commit 0659f67e84 - Show all commits

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