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;
|
: productServiceList.value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function isIssueInvoice() {
|
||||||
|
return quotationFormData.value.paySplit.some(
|
||||||
|
(v) => selectedInstallmentNo.value.includes(v.no) && !!v.invoiceId,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
async function fetchStatus() {
|
async function fetchStatus() {
|
||||||
statusQuotationForm.value = [
|
statusQuotationForm.value = [
|
||||||
{
|
{
|
||||||
|
|
@ -1786,7 +1792,8 @@ async function getWorkerFromCriteria(
|
||||||
view === View.Invoice &&
|
view === View.Invoice &&
|
||||||
((quotationFormData.quotationStatus !== 'PaymentPending' &&
|
((quotationFormData.quotationStatus !== 'PaymentPending' &&
|
||||||
quotationFormData.payCondition !== 'Full') ||
|
quotationFormData.payCondition !== 'Full') ||
|
||||||
quotationFormData.quotationStatus === 'Accepted')
|
quotationFormData.quotationStatus === 'Accepted') &&
|
||||||
|
!isIssueInvoice()
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<MainButton
|
<MainButton
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue