ui: add B2B olmayan stok (orphans) page

This commit is contained in:
M_Kececi
2026-07-02 15:33:49 +03:00
parent 810c0e5eff
commit cbb853d433
19 changed files with 3365 additions and 395 deletions
+34
View File
@@ -929,6 +929,36 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"pricing", "update",
wrapV3(routes.PostProductPricingSaveHandler(pgDB, ml)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/summary", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceSummaryHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/markets", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceMarketsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/countries", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceCountriesHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/customers", "GET",
"pricing", "view",
wrapV3(routes.GetProductPerformanceCustomersHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-performance/refresh", "POST",
"pricing", "update",
wrapV3(routes.PostProductPerformanceRefreshHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/pricing/product-series/definitions", "GET",
"pricing", "view",
@@ -1372,6 +1402,9 @@ func main() {
if err := queries.EnsureProductSeriesAutoInfraTables(pgDB); err != nil {
log.Println("product series auto infra bootstrap failed:", err)
}
if err := queries.EnsureProductPerformanceTables(pgDB); err != nil {
log.Println("product performance infra bootstrap failed:", err)
}
// -------------------------------------------------------
// ✉️ MAILER INIT
@@ -1398,6 +1431,7 @@ func main() {
startProductPricingFxDeltaScheduler(pgDB)
startProductPricingFxFullScheduler(pgDB)
startProductSeriesAutoSchedulers(pgDB)
startProductPerformanceScheduler(pgDB)
handler := enableCORS(
middlewares.GlobalAuthMiddleware(