diff --git a/docs/05_Prototipos/D-PRO-STOCK.org b/docs/05_Prototipos/D-PRO-STOCK.org index 889214f..c647f1f 100644 --- a/docs/05_Prototipos/D-PRO-STOCK.org +++ b/docs/05_Prototipos/D-PRO-STOCK.org @@ -4,20 +4,19 @@ * TOC -| # | Interfaz | Casos de uso que cubre | -|-----+---------------------------------------+-----------------------------------------------------------------------------------| -| 1 | Gestión de Stock (pantalla principal) | Gestionar Stock, Mostrar Existencias, Buscar Existencias | -| 2 | Ingresar Stock | Ingresar Stock, Cargar Remito, Transcripción usando IA, Registrar Diferencias | -| 2.1 | Ingresar Detalle Stock | Ingresar Stock, Cargar Remito | -| 3 | Administrar Stock | Administrar Stock, Trasladar Stock, Ajustar Stock, Reservar Stock | -| 4 | Detalle de Stock | Mostrar Existencias, Registrar Comentario / Observación, Reservar Stock | -| 5 | Trasladar Stock (modal) | Trasladar Stock, Registrar Movimiento Contable, Generar Logs | -| 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 | +| # | Interfaz | Casos de uso que cubre | +|----+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------| +| 1 | Gestión de Stock (pantalla principal) | Gestionar Stock, Buscar Existencias, Administrar Stock, Trasladar Stock, Ajustar Stock, Reservar Stock | +| 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 | +| 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 | * Flow @@ -38,13 +37,14 @@ title Gestión de Stock . . {+ - Producto | Código | Almacén | Stock | Mínimo | Estado | Acciones - Amortiguador | AM-001 | A1 | 15 | 10 | OK | [Ver detalle] - Bujía | BU-023 | A2 | 3 | 8 | BAJO | [Ver detalle] - Filtro aceite | FO-123 | A1 | 0 | 5 | AGOTADO | [Ver detalle] + Producto | Código | Almacén | Stock | Mínimo | Reservado | Dispobible | Estado | Acciones + Amortiguador | AM-001 | A1 | 15 | 10 | 3 | 12 | OK | [Ver detalle] + Bujía | BU-023 | A2 | 3 | 8 | 3 | 0 | BAJO | [Ver detalle] + Filtro aceite | FO-123 | A1 | 0 | 5 | 0 | 0 | AGOTADO | [Ver detalle] } - { [Ingresar stock] | [Administrar stock] | [Reportes] } + { [Ver detalle] | [Trasladar] | [Ajustar] | [Reservar] } + { [Ingresar stock] | [Historial] | [Reportes] } } @endsalt #+end_src @@ -91,7 +91,7 @@ title Ingresar Stock [[file:./stock/02_ingresar_stock.png]] * Ingresar Detalles Stock -#+begin_src plantuml :file ./stock/02.1_ingresar_detalle_stock.png +#+begin_src plantuml :file ./stock/03_ingresar_detalle_stock.png @startsalt title Agregar producto al remito { @@ -114,52 +114,126 @@ title Ingresar Stock #+end_src #+RESULTS: -[[file:./stock/02.1_ingresar_detalle_stock.png]] - -* Administrar Stock -#+begin_src plantuml :file ./stock/03_administrar_stock.png -@startsalt - -@endsalt -#+end_src +[[file:./stock/03_ingresar_detalle_stock.png]] * Detalle de Stock #+begin_src plantuml :file ./stock/04_detalle_stock.png @startsalt +title Detalle de Stock +{ + { Producto: | "Amortiguador delantero" | Código: | "AM-001"} + { Stock actual | "15" | Stock mínimo | "10" | Reservado | "3" | Disponible | "12"} + + { [Trasladar] | [Ajustar] | [Reservar] } +. + { + Observaciones: |"Proveedor informó demora en próximo envío." + } + + {Nueva observación: | "...................." | [Agregar comentario]} + +. + {-Últimos movimientos} + {# + Fecha | Tipo | Cantidad | Usuario + 01/09 | Ingreso | +10 | Fede + 30/08 | Venta | -2 | Juan + 28/08 | Ajuste | +5 | Fede + } + + { [Ver historial completo] } +} @endsalt #+end_src +#+RESULTS: +[[file:./stock/04_detalle_stock.png]] + * Trasladar Stock (modal) #+begin_src plantuml :file ./stock/05_translado_stock.png @startsalt +title Trasladar Stock (modal) +{ + {Producto: | "Amortiguador delantero" | Código: |"AM-001"} + + { Origen: | [Almacén A ▼] } + { Destino: | [Almacén B ▼] } + { Cantidad: | "5" } + + { Stock disponible en origen: | "15"} + + {Observación: |"........................."} + + { [Cancelar] | [Confirmar traslado] } +} @endsalt #+end_src +#+RESULTS: +[[file:./stock/05_translado_stock.png]] + * Ajustar Stock (modal) #+begin_src plantuml :file ./stock/06_ajuste_stock.png @startsalt +title Ajustar Stock +{ + + Producto: |Amortiguador delantero + Código: |AM-001 + + Stock actual: | "15" + Nuevo stock: | "12" + Diferencia: | "-3" + + Motivo: |^Rotura^ + + Observación: |"........................." +. + {+ + ⚠ El nuevo stock se encuentra por debajo + del mínimo configurado. + } + + [Cancelar] | [Confirmar ajuste] +} @endsalt #+end_src +#+RESULTS: +[[file:./stock/06_ajuste_stock.png]] + * Registrar Devolución #+begin_src plantuml :file ./stock/07_registro_devolucion.png @startsalt +title Registrar Devolución +{ + { Documento: |"Buscar factura/remito..." } + { Cliente: |"........................." } + { Fecha: |"01/09/2026" } + {+ + Producto | Cantidad vendida | Cantidad devuelta + Bujía | 10 | 2 + Filtro | 5 | 1 + } + + { Motivo: | ^Producto defectuoso^ } + + { Observación: | "........................." } + + { [Cancelar] | [Registrar devolución] } +} @endsalt #+end_src -* Recepción / Diferencias (modal) -#+begin_src plantuml :file ./stock/08_recepcion_diferencias.png -@startsalt - -@endsalt -#+end_src +#+RESULTS: +[[file:./stock/07_registro_devolucion.png]] * Reportes de Stock -#+begin_src plantuml :file ./stock/09_reportes_stock.png +#+begin_src plantuml :file ./stock/08_reportes_stock.png @startsalt @endsalt @@ -167,8 +241,29 @@ title Ingresar Stock #+end_src * Historial de Movimientos -#+begin_src plantuml :file ./stock/10_historial_movimientos.png +#+begin_src plantuml :file ./stock/09_historial_movimientos.png @startsalt +title Historial de Movimientos +{ + { 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 + } + + { [Ver detalle] } +} @endsalt #+end_src + +#+RESULTS: +[[file:./stock/09_historial_movimientos.png]] diff --git a/docs/05_Prototipos/stock/01_gestion_stock.png b/docs/05_Prototipos/stock/01_gestion_stock.png index 32fa43f..ca0b0cc 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:de959668e29e1c711cfcd6a2f621bdf266f5544a4011d47e68de4ec6373ae047 -size 21375 +oid sha256:8501c79911bfcdbb214418b30c81bce5e7909efaa2283f1e4f8157581796482e +size 24725 diff --git a/docs/05_Prototipos/stock/02.1_ingresar_detalle_stock.png b/docs/05_Prototipos/stock/02.1_ingresar_detalle_stock.png deleted file mode 100644 index 5d673ba..0000000 --- a/docs/05_Prototipos/stock/02.1_ingresar_detalle_stock.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed352f54fd8030f00f5d2695342bab443e26dc89a756832e4cc110e688a3fcfb -size 14609 diff --git a/docs/05_Prototipos/stock/02_ingresar_stock.png b/docs/05_Prototipos/stock/02_ingresar_stock.png index c3a6abd..058808e 100644 --- a/docs/05_Prototipos/stock/02_ingresar_stock.png +++ b/docs/05_Prototipos/stock/02_ingresar_stock.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9504fe5061b6f973c657761f18de49a27e71451a6bd24fd4a73df50a90ad0e6d -size 19722 +oid sha256:6e031db507e5878035ab3d97a6b5d7cb796764ab26d5af68e9bcc199724f1291 +size 18026 diff --git a/docs/05_Prototipos/stock/03_ingresar_detalle_stock.png b/docs/05_Prototipos/stock/03_ingresar_detalle_stock.png new file mode 100644 index 0000000..315a03c --- /dev/null +++ b/docs/05_Prototipos/stock/03_ingresar_detalle_stock.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b9a07ce920ebce5ce77e8288acbf132568bdfe8d0a052dc4b213a80f30ac7fe +size 13723 diff --git a/docs/05_Prototipos/stock/04_detalle_stock.png b/docs/05_Prototipos/stock/04_detalle_stock.png new file mode 100644 index 0000000..f7003dc --- /dev/null +++ b/docs/05_Prototipos/stock/04_detalle_stock.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c9ccc679b9474a9a06c27b3c3b1c5bd2e4d2743d0eed97090e73d1d7cf19fa1 +size 21107 diff --git a/docs/05_Prototipos/stock/05_translado_stock.png b/docs/05_Prototipos/stock/05_translado_stock.png new file mode 100644 index 0000000..f52b990 --- /dev/null +++ b/docs/05_Prototipos/stock/05_translado_stock.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b4b834019a08a85034324b4e42f31305e8091419c314b691600b57a97d723a6 +size 12031 diff --git a/docs/05_Prototipos/stock/06_ajuste_stock.png b/docs/05_Prototipos/stock/06_ajuste_stock.png new file mode 100644 index 0000000..e6d3988 --- /dev/null +++ b/docs/05_Prototipos/stock/06_ajuste_stock.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:faf7ed6d13bac42b30e7b14241011da3d0d1b8e69a9a21c2309140416283b276 +size 14860 diff --git a/docs/05_Prototipos/stock/07_registro_devolucion.png b/docs/05_Prototipos/stock/07_registro_devolucion.png new file mode 100644 index 0000000..422c9a3 --- /dev/null +++ b/docs/05_Prototipos/stock/07_registro_devolucion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf1e939f857ee00c5d6fa325a08494f9a5ac37b4a1887c64c35a41c382314922 +size 13198 diff --git a/docs/05_Prototipos/stock/08_recepcion_diferencias.png b/docs/05_Prototipos/stock/08_recepcion_diferencias.png deleted file mode 100644 index e893c3b..0000000 --- a/docs/05_Prototipos/stock/08_recepcion_diferencias.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f11d7a612217a08be43df0cbb74f1629b5d5b3e2371e3e4b89383f141d502f6 -size 27484 diff --git a/docs/05_Prototipos/stock/09_historial_movimientos.png b/docs/05_Prototipos/stock/09_historial_movimientos.png new file mode 100644 index 0000000..5688812 --- /dev/null +++ b/docs/05_Prototipos/stock/09_historial_movimientos.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be1244ea0db0eb0390908e57763d34021c1a457083771388f3bcd7246c7b8d9b +size 16770