diff --git a/docs/05_Prototipos/D-PRO-STOCK.org b/docs/05_Prototipos/D-PRO-STOCK.org index 9b87bba..c17dbe5 100644 --- a/docs/05_Prototipos/D-PRO-STOCK.org +++ b/docs/05_Prototipos/D-PRO-STOCK.org @@ -10,13 +10,14 @@ | 2 | Ingresar Stock | Ingresar Stock, Cargar Remito, Transcripción usando IA, Registrar Diferencias | | 3 | Ingresar Detalle Stock | Ingresar Stock, Cargar Remito | | 4 | Detalle de Stock | Mostrar Existencias, Registrar Comentario / Observación, Reservar Stock | -| 5 | Trasladar Stock (modal) | Trasladar Stock, Registrar Movimiento Contable, Generar Logs | +| 5 | Trasladar Stock (modal) | Trasladar Stock, Registrar Movimiento Contable | | 6 | Ajustar Stock (modal) | Ajustar Stock, Registrar Movimiento Contable, Registrar Comentario / Observación, | -| | | Notificar Stock Bajo, Generar Logs | -| 7 | Registrar Devolución | Registrar Devolución, Registrar Movimiento Contable, Generar Logs | -| 8 | Recepción / Diferencias | Registrar Diferencias, Enviar Notificación por webhook / email | -| 9 | Reportes de Stock | Generar Reporte de Stock, Exportar Reporte | -| 10 | Historial de Movimientos | Consultar Historial de Movimientos | +| | | Notificar Stock Bajo | +| 7 | Registrar Devolución | Registrar Devolución, Registrar Movimiento Contable | +| 8 | Reportes de Stock | Generar Reporte de Stock, Exportar Reporte | +| 9 | Reservas de Stock | Reservar Stock, Consultar Reservas | +| 10 | Reservar Stock (modal) | Reservar Stock | +| 11 | Liberar Reserva (modal) | Liberar Reserva | * Flow @@ -43,8 +44,8 @@ title Gestión de Stock Filtro aceite | FO-123 | A1 | 0 | 5 | 0 | 0 | AGOTADO | [Ver detalle] } - { [Ver detalle] | [Trasladar] | [Ajustar] | [Reservar] } - { [Ingresar stock] | [Historial] | [Reportes] } + { [Trasladar] | [Ajustar] | [Reservar] } + { [Ingresar stock] | [Reportes] | [Devoluciones] } } @endsalt #+end_src @@ -214,10 +215,11 @@ title Registrar Devolución { Cliente: |"........................." } { Fecha: |"01/09/2026" } - {+ - Producto | Cantidad vendida | Cantidad devuelta - Bujía | 10 | 2 - Filtro | 5 | 1 + {# + Producto | Cantidad vendida | Cantidad devuelta | Valor Devuelto + Bujía | 10 | 2 | $20.000 + Filtro | 5 | 1 | $15.000 + TOTAL | . | . | $35.000 } { Motivo: | ^Producto defectuoso^ } @@ -237,8 +239,9 @@ title Registrar Devolución @startsalt title Reportes Stock { - + { Producto: |^Todos^} { Almacén: |^Todos^} + { Tipo: |^Todos^} { Desde: |"01/08/2026"} { Hasta: |"01/09/2026"} { [Generar Reporte] | [Limpiar filtros] } @@ -259,30 +262,81 @@ title Reportes Stock #+RESULTS: [[file:./stock/08_reportes_stock.png]] -* Historial de Movimientos -#+begin_src plantuml :file ./stock/09_historial_movimientos.png +* Reservas de Stock +#+begin_src plantuml :file ./stock/10_gestion_reservas.png @startsalt -title Historial de Movimientos +title Gestión de Reservas de Stock { - { Producto: |^Todos^} - { Almacén: |^Todos^} - { Tipo: |^Todos^} - { Desde: |"01/08/2026"} - { Hasta: |"01/09/2026"} - - { [Buscar] | [Limpiar filtros] } - - {+ - Fecha | Producto | Tipo | Cantidad | Usuario | Referencia - 01/09 | Bujía | Ingreso | +20 | Fede | Remito #123 - 01/09 | Bujía | Ajuste | -2 | Fede | Ajuste #124 - 30/08 | Filtro | Traslado | -5 | Juan | Traslado #120 + { + Buscar: |"Buscar producto..." + Cliente: |"Buscar Nombre Cliente..."| + Almacén: | ^Todos^ + } + { + Estado: |^Todas^^ Activa^^ Vencida^^ Liberada^| + { [Buscar] | [Limpiar filtros] } + } +. +. + {# + Producto | Código | Almacén | Cant. Reservada | Reservado para | Fecha reserva | Vence | Estado | Acciones + Amortiguador | AM-001 | A1 | 3 | Cliente #045 | 01/09 | 15/09 | Activa | {[Ver] | [Liberar]} + Bujía | BU-023 | A2 | 3 | Taller García | 28/08 | 05/09 | Vencida | {[Ver] | [Liberar]} + Filtro aceite | FO-123 | A1 | 2 | Orden #987 | 30/08 | 10/09 | Activa | {[Ver] | [Liberar]} } - { [Ver detalle] } + { [Nueva reserva] } } @endsalt #+end_src #+RESULTS: -[[file:./stock/09_historial_movimientos.png]] +[[file:./stock/10_gestion_reservas.png]] + +* Reservar Stock (modal) +#+begin_src plantuml :file ./stock/09_reservar_stock.png +@startsalt +title Reservar Stock +{ + { Producto: | "Amortiguador delantero" | Código: | "AM-001" } + + { Almacén: | ^Almacén A^ } + { Cantidad a reservar: | "3" } + { Stock disponible: | "15" } + + { Reservado para: | "Cliente 0 / Orden #045" } + { Fecha de vencimiento: | "15/09/2026" } + + + { [Cancelar] | [Confirmar reserva] } +} +@endsalt +#+end_src + +#+RESULTS: +[[file:./stock/09_reservar_stock.png]] + +* Liberar Reserva (modal) +#+begin_src plantuml :file ./stock/11_liberar_reserva.png +@startsalt +title Liberar Reserva +{ + + { Producto: | "Amortiguador delantero" | Código: | "AM-001" } + + { Cantidad reservada: | "3" } + { Reservado para: | "Cliente #045" } + { Fecha de reserva: | "01/09/2026" } +. + {+ + ⚠ Esta acción liberará el stock reservado y quedará + disponible nuevamente para la venta. + } + + { [Cancelar] | [Confirmar liberación] } +} +@endsalt +#+end_src + +#+RESULTS: +[[file:./stock/11_liberar_reserva.png]] diff --git a/docs/05_Prototipos/stock/01_gestion_stock.png b/docs/05_Prototipos/stock/01_gestion_stock.png index ca0b0cc..b8fff47 100644 --- a/docs/05_Prototipos/stock/01_gestion_stock.png +++ b/docs/05_Prototipos/stock/01_gestion_stock.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8501c79911bfcdbb214418b30c81bce5e7909efaa2283f1e4f8157581796482e -size 24725 +oid sha256:0ecef246f60bd2e6bc0683a3aa52d2646643aaf2d18143e00d1680731d7c8380 +size 24658 diff --git a/docs/05_Prototipos/stock/07_registro_devolucion.png b/docs/05_Prototipos/stock/07_registro_devolucion.png index 422c9a3..d50057d 100644 --- a/docs/05_Prototipos/stock/07_registro_devolucion.png +++ b/docs/05_Prototipos/stock/07_registro_devolucion.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf1e939f857ee00c5d6fa325a08494f9a5ac37b4a1887c64c35a41c382314922 -size 13198 +oid sha256:fbfd4326ed0e6286b76cf37b14654714ad65c97e6fac3f46558e23ada43b254c +size 15596 diff --git a/docs/05_Prototipos/stock/08_reportes_stock.png b/docs/05_Prototipos/stock/08_reportes_stock.png index f814748..53a69c7 100644 --- a/docs/05_Prototipos/stock/08_reportes_stock.png +++ b/docs/05_Prototipos/stock/08_reportes_stock.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:235361c0ce8cf12810e9c4b3f906dc24e44d1dd3e51048af9fae875ec9d206e7 -size 16567 +oid sha256:36329705e30ced145bf9b09536521e6c0fdd3828818e2c3211a24ee879ffd3af +size 18550 diff --git a/docs/05_Prototipos/stock/09_historial_movimientos.png b/docs/05_Prototipos/stock/09_historial_movimientos.png deleted file mode 100644 index 5688812..0000000 --- a/docs/05_Prototipos/stock/09_historial_movimientos.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be1244ea0db0eb0390908e57763d34021c1a457083771388f3bcd7246c7b8d9b -size 16770 diff --git a/docs/05_Prototipos/stock/09_reservar_stock.png b/docs/05_Prototipos/stock/09_reservar_stock.png new file mode 100644 index 0000000..a41792f --- /dev/null +++ b/docs/05_Prototipos/stock/09_reservar_stock.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:684a276f9d0efb3b6a699de99edf987f3da9553511ea5d51c2fd2b704bf5c322 +size 12603 diff --git a/docs/05_Prototipos/stock/10_gestion_reservas.png b/docs/05_Prototipos/stock/10_gestion_reservas.png new file mode 100644 index 0000000..7f343c5 --- /dev/null +++ b/docs/05_Prototipos/stock/10_gestion_reservas.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f596f8fe17da83784240e483ab0daeb8bec5c2d6440cb67293a31b393c3e9d3 +size 28844 diff --git a/docs/05_Prototipos/stock/11_liberar_reserva.png b/docs/05_Prototipos/stock/11_liberar_reserva.png new file mode 100644 index 0000000..c209c0b --- /dev/null +++ b/docs/05_Prototipos/stock/11_liberar_reserva.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be1cb9d1ee1c92c28e956bd4b37fbfc71acc8e169f003a5d44a563584758fbb9 +size 12483 diff --git a/docs/diagramas/plantuml/D-CUD-STOCK.org b/docs/diagramas/plantuml/D-CUD-STOCK.org index f51daf7..da81536 100644 --- a/docs/diagramas/plantuml/D-CUD-STOCK.org +++ b/docs/diagramas/plantuml/D-CUD-STOCK.org @@ -35,8 +35,13 @@ rectangle "Gestion de Stock" { usecase "Exportar reporte" as ER usecase "Reservar stock" as RS + usecase "Consultar reservas" as VR + usecase "Liberar reserva" as LR + usecase "Registrar devolucion" as RD + + usecase "Generar logs" as GL usecase "Enviar Notificacion por\nwebhook / email" as EN @@ -81,7 +86,9 @@ GRS <.. ER : <> GS <.. RS : <> -RS ..> RM : <> +/' + ' RS ..> RM : <> + '/ RD ..> RM : <> IS ..> GL : <> @@ -91,6 +98,9 @@ RM ..> GL : <> NSB ..> EN : <> RDR ..> EN : <> +RS ..> VR : <> +RS <.. LR : <> +LR ..> GL : <> @enduml #+end_src diff --git a/docs/diagramas/png/D-CUD-STOCK.png b/docs/diagramas/png/D-CUD-STOCK.png index 50a7f1a..009f4f6 100644 --- a/docs/diagramas/png/D-CUD-STOCK.png +++ b/docs/diagramas/png/D-CUD-STOCK.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bfba1c512b0111f2cc715d1dfb749f598937dd7831443576298fec204cb45e41 -size 125002 +oid sha256:ce4911808de060ca994038bd2307f38bfd47a1a7d380f0e7f81e64a622cc5d9a +size 140150