mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: sale receipt view.
This commit is contained in:
@@ -87,7 +87,8 @@ export const fetchReceiptsTable = ({ query = {} }) => {
|
||||
payload: {
|
||||
sales_receipts: response.data.sale_receipts,
|
||||
pagination: response.data.pagination,
|
||||
customViewId: response.data.customViewId || -1,
|
||||
customViewId:
|
||||
response.data?.filter_meta?.view?.custom_view_id || -1,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
@@ -100,7 +101,8 @@ export const fetchReceiptsTable = ({ query = {} }) => {
|
||||
type: t.RECEIPTS_PAGINATION_SET,
|
||||
payload: {
|
||||
pagination: response.data.pagination,
|
||||
customViewId: response.data.customViewId || -1,
|
||||
customViewId:
|
||||
response.data?.filter_meta?.view?.custom_view_id || -1,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
@@ -119,4 +121,4 @@ export const fetchReceiptsTable = ({ query = {} }) => {
|
||||
|
||||
export const closeReceipt = ({ id }) => {
|
||||
return (dispatch) => ApiService.post(`sales/receipts/${id}/close`);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user