Merge branch 'feat/sapronak' into 'development'

[FEAT][BE]: add query adjustment stock at closing sapronak

See merge request mbugroup/lti-api!304
This commit is contained in:
Hafizh A. Y.
2026-02-04 07:50:07 +00:00
7 changed files with 219 additions and 16 deletions
+1
View File
@@ -11,6 +11,7 @@ type AdjustmentStock struct {
PendingQty float64 `gorm:"column:pending_qty;default:0"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"`
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"`
AdjNumber string `gorm:"column:adj_number;uniqueIndex;not null"`
ProductWarehouse *ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
StockLog *StockLog `gorm:"polymorphic:Loggable;polymorphicType:LoggableType;polymorphicId:LoggableId;polymorphicValue:ADJUSTMENT"`