From 3cd4218d54b72bafe02b0d273bf1e62f92a2f29c Mon Sep 17 00:00:00 2001 From: fede Date: Wed, 14 Oct 2026 02:43:59 -0300 Subject: [PATCH] actualizados algunos temas de valores de retornos que no se entendian --- docs/06_Secuencia/stock/01_Gestionar_Stock.png | 4 ++-- docs/06_Secuencia/stock/plantuml/01_Gestionar_Stock.org | 4 ---- docs/06_Secuencia/venta/02_crear_factura_venta.png | 4 ++-- docs/06_Secuencia/venta/05_modificar_factura.png | 4 ++-- docs/06_Secuencia/venta/06_cancelar_factura.png | 4 ++-- docs/06_Secuencia/venta/07_crear_nota_credito.png | 4 ++-- docs/06_Secuencia/venta/plantuml/02_Crear_Factura_Venta.org | 6 +++--- docs/06_Secuencia/venta/plantuml/05_Modificar_Factura.org | 4 ++-- docs/06_Secuencia/venta/plantuml/06_Cancelar_Factura.org | 4 ++-- docs/06_Secuencia/venta/plantuml/07_Crear_Nota_Credito.org | 2 +- 10 files changed, 18 insertions(+), 22 deletions(-) diff --git a/docs/06_Secuencia/stock/01_Gestionar_Stock.png b/docs/06_Secuencia/stock/01_Gestionar_Stock.png index 84b5596..b8b560c 100644 --- a/docs/06_Secuencia/stock/01_Gestionar_Stock.png +++ b/docs/06_Secuencia/stock/01_Gestionar_Stock.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:74a547b16b2476c0b05cf8bdcb91fd75bafd5f9671b90780c1729fce72107845 -size 89798 +oid sha256:2ed8b70dd034727df35a5b5817976c6fd3d68fc3af60de5f37944fbf4096ca69 +size 89797 diff --git a/docs/06_Secuencia/stock/plantuml/01_Gestionar_Stock.org b/docs/06_Secuencia/stock/plantuml/01_Gestionar_Stock.org index 3319972..716ab81 100644 --- a/docs/06_Secuencia/stock/plantuml/01_Gestionar_Stock.org +++ b/docs/06_Secuencia/stock/plantuml/01_Gestionar_Stock.org @@ -68,7 +68,3 @@ endlegend #+RESULTS: [[file:../01_Gestionar_Stock.png]] - -#+begin_src plantuml :file ../01_Gestionar_Stock.png - -#+end_src diff --git a/docs/06_Secuencia/venta/02_crear_factura_venta.png b/docs/06_Secuencia/venta/02_crear_factura_venta.png index 15e0161..df92952 100644 --- a/docs/06_Secuencia/venta/02_crear_factura_venta.png +++ b/docs/06_Secuencia/venta/02_crear_factura_venta.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1e24814939089e58f9415d5457a41f0a29da7ccca43130a9b3902e66ab28858 -size 224966 +oid sha256:2d7c363564907357f67922568feb4bf26c1594aac7890cada5e84e7b9f7393dc +size 219255 diff --git a/docs/06_Secuencia/venta/05_modificar_factura.png b/docs/06_Secuencia/venta/05_modificar_factura.png index ce02430..3e49d24 100644 --- a/docs/06_Secuencia/venta/05_modificar_factura.png +++ b/docs/06_Secuencia/venta/05_modificar_factura.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9f3411d06cdd9e4eed690f04c97f20a13dcc103198e94c69e6a5b30fc06b0ed0 -size 201405 +oid sha256:f049df45dd75c00eef798500039af2958a60531381a030cc0ccd7fcc09a9bb36 +size 198069 diff --git a/docs/06_Secuencia/venta/06_cancelar_factura.png b/docs/06_Secuencia/venta/06_cancelar_factura.png index 91d3fe6..20ecebd 100644 --- a/docs/06_Secuencia/venta/06_cancelar_factura.png +++ b/docs/06_Secuencia/venta/06_cancelar_factura.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c9f999025ddda4500cfac3b908a6265e8a4eca13109d6beb012ceb33068073f6 -size 154714 +oid sha256:23423e5e970b24ef1269462406e8d50caa0a8fa1d59e489b18d94bc6968efe12 +size 151176 diff --git a/docs/06_Secuencia/venta/07_crear_nota_credito.png b/docs/06_Secuencia/venta/07_crear_nota_credito.png index 4e0ad87..c0cf616 100644 --- a/docs/06_Secuencia/venta/07_crear_nota_credito.png +++ b/docs/06_Secuencia/venta/07_crear_nota_credito.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ecc542c9cfa0ab8a7b9dea3857d4df5ef604bca58b6f88a91d74e98f61ca88e4 -size 72858 +oid sha256:f40b34eb2a165fba31de79fba3a226c651c1bdfd5bc3d4cef1305157fe357dac +size 71146 diff --git a/docs/06_Secuencia/venta/plantuml/02_Crear_Factura_Venta.org b/docs/06_Secuencia/venta/plantuml/02_Crear_Factura_Venta.org index 4862994..c13690f 100644 --- a/docs/06_Secuencia/venta/plantuml/02_Crear_Factura_Venta.org +++ b/docs/06_Secuencia/venta/plantuml/02_Crear_Factura_Venta.org @@ -49,7 +49,7 @@ alt Stock suficiente para todos los productos [Flujo Principal] RepoFactura -> DB: INSERT INTO factura (cliente_id, fecha, subtotal, iva, total, estado, usuario_id) VALUES (%cliente_id%, NOW(), %subtotal%, %iva%, %total%, 'EMITIDA', %usuario_id%) alt Inserción exitosa en MySQL - DB --> RepoFactura: MySQL ExecResult (LastInsertId: 1042) + DB --> RepoFactura: MySQL ok deactivate DB RepoFactura --> Ctrl: nil (error = nil) deactivate RepoFactura @@ -58,7 +58,7 @@ alt Stock suficiente para todos los productos [Flujo Principal] activate RepoProducto RepoProducto -> DB: UPDATE producto SET stock_actual = stock_actual - %qty% WHERE id = %producto_id% activate DB - DB --> RepoProducto: MySQL ExecResult (RowsAffected: 1) + DB --> RepoProducto: MySQL ok deactivate DB RepoProducto --> Ctrl: nil deactivate RepoProducto @@ -67,7 +67,7 @@ alt Stock suficiente para todos los productos [Flujo Principal] activate RepoAsiento RepoAsiento -> DB: INSERT INTO asiento_contable (factura_id, fecha, debe, haber, usuario_id) VALUES (1042, NOW(), %total%, %total%, %usuario_id%) activate DB - DB --> RepoAsiento: MySQL ExecResult (LastInsertId: 501) + DB --> RepoAsiento: MySQL ok deactivate DB RepoAsiento --> Ctrl: nil deactivate RepoAsiento diff --git a/docs/06_Secuencia/venta/plantuml/05_Modificar_Factura.org b/docs/06_Secuencia/venta/plantuml/05_Modificar_Factura.org index dea41c8..28dba48 100644 --- a/docs/06_Secuencia/venta/plantuml/05_Modificar_Factura.org +++ b/docs/06_Secuencia/venta/plantuml/05_Modificar_Factura.org @@ -53,7 +53,7 @@ alt Factura en estado activo (EMITIDA / PENDIENTE) activate RepoFactura RepoFactura -> DB: UPDATE factura SET total = %nuevoTotal%, estado = 'MODIFICADA' WHERE id = %facturaID% activate DB - DB --> RepoFactura: MySQL ExecResult (RowsAffected: 1) + DB --> RepoFactura: MySQL ok deactivate DB RepoFactura --> Ctrl: nil deactivate RepoFactura @@ -70,7 +70,7 @@ alt Factura en estado activo (EMITIDA / PENDIENTE) activate RepoFactura RepoFactura -> DB: UPDATE factura SET total = %nuevoTotal%, estado = 'MODIFICADA' WHERE id = %facturaID% activate DB - DB --> RepoFactura: MySQL ExecResult (RowsAffected: 1) + DB --> RepoFactura: MySQL ok deactivate DB RepoFactura --> Ctrl: nil deactivate RepoFactura diff --git a/docs/06_Secuencia/venta/plantuml/06_Cancelar_Factura.org b/docs/06_Secuencia/venta/plantuml/06_Cancelar_Factura.org index 6dfa7cf..a7e29ea 100644 --- a/docs/06_Secuencia/venta/plantuml/06_Cancelar_Factura.org +++ b/docs/06_Secuencia/venta/plantuml/06_Cancelar_Factura.org @@ -48,7 +48,7 @@ alt Factura activa (EMITIDA / PENDIENTE) [Flujo Principal] activate RepoFactura RepoFactura -> DB: UPDATE factura SET estado = 'CANCELADA', motivo_anulacion = %motivo% WHERE id = %facturaID% activate DB - DB --> RepoFactura: MySQL ExecResult (RowsAffected: 1) + DB --> RepoFactura: MySQL ok deactivate DB RepoFactura --> Ctrl: nil deactivate RepoFactura @@ -57,7 +57,7 @@ alt Factura activa (EMITIDA / PENDIENTE) [Flujo Principal] activate RepoProducto RepoProducto -> DB: UPDATE producto SET stock_actual = stock_actual + %qty% WHERE id = %producto_id% activate DB - DB --> RepoProducto: MySQL ExecResult (RowsAffected: 1) + DB --> RepoProducto: MySQL ok deactivate DB RepoProducto --> Ctrl: nil deactivate RepoProducto diff --git a/docs/06_Secuencia/venta/plantuml/07_Crear_Nota_Credito.org b/docs/06_Secuencia/venta/plantuml/07_Crear_Nota_Credito.org index b48833c..7d43b86 100644 --- a/docs/06_Secuencia/venta/plantuml/07_Crear_Nota_Credito.org +++ b/docs/06_Secuencia/venta/plantuml/07_Crear_Nota_Credito.org @@ -31,7 +31,7 @@ Ctrl -> RepoNC: Crear(entidadNC, usuarioID) activate RepoNC RepoNC -> DB: INSERT INTO nota_credito (factura_id, fecha, importe, motivo, usuario_id) VALUES (%facturaID%, NOW(), %importeNC%, %motivo%, %usuarioID%) activate DB -DB --> RepoNC: MySQL ExecResult (LastInsertId: 801) +DB --> RepoNC: MySQL ok deactivate DB RepoNC --> Ctrl: nil (error = nil) deactivate RepoNC