product performance grouped kpi improvements
This commit is contained in:
@@ -1,57 +1,67 @@
|
||||
package models
|
||||
|
||||
type ProductPerformanceRow struct {
|
||||
KpiDate string `json:"kpi_date"`
|
||||
ProductCode string `json:"product_code"`
|
||||
ColorCode string `json:"color_code"`
|
||||
YakaKodu string `json:"yaka_kodu"`
|
||||
ItemDescription string `json:"item_description"`
|
||||
Kategori string `json:"kategori"`
|
||||
Seri string `json:"seri"`
|
||||
YasGrubu string `json:"yas_grubu"`
|
||||
AskiliYan string `json:"askili_yan"`
|
||||
UrunIlkGrubu string `json:"urun_ilk_grubu"`
|
||||
UrunAnaGrubu string `json:"urun_ana_grubu"`
|
||||
UrunAltGrubu string `json:"urun_alt_grubu"`
|
||||
MarketKey string `json:"market_key"`
|
||||
StockQty float64 `json:"stock_qty"`
|
||||
SalesQty30 float64 `json:"sales_qty_30d"`
|
||||
SalesQty90 float64 `json:"sales_qty_90d"`
|
||||
SalesQty180 float64 `json:"sales_qty_180d"`
|
||||
SalesQty365 float64 `json:"sales_qty_365d"`
|
||||
SalesQty730 float64 `json:"sales_qty_730d"`
|
||||
SalesUSD30 float64 `json:"sales_usd_30d"`
|
||||
SalesUSD90 float64 `json:"sales_usd_90d"`
|
||||
SalesUSD180 float64 `json:"sales_usd_180d"`
|
||||
SalesUSD365 float64 `json:"sales_usd_365d"`
|
||||
AvgDailySales90 float64 `json:"avg_daily_sales_90d"`
|
||||
AvgDailySales180 float64 `json:"avg_daily_sales_180d"`
|
||||
StockDays90 float64 `json:"stock_days_90d"`
|
||||
StockDays180 float64 `json:"stock_days_180d"`
|
||||
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
||||
AvgPriceUSD180 float64 `json:"avg_price_usd_180d"`
|
||||
CostPriceUSD float64 `json:"cost_price_usd"`
|
||||
BasePriceUSD float64 `json:"base_price_usd"`
|
||||
BasePriceTRY float64 `json:"base_price_try"`
|
||||
GrossProfitUSD90 float64 `json:"gross_profit_usd_90d"`
|
||||
GrossProfitUSD180 float64 `json:"gross_profit_usd_180d"`
|
||||
GrossMargin90 float64 `json:"gross_margin_90d"`
|
||||
GrossMargin180 float64 `json:"gross_margin_180d"`
|
||||
UnitProfitCost90 float64 `json:"unit_profit_cost_90d"`
|
||||
UnitProfitCost180 float64 `json:"unit_profit_cost_180d"`
|
||||
UnitProfitBase90 float64 `json:"unit_profit_base_90d"`
|
||||
UnitProfitBase180 float64 `json:"unit_profit_base_180d"`
|
||||
MarketCount90 int `json:"market_count_90d"`
|
||||
CustomerCount90 int `json:"customer_count_90d"`
|
||||
SalesIndex90 float64 `json:"sales_index_90d"`
|
||||
PriceIndex90 float64 `json:"price_index_90d"`
|
||||
MarginIndex90 float64 `json:"margin_index_90d"`
|
||||
PerformanceScore float64 `json:"performance_score"`
|
||||
PerformanceBucket string `json:"performance_bucket"`
|
||||
Recommendation string `json:"recommendation"`
|
||||
LastSaleDate string `json:"last_sale_date"`
|
||||
LastRefNumber string `json:"last_ref_number"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
KpiDate string `json:"kpi_date"`
|
||||
ProductCode string `json:"product_code"`
|
||||
ColorCode string `json:"color_code"`
|
||||
YakaKodu string `json:"yaka_kodu"`
|
||||
ItemDescription string `json:"item_description"`
|
||||
Kategori string `json:"kategori"`
|
||||
Seri string `json:"seri"`
|
||||
YasGrubu string `json:"yas_grubu"`
|
||||
AskiliYan string `json:"askili_yan"`
|
||||
UrunIlkGrubu string `json:"urun_ilk_grubu"`
|
||||
UrunAnaGrubu string `json:"urun_ana_grubu"`
|
||||
UrunAltGrubu string `json:"urun_alt_grubu"`
|
||||
MarketKey string `json:"market_key"`
|
||||
StockQty float64 `json:"stock_qty"`
|
||||
SalesQty30 float64 `json:"sales_qty_30d"`
|
||||
SalesQty90 float64 `json:"sales_qty_90d"`
|
||||
SalesQty180 float64 `json:"sales_qty_180d"`
|
||||
SalesQty365 float64 `json:"sales_qty_365d"`
|
||||
SalesQty730 float64 `json:"sales_qty_730d"`
|
||||
SalesQtyTotal float64 `json:"sales_qty_total"`
|
||||
SalesUSD30 float64 `json:"sales_usd_30d"`
|
||||
SalesUSD90 float64 `json:"sales_usd_90d"`
|
||||
SalesUSD180 float64 `json:"sales_usd_180d"`
|
||||
SalesUSD365 float64 `json:"sales_usd_365d"`
|
||||
SalesUSDTotal float64 `json:"sales_usd_total"`
|
||||
AvgDailySales90 float64 `json:"avg_daily_sales_90d"`
|
||||
AvgDailySales180 float64 `json:"avg_daily_sales_180d"`
|
||||
AvgDailySales365 float64 `json:"avg_daily_sales_365d"`
|
||||
AvgDailySalesTotal float64 `json:"avg_daily_sales_total"`
|
||||
StockDays90 float64 `json:"stock_days_90d"`
|
||||
StockDays180 float64 `json:"stock_days_180d"`
|
||||
StockDays365 float64 `json:"stock_days_365d"`
|
||||
StockDaysTotal float64 `json:"stock_days_total"`
|
||||
StockTurnover90 float64 `json:"stock_turnover_90d"`
|
||||
StockTurnover180 float64 `json:"stock_turnover_180d"`
|
||||
StockTurnover365 float64 `json:"stock_turnover_365d"`
|
||||
StockTurnoverTotal float64 `json:"stock_turnover_total"`
|
||||
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
||||
AvgPriceUSD180 float64 `json:"avg_price_usd_180d"`
|
||||
CostPriceUSD float64 `json:"cost_price_usd"`
|
||||
BasePriceUSD float64 `json:"base_price_usd"`
|
||||
BasePriceTRY float64 `json:"base_price_try"`
|
||||
GrossProfitUSD90 float64 `json:"gross_profit_usd_90d"`
|
||||
GrossProfitUSD180 float64 `json:"gross_profit_usd_180d"`
|
||||
GrossMargin90 float64 `json:"gross_margin_90d"`
|
||||
GrossMargin180 float64 `json:"gross_margin_180d"`
|
||||
UnitProfitCost90 float64 `json:"unit_profit_cost_90d"`
|
||||
UnitProfitCost180 float64 `json:"unit_profit_cost_180d"`
|
||||
UnitProfitBase90 float64 `json:"unit_profit_base_90d"`
|
||||
UnitProfitBase180 float64 `json:"unit_profit_base_180d"`
|
||||
MarketCount90 int `json:"market_count_90d"`
|
||||
CustomerCount90 int `json:"customer_count_90d"`
|
||||
SalesIndex90 float64 `json:"sales_index_90d"`
|
||||
PriceIndex90 float64 `json:"price_index_90d"`
|
||||
MarginIndex90 float64 `json:"margin_index_90d"`
|
||||
PerformanceScore float64 `json:"performance_score"`
|
||||
PerformanceBucket string `json:"performance_bucket"`
|
||||
Recommendation string `json:"recommendation"`
|
||||
LastSaleDate string `json:"last_sale_date"`
|
||||
LastRefNumber string `json:"last_ref_number"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type ProductPerformanceSummary struct {
|
||||
|
||||
Reference in New Issue
Block a user