Fix supply navigation and supplier loading
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m29s

This commit is contained in:
Cauê Faleiros
2026-08-26 13:28:42 -03:00
parent 3a0cc9ffe8
commit 94d4605f80
2 changed files with 6 additions and 3 deletions

View File

@@ -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