demo seed change 2
This commit is contained in:
@@ -17,12 +17,17 @@
|
||||
|
||||
/**
|
||||
* Customer type classifications
|
||||
* Backend: CustomerType enum in models/enums.py (lines 10-14)
|
||||
* Backend: CustomerType enum in models/enums.py (lines 10-18)
|
||||
*/
|
||||
export enum CustomerType {
|
||||
INDIVIDUAL = 'individual',
|
||||
BUSINESS = 'business',
|
||||
CENTRAL_BAKERY = 'central_bakery'
|
||||
CENTRAL_BAKERY = 'central_bakery',
|
||||
RETAIL = 'RETAIL',
|
||||
WHOLESALE = 'WHOLESALE',
|
||||
RESTAURANT = 'RESTAURANT',
|
||||
HOTEL = 'HOTEL',
|
||||
ENTERPRISE = 'ENTERPRISE'
|
||||
}
|
||||
|
||||
export enum DeliveryMethod {
|
||||
|
||||
@@ -42,7 +42,7 @@ export type QualityCheckType =
|
||||
| 'moisture'
|
||||
| 'shelf-life';
|
||||
|
||||
export type CustomerType = 'individual' | 'business' | 'central_bakery';
|
||||
export type CustomerType = 'individual' | 'business' | 'central_bakery' | 'RETAIL' | 'WHOLESALE' | 'RESTAURANT' | 'HOTEL' | 'ENTERPRISE';
|
||||
|
||||
export type CustomerSegment = 'vip' | 'regular' | 'wholesale';
|
||||
|
||||
|
||||
@@ -236,10 +236,15 @@ const CustomerSelectionStep: React.FC<WizardStepProps> = ({ dataRef, onDataChang
|
||||
onChange={(e) => handleNewCustomerChange({ type: e.target.value })}
|
||||
className="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] bg-[var(--bg-primary)] text-[var(--text-primary)]"
|
||||
>
|
||||
<option value="retail">{t('customerOrder.customerTypes.retail')}</option>
|
||||
<option value="wholesale">{t('customerOrder.customerTypes.wholesale')}</option>
|
||||
<option value="RETAIL">{t('customerOrder.customerTypes.retail')}</option>
|
||||
<option value="WHOLESALE">{t('customerOrder.customerTypes.wholesale')}</option>
|
||||
<option value="event">{t('customerOrder.customerTypes.event')}</option>
|
||||
<option value="restaurant">{t('customerOrder.customerTypes.restaurant')}</option>
|
||||
<option value="RESTAURANT">{t('customerOrder.customerTypes.restaurant')}</option>
|
||||
<option value="HOTEL">{t('customerOrder.customerTypes.hotel')}</option>
|
||||
<option value="ENTERPRISE">{t('customerOrder.customerTypes.enterprise')}</option>
|
||||
<option value="individual">{t('customerOrder.customerTypes.individual')}</option>
|
||||
<option value="business">{t('customerOrder.customerTypes.business')}</option>
|
||||
<option value="central_bakery">{t('customerOrder.customerTypes.central_bakery')}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -74,6 +74,11 @@ const CustomerDetailsStep: React.FC<WizardStepProps> = ({ dataRef, onDataChange
|
||||
<option value="individual">{t('customer.customerTypes.individual')}</option>
|
||||
<option value="business">{t('customer.customerTypes.business')}</option>
|
||||
<option value="central_bakery">{t('customer.customerTypes.central_bakery')}</option>
|
||||
<option value="RETAIL">{t('customer.customerTypes.retail')}</option>
|
||||
<option value="WHOLESALE">{t('customer.customerTypes.wholesale')}</option>
|
||||
<option value="RESTAURANT">{t('customer.customerTypes.restaurant')}</option>
|
||||
<option value="HOTEL">{t('customer.customerTypes.hotel')}</option>
|
||||
<option value="ENTERPRISE">{t('customer.customerTypes.enterprise')}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user