mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
- feat: Filter expense and payment accounts on expense form.
- feat: Make journal errors with receivable and payable accounts. - fix: Handle database big numbers. - fix: Indexing lines when add a new line on make journal form. - fix: Abstruct accounts type component.
This commit is contained in:
@@ -262,7 +262,9 @@ export const fetchAccount = ({ id }) => {
|
||||
.then((response) => {
|
||||
dispatch({
|
||||
type: t.ACCOUNT_SET,
|
||||
account: response.data.account,
|
||||
payload: {
|
||||
account: response.data.account,
|
||||
}
|
||||
});
|
||||
resolve(response);
|
||||
})
|
||||
|
||||
@@ -51,7 +51,11 @@ const accountsReducer = createReducer(initialState, {
|
||||
},
|
||||
|
||||
[t.ACCOUNT_SET]: (state, action) => {
|
||||
state.accountsById[action.account.id] = action.account;
|
||||
const { account } = action.payload;
|
||||
state.items[account.id] = {
|
||||
...(state.items[account.id] || {}),
|
||||
...account,
|
||||
};
|
||||
},
|
||||
|
||||
[t.ACCOUNT_DELETE]: (state, action) => {
|
||||
|
||||
@@ -8,7 +8,7 @@ const initialState = {
|
||||
views: {},
|
||||
loading: false,
|
||||
tableQuery: {
|
||||
page_size: 4,
|
||||
page_size: 12,
|
||||
page: 1,
|
||||
},
|
||||
currentViewId: -1,
|
||||
|
||||
Reference in New Issue
Block a user