Private
Public Access
actualizados algunos temas de valores de retornos que no se entendian
This commit is contained in:
1 parent
2ab239e144
commit
3cd4218d54
10 files changed
+18
-22
No files matched your search
Binary file not shown.
@@ -68,7 +68,3 @@ endlegend
|
||||
|
||||
#+RESULTS:
|
||||
[[file:../01_Gestionar_Stock.png]]
|
||||
|
||||
#+begin_src plantuml :file ../01_Gestionar_Stock.png
|
||||
|
||||
#+end_src
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user