mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 00:59:50 +00:00
- Fix date format mismatch between Miscellaneous and Organization constants
- Fix default date format casing ('DD MMM yyyy' -> 'DD MMM YYYY')
- Rename address fields from address_1/address_2 to address1/address2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
41 lines
877 B
TypeScript
41 lines
877 B
TypeScript
import currencies from 'js-money/lib/currency';
|
|
|
|
export const DATE_FORMATS = [
|
|
'MM/DD/YY',
|
|
'DD/MM/YY',
|
|
'YY/MM/DD',
|
|
'MM/DD/yyyy',
|
|
'DD/MM/yyyy',
|
|
'yyyy/MM/DD',
|
|
'DD MMM YYYY',
|
|
'DD MMMM YYYY',
|
|
'MMMM DD, YYYY',
|
|
];
|
|
export const MONTHS = [
|
|
'january',
|
|
'february',
|
|
'march',
|
|
'april',
|
|
'may',
|
|
'june',
|
|
'july',
|
|
'august',
|
|
'september',
|
|
'october',
|
|
'november',
|
|
'december',
|
|
];
|
|
|
|
export const ACCEPTED_LOCALES = ['en', 'ar'];
|
|
|
|
export const ERRORS = {
|
|
TENANT_DATABASE_UPGRADED: 'TENANT_DATABASE_UPGRADED',
|
|
TENANT_NOT_FOUND: 'tenant_not_found',
|
|
TENANT_ALREADY_BUILT: 'TENANT_ALREADY_BUILT',
|
|
TENANT_ALREADY_SEEDED: 'tenant_already_seeded',
|
|
TENANT_DB_NOT_BUILT: 'tenant_db_not_built',
|
|
TENANT_IS_BUILDING: 'TENANT_IS_BUILDING',
|
|
BASE_CURRENCY_MUTATE_LOCKED: 'BASE_CURRENCY_MUTATE_LOCKED',
|
|
TENANT_UPGRADE_IS_RUNNING: 'TENANT_UPGRADE_IS_RUNNING'
|
|
};
|