OJO: las relaciones del lado del proveedor necesitan laburo aun
This commit is contained in:
@@ -103,7 +103,7 @@ Producto <|-- ProductoNoPercedero
|
||||
Producto <|-- ProductoPercedero
|
||||
|
||||
class Producto {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Nombre: string
|
||||
+ Precio: double
|
||||
- PresupuestosStock: List<Presupuestos>?
|
||||
@@ -121,10 +121,10 @@ class Producto {
|
||||
}
|
||||
|
||||
class Presupuesto {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Proveedor: Proveedor
|
||||
+ Monto: int
|
||||
+ Cantidad: int
|
||||
+ CantIdad: int
|
||||
}
|
||||
|
||||
RepositorioPresupuestos "1" *-- "0..*" Presupuesto
|
||||
@@ -134,33 +134,33 @@ Presupuesto "0..*" <--* "1" Producto
|
||||
Proveedor <-- Presupuesto
|
||||
|
||||
class Proveedor {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Nombre: string
|
||||
+ RazónSocial: string
|
||||
}
|
||||
|
||||
class Venta {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
- Detalles: List<Detalle>
|
||||
|
||||
+ MostrarDetalles(): ReadOnlyCollection<Detalle>
|
||||
+ AñadirDetalle(Detalle): void
|
||||
+ ModificarDetalle(Detalle): void
|
||||
+ EliminarDetalle(Detalle): void
|
||||
+ AñadirDetalle(Detalle): voId
|
||||
+ ModificarDetalle(Detalle): voId
|
||||
+ EliminarDetalle(Detalle): voId
|
||||
}
|
||||
|
||||
Lote -- Producto
|
||||
|
||||
class Lote {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Producto: Producto
|
||||
+ CantidadDeProductos: long
|
||||
+ CantIdadDeProductos: long
|
||||
+ FechaVencimiento: DateTime
|
||||
}
|
||||
|
||||
class Detalle <where T: Producto>{
|
||||
+ id: int
|
||||
+ Cantidad: int
|
||||
+ Id: int
|
||||
+ CantIdad: int
|
||||
+ PrecioUnitario: double
|
||||
+ Subtotal: double
|
||||
+ Producto: T
|
||||
@@ -169,7 +169,7 @@ class Detalle <where T: Producto>{
|
||||
class Cliente {
|
||||
+ Cuit: string
|
||||
+ Nombre: string
|
||||
+ Apellido: string
|
||||
+ ApellIdo: string
|
||||
+ Direccion: string
|
||||
+ Correo: string
|
||||
}
|
||||
@@ -211,45 +211,47 @@ Producto <|-- ProductoNoPercedero
|
||||
Producto <|-- ProductoPercedero
|
||||
|
||||
class Producto {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Nombre: string
|
||||
+ Precio: double
|
||||
- PresupuestosStock: List<Presupuestos>?
|
||||
- Categorias: List<Categoria>?
|
||||
- Lotes: List<Lote>?
|
||||
+ Habilitado: bool
|
||||
|
||||
+ MostrarPresupuestos(): ReadOnlyCollection<Presupuesto>
|
||||
+ AñadirPresupuesto(Presupuesto): bool
|
||||
+ EliminarPresupuesto(Presupuesto): bool
|
||||
|
||||
+ MostrarLotesDeProductos(): ReadOnlyCollection<Lote>
|
||||
+ AñadirLotesStock(): bool
|
||||
+ EliminarLotesStock(): bool
|
||||
+ MostrarStockRemanente(): long
|
||||
}
|
||||
|
||||
class Presupuesto {
|
||||
+ id: int
|
||||
+ Proveedor: Proveedor
|
||||
+ Monto: int
|
||||
+ Cantidad: int
|
||||
+ habilitado: bool
|
||||
class Categoria {
|
||||
+ Id: int
|
||||
+ Descripcion: String
|
||||
}
|
||||
|
||||
Presupuesto "1..*" <--* "1 ." Producto
|
||||
Categoria "0..*" <--o "1 ." Producto
|
||||
|
||||
class Presupuesto {
|
||||
+ Id: int
|
||||
+ Proveedor: Proveedor
|
||||
+ Monto: int
|
||||
+ CantIdad: int
|
||||
+ Habilitado: bool
|
||||
}
|
||||
|
||||
Presupuesto "1" --> "1..*" Lote
|
||||
Proveedor "1" <-- "1 ." Presupuesto
|
||||
|
||||
class Proveedor {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Nombre: string
|
||||
+ RazónSocial: string
|
||||
+ habilitado: bool
|
||||
+ Habilitado: bool
|
||||
}
|
||||
|
||||
|
||||
class Detalle <where T: Producto>{
|
||||
+ id: int
|
||||
+ Cantidad: int
|
||||
+ Id: int
|
||||
+ CantIdad: int
|
||||
+ PrecioUnitario: double
|
||||
+ Subtotal: double
|
||||
+ Producto: T
|
||||
@@ -258,7 +260,7 @@ class Detalle <where T: Producto>{
|
||||
class Cliente {
|
||||
+ Cuit: string
|
||||
+ Nombre: string
|
||||
+ Apellido: string
|
||||
+ ApellIdo: string
|
||||
+ Direccion: string
|
||||
+ Correo: string
|
||||
}
|
||||
@@ -270,22 +272,22 @@ class Factura {
|
||||
- Detalles: List<Detalle>
|
||||
|
||||
+ MostrarDetalles(): ReadOnlyCollection<Detalle>
|
||||
+ AñadirDetalle(Detalle): void
|
||||
+ ModificarDetalle(Detalle): void
|
||||
+ EliminarDetalle(Detalle): void
|
||||
+ AñadirDetalle(Detalle): voId
|
||||
+ ModificarDetalle(Detalle): voId
|
||||
+ EliminarDetalle(Detalle): voId
|
||||
}
|
||||
|
||||
Cliente "1" <-- "1" Factura
|
||||
Factura "1 ." *-- "1..*" Detalle
|
||||
|
||||
Detalle "1 ." --> "1" Producto
|
||||
Detalle "1 ." --> "1" Producto
|
||||
|
||||
Producto "1" --> "1" Lote
|
||||
class Lote {
|
||||
+ id: int
|
||||
+ Id: int
|
||||
+ Producto: Producto
|
||||
+ CantidadDeProductos: long
|
||||
+ habilitado: bool
|
||||
+ CantIdadDeProductos: long
|
||||
+ Habilitado: bool
|
||||
}
|
||||
|
||||
enum EnvaseTipo {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 95 KiB |
Reference in New Issue
Block a user