Ahora Venta forma parte de factura

This commit is contained in:
2024-01-21 17:02:22 -03:00
parent 20b20a144a
commit 6520ab2677
2 changed files with 13 additions and 18 deletions

View File

@@ -236,8 +236,8 @@ class Presupuesto {
+ habilitado: bool + habilitado: bool
} }
Presupuesto "0..*" <--* "1" Producto Presupuesto "1..*" <--* "1 ." Producto
Proveedor <-- Presupuesto Proveedor "1" <-- "1 ." Presupuesto
class Proveedor { class Proveedor {
+ id: int + id: int
@@ -246,15 +246,6 @@ class Proveedor {
+ habilitado: bool + habilitado: bool
} }
class Venta {
+ id: int
- Detalles: List<Detalle>
+ MostrarDetalles(): ReadOnlyCollection<Detalle>
+ AñadirDetalle(Detalle): void
+ ModificarDetalle(Detalle): void
+ EliminarDetalle(Detalle): void
}
class Detalle <where T: Producto>{ class Detalle <where T: Producto>{
+ id: int + id: int
@@ -276,16 +267,20 @@ class Factura {
+ Total: double + Total: double
+ Fecha: DateTime + Fecha: DateTime
+ Cliente: Cliente + Cliente: Cliente
+ Venta: Venta - Detalles: List<Detalle>
+ MostrarDetalles(): ReadOnlyCollection<Detalle>
+ AñadirDetalle(Detalle): void
+ ModificarDetalle(Detalle): void
+ EliminarDetalle(Detalle): void
} }
Cliente <-- Factura Cliente "1" <-- "1" Factura
Factura --> Venta Factura "1 ." *-- "1..*" Detalle
Venta "1" *-- "1..*" Detalle
Detalle --> Producto Detalle "1 ." --> "1" Producto
Producto -- Lote Producto "1" --> "1" Lote
class Lote { class Lote {
+ id: int + id: int
+ Producto: Producto + Producto: Producto
@@ -299,7 +294,7 @@ Enlatado,
Cartón, Cartón,
} }
ProductoNoPercedero --> EnvaseTipo ProductoNoPercedero "1" --> "1" EnvaseTipo
@enduml @enduml
#+end_src #+end_src

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 99 KiB