Skip to content

Commit f3277b3

Browse files
committed
Fix: mala configuración de JSON recetas service
1 parent 2e8e324 commit f3277b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Frontend/app/Services/Inventario/RecetasService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function crearReceta(array $data): array
7979
'ingredientes' => array_map(function($detalle) {
8080
return [
8181
'idIngrediente' => (int) $detalle['idIngrediente'],
82-
'cantidadNecesaria' => (float) $detalle['cantidadRequerida'],
82+
'cantidadRequerida' => (float) $detalle['cantidadRequerida'],
8383
'idUnidad' => (int) $detalle['idUnidad'],
8484
];
8585
}, $data['detalles'] ?? [])
@@ -105,7 +105,7 @@ public function actualizarReceta(int $idProducto, array $data): array
105105
'ingredientes' => array_map(function($detalle) {
106106
return [
107107
'idIngrediente' => (int) $detalle['idIngrediente'],
108-
'cantidadNecesaria' => (float) $detalle['cantidadRequerida'],
108+
'cantidadRequerida' => (float) $detalle['cantidadRequerida'],
109109
'idUnidad' => (int) $detalle['idUnidad'],
110110
];
111111
}, $data['detalles'] ?? [])

0 commit comments

Comments
 (0)