fix: update status handling in debit note list retrieval and remove unused issued stats calculation
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
84591ae719
commit
34f5b6474b
1 changed files with 5 additions and 7 deletions
|
|
@ -66,9 +66,7 @@ async function getList(opts?: { page?: number; pageSize?: number }) {
|
|||
page: opts?.page || page.value,
|
||||
pageSize: opts?.pageSize || pageSize.value,
|
||||
query: pageState.inputSearch === '' ? undefined : pageState.inputSearch,
|
||||
status: (pageState.currentTab === DebitNoteStatus.Issued
|
||||
? undefined
|
||||
: pageState.currentTab) as DebitNoteStatus,
|
||||
status: pageState.currentTab,
|
||||
includeRegisteredBranch: true,
|
||||
startDate: pageState.searchDate[0],
|
||||
endDate: pageState.searchDate[1],
|
||||
|
|
@ -137,10 +135,10 @@ onMounted(async () => {
|
|||
if (res) {
|
||||
stats.value = res;
|
||||
|
||||
stats.value['issued'] = Object.values(res).reduce(
|
||||
(sum, value) => sum + value,
|
||||
0,
|
||||
);
|
||||
// stats.value['issued'] = Object.values(res).reduce(
|
||||
// (sum, value) => sum + value,
|
||||
// 0,
|
||||
// );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue