mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-06-09 15:07:49 +00:00
add response detail recording
This commit is contained in:
@@ -7,7 +7,20 @@ type RecordingStock struct {
|
||||
ProjectFlockKandangId *uint `gorm:"column:project_flock_kandang_id;index"`
|
||||
UsageQty *float64 `gorm:"column:usage_qty"`
|
||||
PendingQty *float64 `gorm:"column:pending_qty"`
|
||||
TotalPrice float64 `gorm:"-"`
|
||||
Allocations []RecordingStockAlloc `gorm:"-"`
|
||||
|
||||
Recording Recording `gorm:"foreignKey:RecordingId;references:Id"`
|
||||
ProductWarehouse ProductWarehouse `gorm:"foreignKey:ProductWarehouseId;references:Id"`
|
||||
}
|
||||
|
||||
type RecordingStockAlloc struct {
|
||||
SourceType string
|
||||
SourceId uint
|
||||
PrNumber string
|
||||
PoNumber string
|
||||
AdjNumber string
|
||||
Qty float64
|
||||
UnitPrice float64
|
||||
Subtotal float64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user