Files
SweetHome/app/enums/CustomerType.js
Claw AI 6394f1d71a
Some checks failed
Build frontend / build (push) Failing after 45s
Fix CustomerType and OwnerType enums: send int instead of string
- CustomerType: PERSONAL=0, FAMILY=1 (was 'Personal', 'Family')
- OwnerType: PERSON=0, REAL_ESTATE_AGENCY=1 (was 'peerson', 'RealEstateAgency')
- Backend Type column is int(11), sending strings caused 415 errors
2026-03-28 14:15:40 +00:00

18 lines
390 B
JavaScript

/**
* CustomerType Enum
* Backend values for customer sub-types
* Used in: Customer registration (Customer/Add)
*/
const CustomerType = Object.freeze({
PERSONAL: 0,
FAMILY: 1,
});
// Map value → Arabic label
const CustomerTypeLabels = Object.freeze({
[CustomerType.PERSONAL]: 'شخصي',
[CustomerType.FAMILY]: 'عائلي',
});
export { CustomerType, CustomerTypeLabels };