Overview
The quotation system provides:- Client Selection - Choose from existing clients or enter a name manually
- Product Selection - Add products from your catalog with visual search
- Inline Editing - Edit quantities, prices, and custom names directly in the grid
- Product Personalization - Add custom names for each piece and embroidery logos
- Additional Charges - Include extra fees for embroidery, design work, etc.
- PDF Generation - Download quotations as professional PDFs
- Multi-image Support - Product images displayed in quotation
Creating a Quotation
Select or enter client
Choose an existing client from the autocomplete dropdown or manually enter a client name.
Add products
Search and add products to the quotation. The autocomplete shows product images, names, and SKUs.
Customize products
Edit quantities, prices, and add custom names or embroidery logos for personalization.
Quotation Creation Page
The create quotation page (src/pages/Quotations/CreateAdminQuotation.tsx:17) provides a comprehensive interface:
Client Selection
Dual-mode client selector with autocomplete (src/pages/Quotations/CreateAdminQuotation.tsx:339-397):
Product Search and Addition
Visual product search with autocomplete (src/pages/Quotations/CreateAdminQuotation.tsx:399-436):
Product Addition Logic
Add products with initial values (src/pages/Quotations/CreateAdminQuotation.tsx:64-86):
Product Grid with Inline Editing
Editable grid for quotation items (src/pages/Quotations/CreateAdminQuotation.tsx:219-325):
Inline Editing Handler
Update item values and recalculate subtotals (src/pages/Quotations/CreateAdminQuotation.tsx:88-112):
Product Customization Dialog
Modal for adding custom names and embroidery logos (src/pages/Quotations/CreateAdminQuotation.tsx:520-600):
Customization Features
- Custom Names
- Embroidery Logo
Add individual names for each piece in the order. Includes a “Same name for all” shortcut button.
Implementation
Save Customization
Additional Charges
Add extra fees for embroidery, design work, rush orders, etc. (src/pages/Quotations/CreateAdminQuotation.tsx:455-497):
Add Charge Handler
Total Calculation
Calculate product subtotal, additional charges, and global total (src/pages/Quotations/CreateAdminQuotation.tsx:215-217):
Total Display
Saving the Quotation
Submit quotation with products, customizations, and charges (src/pages/Quotations/CreateAdminQuotation.tsx:172-213):
API Service Methods
Quotation API endpoints (src/services/admin.service.tsx:88-98):
Best Practices
Use the “Same name for all” button when personalizing multiple pieces with the same name to save time.
The quotation grid highlights editable cells in blue and cells with custom names in green for better visibility.
User Experience Features
Visual Feedback
- Blue cells - Editable fields (price, quantity)
- Green cells - Fields with custom names
- Product images - Visual confirmation of products
- Success/error toasts - Real-time feedback
- Loading indicators - During save operations
Keyboard Shortcuts
- Single click - Edit quantity, price, or custom name
- Enter/Tab - Move to next editable cell
- Escape - Cancel edit
Next Steps
Client Management
Manage your client database
Products
Configure your product catalog