refactor: handle invoice id
This commit is contained in:
parent
c6a299bc1b
commit
0dec580311
1 changed files with 8 additions and 1 deletions
|
|
@ -294,6 +294,12 @@ const productService = computed(() => {
|
|||
: productServiceList.value;
|
||||
});
|
||||
|
||||
function isIssueInvoice() {
|
||||
return quotationFormData.value.paySplit.some(
|
||||
(v) => selectedInstallmentNo.value.includes(v.no) && !!v.invoiceId,
|
||||
);
|
||||
}
|
||||
|
||||
async function fetchStatus() {
|
||||
statusQuotationForm.value = [
|
||||
{
|
||||
|
|
@ -1786,7 +1792,8 @@ async function getWorkerFromCriteria(
|
|||
view === View.Invoice &&
|
||||
((quotationFormData.quotationStatus !== 'PaymentPending' &&
|
||||
quotationFormData.payCondition !== 'Full') ||
|
||||
quotationFormData.quotationStatus === 'Accepted')
|
||||
quotationFormData.quotationStatus === 'Accepted') &&
|
||||
!isIssueInvoice()
|
||||
"
|
||||
>
|
||||
<MainButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue