Vendors
Manage the suppliers you work with. Add new vendors, update contact info, deactivate ones you're no longer using.
Manage the suppliers you work with. Add new vendors, update contact info, deactivate ones you're no longer using.
Central directory of every supplier DC Apparel works with. Add new vendors, edit contact info, mark ones you're no longer using as inactive.
Just adding a vendor here doesn't create a login for them. To let them log into their portal and get notifications:
USER_UUID with the new user's ID and VENDOR_EMAIL with their vendor row's email:UPDATE auth.users SET raw_app_meta_data = raw_app_meta_data || jsonb_build_object('role', 'vendor') WHERE id = 'USER_UUID';
UPDATE public.profiles SET role='vendor', vendor_id=(SELECT id FROM public.vendors WHERE email='VENDOR_EMAIL') WHERE id='USER_UUID';
The badge on the vendor card shows whether they have a linked login.
Tap Deactivate on any active vendor. They stay in the system (for order history) but no new orders can be assigned to them. Re-activate anytime.
Vendors can't be deleted from the UI (to preserve order history). If you truly need to remove one, use Supabase SQL: DELETE FROM public.vendors WHERE id='...';