refactor: add parameters
This commit is contained in:
parent
36fb52e27b
commit
684a97cef3
2 changed files with 16 additions and 3 deletions
|
|
@ -53,6 +53,8 @@ async function fetchList(opts?: { rotateFlowId?: boolean }) {
|
|||
: pageState.statusFilter === PaymentDataStatus.Wait
|
||||
? false
|
||||
: undefined,
|
||||
quotationOnly: true,
|
||||
debitNoteOnly: false,
|
||||
});
|
||||
if (ret) {
|
||||
data.value = ret.result;
|
||||
|
|
@ -64,7 +66,10 @@ async function fetchList(opts?: { rotateFlowId?: boolean }) {
|
|||
}
|
||||
|
||||
async function fetchStats() {
|
||||
const ret = await invoiceStore.getInvoiceStats();
|
||||
const ret = await invoiceStore.getInvoiceStats({
|
||||
quotationOnly: true,
|
||||
debitNoteOnly: false,
|
||||
});
|
||||
if (ret) stats.value = ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue