Private
Public Access
feat: añadida entidad de devoluciones
This commit is contained in:
1 parent
bd65f3477a
commit
a85af05dae
4 files changed
+54
-8
No files matched your search
@@ -22,6 +22,7 @@ Las siguientes entidades heredan de gorm.Model
|
||||
|
||||
- Cliente
|
||||
- Descuento
|
||||
- Devolucion
|
||||
- FormaPago
|
||||
- Comprobante
|
||||
- Factura
|
||||
@@ -158,8 +159,6 @@ Nombre: string
|
||||
Repuestos: []Repuesto
|
||||
}
|
||||
|
||||
|
||||
|
||||
class "NotaCredito" as NC {
|
||||
Motivo: string
|
||||
FacturaOrigenID: uint
|
||||
@@ -178,6 +177,27 @@ FacturaOrigen: Factura
|
||||
NotaDebito "0..1" --> "1" Factura
|
||||
|
||||
|
||||
class "Devolucion" as DV {
|
||||
Motivo: string
|
||||
FacturaOrigenID: uint
|
||||
FacturaOrigen: Factura
|
||||
Detalles: []DevolucionDetalle
|
||||
}
|
||||
|
||||
Devolucion <|-- Comprobante
|
||||
Devolucion "0..1" <--o "1" Factura
|
||||
|
||||
|
||||
class "DevolucionDetalle" as DVD {
|
||||
RepuestoID: uint64
|
||||
Cantidad: uint
|
||||
PrecioUnitario: float64
|
||||
Subtotal: float64
|
||||
}
|
||||
|
||||
DevolucionDetalle "1" --> "1" Repuesto
|
||||
|
||||
|
||||
class "OrdenCompra" as O {
|
||||
ProveedorId: uint
|
||||
Proveedor: Proveedor
|
||||
@@ -248,7 +268,7 @@ FechaVencimiento: time.Time
|
||||
}
|
||||
|
||||
Reserva "0..*" --> "1" Cliente
|
||||
Repuestos "1..*" --> "1" Reserva
|
||||
Repuesto "1..*" --> "1" Reserva
|
||||
Almacen "1" --> "0..*" Reserva
|
||||
Reserva "1" --> "1" EstadoReserva
|
||||
|
||||
@@ -326,6 +346,7 @@ Comprobante --|> Recibo
|
||||
Comprobante --|> NotaCredito
|
||||
Comprobante --|> NotaDebito
|
||||
Comprobante --|> OrdenCompra
|
||||
Comprobante --|> Devolucion
|
||||
|
||||
|
||||
@enduml
|
||||
|
||||
Reference in new issue
Block a user