mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: branch & warehouse multi select.
This commit is contained in:
@@ -54,10 +54,7 @@ function APAgingSummaryHeader({
|
||||
filterByOption: 'without-zero-balance',
|
||||
};
|
||||
// Formik initial values.
|
||||
const initialValues = transformToForm(
|
||||
{ ...pageFilter, branchesIds: [] },
|
||||
defaultValues,
|
||||
);
|
||||
const initialValues = transformToForm({ ...pageFilter }, defaultValues);
|
||||
|
||||
// Handle form submit.
|
||||
const handleSubmit = (values, { setSubmitting }) => {
|
||||
|
||||
@@ -11,6 +11,7 @@ export const getDefaultAPAgingSummaryQuery = () => {
|
||||
agingDaysBefore: 30,
|
||||
agingPeriods: 3,
|
||||
vendorsIds: [],
|
||||
branchesIds: [],
|
||||
filterByOption: 'without-zero-balance',
|
||||
}
|
||||
}
|
||||
@@ -51,13 +51,12 @@ function ARAgingSummaryHeader({
|
||||
branchesIds: [],
|
||||
filterByOption: 'without-zero-balance',
|
||||
};
|
||||
|
||||
|
||||
// Initial values.
|
||||
const initialValues = transformToForm(
|
||||
{
|
||||
...pageFilter,
|
||||
asDate: moment(pageFilter.asDate).toDate(),
|
||||
branchesIds: [],
|
||||
},
|
||||
defaultValues,
|
||||
);
|
||||
|
||||
@@ -15,5 +15,6 @@ export const getDefaultARAgingSummaryQuery = () => {
|
||||
agingPeriods: 3,
|
||||
customersIds: [],
|
||||
filterByOption: 'without-zero-balance',
|
||||
branchesIds: [],
|
||||
};
|
||||
};
|
||||
|
||||
@@ -47,6 +47,7 @@ export const useBalanceSheetQuery = () => {
|
||||
return {
|
||||
...defaultQuery,
|
||||
...transformToForm(locationQuery, defaultQuery),
|
||||
branchesIds: [],
|
||||
};
|
||||
}, [locationQuery]);
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ export const useProfitLossSheetQuery = () => {
|
||||
return {
|
||||
...defaultQuery,
|
||||
...transformToForm(locationQuery, defaultQuery),
|
||||
branchesIds: [],
|
||||
};
|
||||
}, [locationQuery]);
|
||||
|
||||
|
||||
@@ -6,5 +6,7 @@ export function getDefaultTrialBalanceQuery() {
|
||||
toDate: moment().endOf('year').format('YYYY-MM-DD'),
|
||||
basis: 'accural',
|
||||
filterByOption: 'with-transactions',
|
||||
branchesIds: [],
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user