mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
add paired adjustment triger depletion adjustment
This commit is contained in:
@@ -5,6 +5,7 @@ import "time"
|
||||
type AdjustmentStock struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
ProductWarehouseId uint `gorm:"column:product_warehouse_id;not null"`
|
||||
PairedAdjustmentId *uint `gorm:"column:paired_adjustment_id"`
|
||||
TransactionType string `gorm:"column:transaction_type;type:varchar(100);not null;default:LEGACY"`
|
||||
FunctionCode string `gorm:"column:function_code;type:varchar(64)"`
|
||||
TotalQty float64 `gorm:"column:total_qty;default:0"`
|
||||
@@ -18,5 +19,6 @@ type AdjustmentStock struct {
|
||||
AdjNumber string `gorm:"column:adj_number;uniqueIndex;not null"`
|
||||
|
||||
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
||||
PairedAdjustment *AdjustmentStock `gorm:"foreignKey:PairedAdjustmentId;references:Id"`
|
||||
StockLog *StockLog `gorm:"polymorphic:Loggable;polymorphicType:LoggableType;polymorphicId:LoggableId;polymorphicValue:ADJUSTMENT"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user