From 94d4605f805f922e55d472f7425cddec8b8c4a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Wed, 26 Aug 2026 13:28:42 -0300 Subject: [PATCH] Fix supply navigation and supplier loading --- backend/services/supplyService.js | 6 +++++- src/pages/Supplies.tsx | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/services/supplyService.js b/backend/services/supplyService.js index 854b2cf..972a635 100644 --- a/backend/services/supplyService.js +++ b/backend/services/supplyService.js @@ -196,12 +196,16 @@ const listKnownSuppliers = async () => { FROM ( SELECT preferred_supplier AS supplier FROM supply_material_details UNION ALL - SELECT supplier FROM supply_lots + SELECT supplier FROM supply_stock_lots UNION ALL SELECT supplier FROM supply_receipts UNION ALL SELECT supplier FROM supply_fabric_plans UNION ALL + SELECT supplier FROM supply_purchase_orders + UNION ALL + SELECT supplier FROM production_orders + UNION ALL SELECT supplier FROM production_yield_supplier_recommendations ) sources WHERE NULLIF(BTRIM(supplier), '') IS NOT NULL diff --git a/src/pages/Supplies.tsx b/src/pages/Supplies.tsx index 5da2667..151a65d 100644 --- a/src/pages/Supplies.tsx +++ b/src/pages/Supplies.tsx @@ -414,7 +414,6 @@ const SuppliesHub = () => { - @@ -2534,7 +2533,7 @@ const PurchaseNeedsScreen = () => { return (
-
+