feat: doc direct purchase cost

This commit is contained in:
Adnan Zahir
2026-04-19 14:52:01 +07:00
parent 58fbceea24
commit a2ae139fae
7 changed files with 718 additions and 108 deletions
@@ -35,10 +35,11 @@ type HppV2ComponentPart struct {
}
type HppV2Component struct {
Code string `json:"code"`
Title string `json:"title"`
Total float64 `json:"total"`
Parts []HppV2ComponentPart `json:"parts"`
Code string `json:"code"`
Title string `json:"title"`
Scopes []string `json:"scopes,omitempty"`
Total float64 `json:"total"`
Parts []HppV2ComponentPart `json:"parts"`
}
type HppV2Breakdown struct {
@@ -50,6 +51,7 @@ type HppV2Breakdown struct {
LocationID uint `json:"location_id,omitempty"`
PeriodDate string `json:"period_date"`
Window HppV2DateWindow `json:"window"`
TotalPulletCost float64 `json:"total_pullet_cost"`
TotalProductionCost float64 `json:"total_production_cost"`
Components []HppV2Component `json:"components"`
Hpp HppCostResponse `json:"hpp"`