ui: update ProductPerformanceProfitability page to enhance table views and tabs management
This commit is contained in:
@@ -282,6 +282,68 @@ type ProductPerformanceCustomerRow struct {
|
||||
LastSaleDate string `json:"last_sale_date"`
|
||||
}
|
||||
|
||||
type ProductPerformanceSalesBreakdownRow struct {
|
||||
Breakdown string `json:"breakdown"`
|
||||
ProductCode string `json:"product_code"`
|
||||
ColorCode string `json:"color_code"`
|
||||
YakaKodu string `json:"yaka_kodu"`
|
||||
ItemDescription string `json:"item_description"`
|
||||
MarketKey string `json:"market_key"`
|
||||
Country string `json:"country"`
|
||||
CustomerSegment string `json:"customer_segment"`
|
||||
CustomerCode string `json:"customer_code"`
|
||||
CustomerName string `json:"customer_name"`
|
||||
ProductCount int `json:"product_count"`
|
||||
CustomerCount90 int `json:"customer_count_90d"`
|
||||
InvoiceCount90 int `json:"invoice_count_90d"`
|
||||
SalesQty90 float64 `json:"sales_qty_90d"`
|
||||
SalesUSD90 float64 `json:"sales_usd_90d"`
|
||||
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
||||
BasePriceUSD90 float64 `json:"base_price_usd_90d"`
|
||||
CostPriceUSD90 float64 `json:"cost_price_usd_90d"`
|
||||
GrossProfitBase90 float64 `json:"gross_profit_base_usd_90d"`
|
||||
GrossProfitCost90 float64 `json:"gross_profit_cost_usd_90d"`
|
||||
GrossMarginBase90 float64 `json:"gross_margin_base_90d"`
|
||||
GrossMarginCost90 float64 `json:"gross_margin_cost_90d"`
|
||||
CustomerCount180 int `json:"customer_count_180d"`
|
||||
InvoiceCount180 int `json:"invoice_count_180d"`
|
||||
SalesQty180 float64 `json:"sales_qty_180d"`
|
||||
SalesUSD180 float64 `json:"sales_usd_180d"`
|
||||
AvgPriceUSD180 float64 `json:"avg_price_usd_180d"`
|
||||
BasePriceUSD180 float64 `json:"base_price_usd_180d"`
|
||||
CostPriceUSD180 float64 `json:"cost_price_usd_180d"`
|
||||
GrossProfitBase180 float64 `json:"gross_profit_base_usd_180d"`
|
||||
GrossProfitCost180 float64 `json:"gross_profit_cost_usd_180d"`
|
||||
GrossMarginBase180 float64 `json:"gross_margin_base_180d"`
|
||||
GrossMarginCost180 float64 `json:"gross_margin_cost_180d"`
|
||||
SalesQty365 float64 `json:"sales_qty_365d"`
|
||||
SalesUSD365 float64 `json:"sales_usd_365d"`
|
||||
AvgPriceUSD365 float64 `json:"avg_price_usd_365d"`
|
||||
BasePriceUSD365 float64 `json:"base_price_usd_365d"`
|
||||
CostPriceUSD365 float64 `json:"cost_price_usd_365d"`
|
||||
GrossProfitBase365 float64 `json:"gross_profit_base_usd_365d"`
|
||||
GrossProfitCost365 float64 `json:"gross_profit_cost_usd_365d"`
|
||||
GrossMarginBase365 float64 `json:"gross_margin_base_365d"`
|
||||
GrossMarginCost365 float64 `json:"gross_margin_cost_365d"`
|
||||
CustomerCountTotal int `json:"customer_count_total"`
|
||||
InvoiceCountTotal int `json:"invoice_count_total"`
|
||||
SalesQtyTotal float64 `json:"sales_qty_total"`
|
||||
SalesUSDTotal float64 `json:"sales_usd_total"`
|
||||
AvgPriceUSDTotal float64 `json:"avg_price_usd_total"`
|
||||
BasePriceUSDTotal float64 `json:"base_price_usd_total"`
|
||||
CostPriceUSDTotal float64 `json:"cost_price_usd_total"`
|
||||
GrossProfitBaseTotal float64 `json:"gross_profit_base_usd_total"`
|
||||
GrossProfitCostTotal float64 `json:"gross_profit_cost_usd_total"`
|
||||
GrossMarginBaseTotal float64 `json:"gross_margin_base_total"`
|
||||
GrossMarginCostTotal float64 `json:"gross_margin_cost_total"`
|
||||
HasCost bool `json:"has_cost"`
|
||||
SalesIndex90 float64 `json:"sales_index_90d"`
|
||||
PerformanceScore float64 `json:"performance_score"`
|
||||
PerformanceBucket string `json:"performance_bucket"`
|
||||
Recommendation string `json:"recommendation"`
|
||||
LastSaleDate string `json:"last_sale_date"`
|
||||
}
|
||||
|
||||
type ProductPerformanceSalesDetailRow struct {
|
||||
SalesDate string `json:"sales_date"`
|
||||
RefNumber string `json:"ref_number"`
|
||||
|
||||
Reference in New Issue
Block a user