Fix : Receipt & Invoices

This commit is contained in:
elforjani3
2020-10-26 17:45:21 +02:00
parent 947937aff9
commit cbe6934b58
24 changed files with 430 additions and 94 deletions

View File

@@ -60,7 +60,6 @@ const reducer = createReducer(initialState, {
const viewId = customViewId || -1;
const view = state.views[viewId] || {};
state.views[viewId] = {
...view,
pages: {
@@ -76,7 +75,7 @@ const reducer = createReducer(initialState, {
const { pagination, customViewId } = action.payload;
const mapped = {
pageSize: parseInt(pagination.pageSize, 10),
pageSize: parseInt(pagination.page_size, 10),
page: parseInt(pagination.page, 10),
total: parseInt(pagination.total, 10),
};
@@ -85,7 +84,6 @@ const reducer = createReducer(initialState, {
pagesCount: Math.ceil(mapped.total / mapped.pageSize),
pageIndex: Math.max(mapped.page - 1, 0),
};
state.views = {
...state.views,
[customViewId]: {