feat: add function check installments
This commit is contained in:
parent
37ff10cd85
commit
16a6a8a5eb
1 changed files with 7 additions and 0 deletions
|
|
@ -275,6 +275,13 @@ const successAll = computed(() => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function isInstallmentPaySuccess(installmentNo: number) {
|
||||||
|
const invoice = data.value?.quotation.invoice?.find((lhs) =>
|
||||||
|
lhs.installements.some((rhs) => rhs.no === installmentNo),
|
||||||
|
);
|
||||||
|
return !!(invoice?.payment?.paymentStatus === 'Success');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="column surface-0 fullscreen" v-if="data">
|
<div class="column surface-0 fullscreen" v-if="data">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue