mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 00:59:50 +00:00
fix(organization): align date formats and fix address field naming
- 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>
This commit is contained in:
@@ -1,18 +1,15 @@
|
|||||||
import currencies from 'js-money/lib/currency';
|
import currencies from 'js-money/lib/currency';
|
||||||
|
|
||||||
export const DATE_FORMATS = [
|
export const DATE_FORMATS = [
|
||||||
'MM.dd.yy',
|
'MM/DD/YY',
|
||||||
'dd.MM.yy',
|
'DD/MM/YY',
|
||||||
'yy.MM.dd',
|
'YY/MM/DD',
|
||||||
'MM.dd.yyyy',
|
'MM/DD/yyyy',
|
||||||
'dd.MM.yyyy',
|
'DD/MM/yyyy',
|
||||||
'yyyy.MM.dd',
|
'yyyy/MM/DD',
|
||||||
'MM/DD/YYYY',
|
'DD MMM YYYY',
|
||||||
'M/D/YYYY',
|
'DD MMMM YYYY',
|
||||||
'dd MMM YYYY',
|
'MMMM DD, YYYY',
|
||||||
'dd MMMM YYYY',
|
|
||||||
'MMMM dd, YYYY',
|
|
||||||
'EEE, MMMM dd, YYYY',
|
|
||||||
];
|
];
|
||||||
export const MONTHS = [
|
export const MONTHS = [
|
||||||
'january',
|
'january',
|
||||||
|
|||||||
@@ -12,6 +12,6 @@ export const transformBuildDto = (
|
|||||||
): BuildOrganizationDto => {
|
): BuildOrganizationDto => {
|
||||||
return {
|
return {
|
||||||
...buildDTO,
|
...buildDTO,
|
||||||
dateFormat: defaultTo(buildDTO.dateFormat, 'DD MMM yyyy'),
|
dateFormat: defaultTo(buildDTO.dateFormat, 'DD MMM YYYY'),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -111,12 +111,12 @@ export default function PreferencesGeneralForm({ isSubmitting }) {
|
|||||||
>
|
>
|
||||||
<Stack>
|
<Stack>
|
||||||
<FInputGroup
|
<FInputGroup
|
||||||
name={'address.address_1'}
|
name={'address.address1'}
|
||||||
placeholder={'Address 1'}
|
placeholder={'Address 1'}
|
||||||
fastField
|
fastField
|
||||||
/>
|
/>
|
||||||
<FInputGroup
|
<FInputGroup
|
||||||
name={'address.address_2'}
|
name={'address.address2'}
|
||||||
placeholder={'Address 2'}
|
placeholder={'Address 2'}
|
||||||
fastField
|
fastField
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user