Merge remote-tracking branch 'origin/master'

# Conflicts:
#	svc/queries/product_performance_sql.go
#	ui/src/pages/ProductPerformanceProfitability.vue
This commit is contained in:
M_Kececi
2026-07-03 20:46:31 +03:00
parent 3b2bcda462
commit be125a6880
+1
View File
@@ -3523,6 +3523,7 @@ Source AS (
COALESCE(margin_index_90d,0) AS margin_index_90d,
COALESCE(performance_score,0) AS performance_score,
COALESCE(performance_bucket,'') AS performance_bucket,
COALESCE(recommendation,'') AS recommendation,
COALESCE(stock_qty,0) * COALESCE(cost_price_usd,0) AS idle_cost_usd
FROM mk_product_performance_kpi_daily
WHERE kpi_date = (SELECT MAX(kpi_date) FROM mk_product_performance_kpi_daily)