OJO: las relaciones del lado del proveedor necesitan laburo aun

This commit is contained in:
2024-01-21 17:17:30 -03:00
parent 6520ab2677
commit 6e9e556117
2 changed files with 41 additions and 39 deletions

View File

@@ -103,7 +103,7 @@ Producto <|-- ProductoNoPercedero
Producto <|-- ProductoPercedero Producto <|-- ProductoPercedero
class Producto { class Producto {
+ id: int + Id: int
+ Nombre: string + Nombre: string
+ Precio: double + Precio: double
- PresupuestosStock: List<Presupuestos>? - PresupuestosStock: List<Presupuestos>?
@@ -121,10 +121,10 @@ class Producto {
} }
class Presupuesto { class Presupuesto {
+ id: int + Id: int
+ Proveedor: Proveedor + Proveedor: Proveedor
+ Monto: int + Monto: int
+ Cantidad: int + CantIdad: int
} }
RepositorioPresupuestos "1" *-- "0..*" Presupuesto RepositorioPresupuestos "1" *-- "0..*" Presupuesto
@@ -134,33 +134,33 @@ Presupuesto "0..*" <--* "1" Producto
Proveedor <-- Presupuesto Proveedor <-- Presupuesto
class Proveedor { class Proveedor {
+ id: int + Id: int
+ Nombre: string + Nombre: string
+ RazónSocial: string + RazónSocial: string
} }
class Venta { class Venta {
+ id: int + Id: int
- Detalles: List<Detalle> - Detalles: List<Detalle>
+ MostrarDetalles(): ReadOnlyCollection<Detalle> + MostrarDetalles(): ReadOnlyCollection<Detalle>
+ AñadirDetalle(Detalle): void + AñadirDetalle(Detalle): voId
+ ModificarDetalle(Detalle): void + ModificarDetalle(Detalle): voId
+ EliminarDetalle(Detalle): void + EliminarDetalle(Detalle): voId
} }
Lote -- Producto Lote -- Producto
class Lote { class Lote {
+ id: int + Id: int
+ Producto: Producto + Producto: Producto
+ CantidadDeProductos: long + CantIdadDeProductos: long
+ FechaVencimiento: DateTime + FechaVencimiento: DateTime
} }
class Detalle <where T: Producto>{ class Detalle <where T: Producto>{
+ id: int + Id: int
+ Cantidad: int + CantIdad: int
+ PrecioUnitario: double + PrecioUnitario: double
+ Subtotal: double + Subtotal: double
+ Producto: T + Producto: T
@@ -169,7 +169,7 @@ class Detalle <where T: Producto>{
class Cliente { class Cliente {
+ Cuit: string + Cuit: string
+ Nombre: string + Nombre: string
+ Apellido: string + ApellIdo: string
+ Direccion: string + Direccion: string
+ Correo: string + Correo: string
} }
@@ -211,45 +211,47 @@ Producto <|-- ProductoNoPercedero
Producto <|-- ProductoPercedero Producto <|-- ProductoPercedero
class Producto { class Producto {
+ id: int + Id: int
+ Nombre: string + Nombre: string
+ Precio: double + Precio: double
- PresupuestosStock: List<Presupuestos>? - Categorias: List<Categoria>?
- Lotes: List<Lote>? - Lotes: List<Lote>?
+ Habilitado: bool + Habilitado: bool
+ MostrarPresupuestos(): ReadOnlyCollection<Presupuesto>
+ AñadirPresupuesto(Presupuesto): bool
+ EliminarPresupuesto(Presupuesto): bool
+ MostrarLotesDeProductos(): ReadOnlyCollection<Lote> + MostrarLotesDeProductos(): ReadOnlyCollection<Lote>
+ AñadirLotesStock(): bool + AñadirLotesStock(): bool
+ EliminarLotesStock(): bool + EliminarLotesStock(): bool
+ MostrarStockRemanente(): long + MostrarStockRemanente(): long
} }
class Presupuesto { class Categoria {
+ id: int + Id: int
+ Proveedor: Proveedor + Descripcion: String
+ Monto: int
+ Cantidad: int
+ habilitado: bool
} }
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 Proveedor "1" <-- "1 ." Presupuesto
class Proveedor { class Proveedor {
+ id: int + Id: int
+ Nombre: string + Nombre: string
+ RazónSocial: string + RazónSocial: string
+ habilitado: bool + Habilitado: bool
} }
class Detalle <where T: Producto>{ class Detalle <where T: Producto>{
+ id: int + Id: int
+ Cantidad: int + CantIdad: int
+ PrecioUnitario: double + PrecioUnitario: double
+ Subtotal: double + Subtotal: double
+ Producto: T + Producto: T
@@ -258,7 +260,7 @@ class Detalle <where T: Producto>{
class Cliente { class Cliente {
+ Cuit: string + Cuit: string
+ Nombre: string + Nombre: string
+ Apellido: string + ApellIdo: string
+ Direccion: string + Direccion: string
+ Correo: string + Correo: string
} }
@@ -270,9 +272,9 @@ class Factura {
- Detalles: List<Detalle> - Detalles: List<Detalle>
+ MostrarDetalles(): ReadOnlyCollection<Detalle> + MostrarDetalles(): ReadOnlyCollection<Detalle>
+ AñadirDetalle(Detalle): void + AñadirDetalle(Detalle): voId
+ ModificarDetalle(Detalle): void + ModificarDetalle(Detalle): voId
+ EliminarDetalle(Detalle): void + EliminarDetalle(Detalle): voId
} }
Cliente "1" <-- "1" Factura Cliente "1" <-- "1" Factura
@@ -282,10 +284,10 @@ Detalle "1 ." --> "1" Producto
Producto "1" --> "1" Lote Producto "1" --> "1" Lote
class Lote { class Lote {
+ id: int + Id: int
+ Producto: Producto + Producto: Producto
+ CantidadDeProductos: long + CantIdadDeProductos: long
+ habilitado: bool + Habilitado: bool
} }
enum EnvaseTipo { enum EnvaseTipo {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 95 KiB