Ahora Venta forma parte de factura
This commit is contained in:
@@ -236,8 +236,8 @@ class Presupuesto {
|
||||
+ habilitado: bool
|
||||
}
|
||||
|
||||
Presupuesto "0..*" <--* "1" Producto
|
||||
Proveedor <-- Presupuesto
|
||||
Presupuesto "1..*" <--* "1 ." Producto
|
||||
Proveedor "1" <-- "1 ." Presupuesto
|
||||
|
||||
class Proveedor {
|
||||
+ id: int
|
||||
@@ -246,15 +246,6 @@ class Proveedor {
|
||||
+ 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>{
|
||||
+ id: int
|
||||
@@ -276,16 +267,20 @@ class Factura {
|
||||
+ Total: double
|
||||
+ Fecha: DateTime
|
||||
+ Cliente: Cliente
|
||||
+ Venta: Venta
|
||||
- Detalles: List<Detalle>
|
||||
|
||||
+ MostrarDetalles(): ReadOnlyCollection<Detalle>
|
||||
+ AñadirDetalle(Detalle): void
|
||||
+ ModificarDetalle(Detalle): void
|
||||
+ EliminarDetalle(Detalle): void
|
||||
}
|
||||
|
||||
Cliente <-- Factura
|
||||
Factura --> Venta
|
||||
Venta "1" *-- "1..*" Detalle
|
||||
Cliente "1" <-- "1" Factura
|
||||
Factura "1 ." *-- "1..*" Detalle
|
||||
|
||||
Detalle --> Producto
|
||||
Detalle "1 ." --> "1" Producto
|
||||
|
||||
Producto -- Lote
|
||||
Producto "1" --> "1" Lote
|
||||
class Lote {
|
||||
+ id: int
|
||||
+ Producto: Producto
|
||||
@@ -299,7 +294,7 @@ Enlatado,
|
||||
Cartón,
|
||||
}
|
||||
|
||||
ProductoNoPercedero --> EnvaseTipo
|
||||
ProductoNoPercedero "1" --> "1" EnvaseTipo
|
||||
@enduml
|
||||
|
||||
#+end_src
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 99 KiB |
Reference in New Issue
Block a user