Private
Public Access
feat: añadido campo de cantidad reservada en stock
This commit is contained in:
1 parent
b722522bf0
commit
56f959a63d
3 files changed
+9
-7
No files matched your search
@@ -7,11 +7,12 @@ import (
|
||||
)
|
||||
|
||||
type Stock struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
Cantidad uint `gorm:"not null;default:0" json:"cantidad"`
|
||||
RepuestoID uint64 `gorm:"index;not null" json:"repuestoId"`
|
||||
Repuesto Repuesto `gorm:"foreignKey:RepuestoID" json:"repuesto"`
|
||||
Observacion string `gorm:"type:varchar(60)" json:"observacion"`
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
Cantidad uint `gorm:"not null;default:0" json:"cantidad"`
|
||||
CantidadReservada uint `gorm:"not null:default:0" json:"cantidadReservada"`
|
||||
RepuestoID uint64 `gorm:"index;not null" json:"repuestoId"`
|
||||
Repuesto Repuesto `gorm:"foreignKey:RepuestoID" json:"repuesto"`
|
||||
Observacion string `gorm:"type:varchar(60)" json:"observacion"`
|
||||
|
||||
Movmientos datatypes.JSONSlice[MovimientoStock] `gorm:"type:json" json:"movimientos,omitempty"`
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ class "Stock" as S {
|
||||
ID: uint64
|
||||
RepuestoID: uint64
|
||||
Cantidad: uint
|
||||
CantidadReservada: uint
|
||||
Repuesto: Repuesto
|
||||
Observacion: string
|
||||
Movimientos: MovimientosStock[]
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user