Overview
The Suppliers and Brands module helps you organize product metadata by managing brand information and maintaining supplier contacts and details.Accessing Suppliers and Brands
Navigate to the page
Click “Marcas y Proveedores” in the sidebar navigation to open the management page.
Managing Brands
Viewing Brands
Review brand cards
Brands are displayed in a grid layout showing:
- Brand name
- Description
- Number of associated products
- Creation date
- Action buttons (Edit/Delete)
Searching Brands
Creating a New Brand
Fill in brand information
In the modal form:
- Nombre de la Marca (required): Enter the brand name (e.g., “Samsung”, “Apple”, “HP”)
- Descripción (optional): Add a description (e.g., “Productos electrónicos Samsung de alta calidad”)
Brand names should be unique to avoid confusion when assigning products.
Editing a Brand
Deleting a Brand
Viewing Brand Statistics
Click on a brand to view detailed statistics:- Total products under the brand
- Active vs. inactive products
- Limited vs. unlimited stock products
- Total stock quantity
- Low stock product count
- Average product price
brandsService.getBrandStats(brandId).
Managing Suppliers
Viewing Suppliers
Review supplier list
Suppliers are displayed in a list/card format showing:
- Supplier name
- Contact person
- Email and phone
- Address
- Number of products
- Active/inactive status
Searching Suppliers
Creating a New Supplier
Enter required information
Fill in the form fields:
- Nombre del Proveedor (required): Company name (e.g., “Distribuidora Tecnología S.A.”)
Add contact details
Enter optional but recommended information:
- Persona de Contacto: Contact person name (e.g., “Juan Pérez”)
- Email: Contact email (e.g., “ventas@proveedor.com”)
- Teléfono: Phone number (e.g., “+52 55 1234 5678”)
Add location and description
- Dirección: Physical address
- Descripción: Additional details about the supplier
Include complete contact information to make reordering easier.
Editing a Supplier
Update information
Modify any fields in the form:
- Company name
- Contact details
- Address
- Description
- Active status
Deactivating a Supplier
Instead of deleting, you can deactivate suppliers:Inactive suppliers don’t appear in product creation dropdowns but are still linked to existing products.
Deleting a Supplier
Viewing Supplier Statistics
Click on a supplier to view:- Total products from this supplier
- Active product count
- Stock distribution (limited vs. unlimited)
- Total inventory from supplier
- Low stock items
- Average product price
suppliersService.getSupplierStats(supplierId).
Refreshing Data
Best Practices
For Brands
- Use official names: Enter brands exactly as they appear officially
- Add descriptions: Help staff identify what each brand represents
- Keep it current: Remove obsolete brands when no longer carrying them
- Avoid duplicates: Check existing brands before creating new ones
- Be consistent: Use the same naming convention (e.g., “HP” not “Hewlett-Packard”)
For Suppliers
Maintain accurate supplier information for efficient reordering and relationship management.
- Complete contact info: Always include email and phone
- Update regularly: Keep contact details current
- Add notes: Use description field for payment terms, lead times, etc.
- Mark inactive properly: Don’t delete suppliers with historical orders
- Multiple contacts: Add backup contact info in description
- Track performance: Use description to note supplier reliability
Common Workflows
Adding Products from a New Supplier
Supplier Contact Update
Discontinuing a Brand
Troubleshooting
Cannot Delete Brand/Supplier
Reason: The brand/supplier has associated products. Solution:- View the statistics to see product count
- Go to Inventory and filter by that brand/supplier
- Either delete those products or reassign them
- Return and delete the brand/supplier
Duplicate Brand Names
Reason: Brand was created multiple times with slight variations. Solution:- Identify the correct brand name
- Reassign all products to the correct brand
- Delete duplicate brands
Supplier Information Not Saving
Possible causes:- Email format is invalid
- Name field is empty (required)
- Network connection issue
- Verify all required fields are filled
- Check email format (must include @ and domain)
- Retry saving
- Check browser console for errors
Technical Reference
Brands Service
Operations usebrandsService.js:
- Get brands:
brandsService.getBrands(params)- Params:
search,page,limit
- Params:
- Create brand:
brandsService.createBrand(brandData)- Required:
name - Optional:
description
- Required:
- Update brand:
brandsService.updateBrand(brandId, updateData) - Delete brand:
brandsService.deleteBrand(brandId) - Get stats:
brandsService.getBrandStats(brandId)
Suppliers Service
Operations usesuppliersService.js:
- Get suppliers:
suppliersService.getSuppliers(params)- Params:
search,isActive,page,limit
- Params:
- Create supplier:
suppliersService.createSupplier(supplierData)- Required:
name - Optional:
description,contactName,email,phone,address
- Required:
- Update supplier:
suppliersService.updateSupplier(supplierId, updateData) - Delete supplier:
suppliersService.deleteSupplier(supplierId) - Get stats:
suppliersService.getSupplierStats(supplierId)
- Brands:
https://cemac-api.vercel.app/brands - Suppliers:
https://cemac-api.vercel.app/suppliers