ui: add B2B olmayan stok (orphans) page
This commit is contained in:
@@ -17,19 +17,31 @@ type ProductPerformanceRow struct {
|
||||
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"`
|
||||
@@ -43,18 +55,20 @@ type ProductPerformanceRow struct {
|
||||
}
|
||||
|
||||
type ProductPerformanceSummary struct {
|
||||
KpiDate string `json:"kpi_date"`
|
||||
TotalRows int `json:"total_rows"`
|
||||
StarCount int `json:"star_count"`
|
||||
StockRisk int `json:"stock_risk"`
|
||||
NoStockDemand int `json:"no_stock_demand"`
|
||||
TotalStock float64 `json:"total_stock"`
|
||||
StockCostUSD float64 `json:"stock_cost_usd"`
|
||||
RiskCostUSD float64 `json:"risk_cost_usd"`
|
||||
SalesQty90 float64 `json:"sales_qty_90d"`
|
||||
SalesUSD90 float64 `json:"sales_usd_90d"`
|
||||
GrossProfit90 float64 `json:"gross_profit_usd_90d"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
KpiDate string `json:"kpi_date"`
|
||||
TotalRows int `json:"total_rows"`
|
||||
StarCount int `json:"star_count"`
|
||||
StockRisk int `json:"stock_risk"`
|
||||
NoStockDemand int `json:"no_stock_demand"`
|
||||
TotalStock float64 `json:"total_stock"`
|
||||
StockCostUSD float64 `json:"stock_cost_usd"`
|
||||
RiskCostUSD float64 `json:"risk_cost_usd"`
|
||||
SalesQty90 float64 `json:"sales_qty_90d"`
|
||||
SalesUSD90 float64 `json:"sales_usd_90d"`
|
||||
GrossProfit90 float64 `json:"gross_profit_usd_90d"`
|
||||
MarketCount90 int `json:"market_count_90d"`
|
||||
CustomerCount90 int `json:"customer_count_90d"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type ProductPerformanceMarketRow struct {
|
||||
@@ -111,3 +125,21 @@ type ProductPerformanceCustomerRow struct {
|
||||
SalesUSD365 float64 `json:"sales_usd_365d"`
|
||||
LastSaleDate string `json:"last_sale_date"`
|
||||
}
|
||||
|
||||
type ProductPerformanceSalesDetailRow struct {
|
||||
SalesDate string `json:"sales_date"`
|
||||
RefNumber string `json:"ref_number"`
|
||||
MarketKey string `json:"market_key"`
|
||||
Country string `json:"country"`
|
||||
CustomerSegment string `json:"customer_segment"`
|
||||
CustomerCode string `json:"customer_code"`
|
||||
CustomerName string `json:"customer_name"`
|
||||
SalesQty float64 `json:"sales_qty"`
|
||||
SalesUSD float64 `json:"sales_usd"`
|
||||
AvgPriceUSD float64 `json:"avg_price_usd"`
|
||||
}
|
||||
|
||||
type ProductPerformanceStockSizeRow struct {
|
||||
SizeCode string `json:"size_code"`
|
||||
StockQty float64 `json:"stock_qty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user