mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: passing number format to reports
This commit is contained in:
@@ -22,6 +22,7 @@ export const getDefaultAPAgingSummaryQuery = () => {
|
||||
filterByOption: 'without-zero-balance',
|
||||
vendorsIds: [],
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ export const getDefaultARAgingSummaryQuery = () => {
|
||||
filterByOption: 'without-zero-balance',
|
||||
customersIds: [],
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ export const getDefaultBalanceSheetQuery = () => ({
|
||||
percentageOfRow: false,
|
||||
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,6 +17,7 @@ export const getDefaultCashFlowSheetQuery = () => {
|
||||
displayColumnsType: 'total',
|
||||
filterByOption: 'with-transactions',
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ export const getInventoryItemDetailsDefaultQuery = () => ({
|
||||
itemsIds: [],
|
||||
warehousesIds: [],
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,6 +35,7 @@ export const getDefaultProfitLossQuery = () => ({
|
||||
percentageExpense: false,
|
||||
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -50,7 +51,6 @@ const parseProfitLossQuery = (locationQuery) => {
|
||||
|
||||
return {
|
||||
...transformed,
|
||||
|
||||
// Ensures the branches ids is always array.
|
||||
branchesIds: castArray(transformed.branchesIds),
|
||||
};
|
||||
|
||||
@@ -17,6 +17,7 @@ export function getDefaultTrialBalanceQuery() {
|
||||
basis: 'accrual',
|
||||
filterByOption: 'with-transactions',
|
||||
branchesIds: [],
|
||||
numberFormat: {},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ export const transformAccountsFilter = (form) => {
|
||||
*/
|
||||
export const transformFilterFormToQuery = (form) => {
|
||||
return R.compose(
|
||||
R.curry(flatten)({ safe: true }),
|
||||
transfromToSnakeCase,
|
||||
transformAccountsFilter,
|
||||
transformDisplayColumnsType,
|
||||
|
||||
Reference in New Issue
Block a user