add response detail recording

This commit is contained in:
giovanni
2026-06-09 09:44:55 +07:00
parent 540434e33b
commit 5e9286428f
4 changed files with 131 additions and 0 deletions
+13
View File
@@ -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
}