From 728b5d417ab010325fb8c94d66148ce14309bb8a Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Tue, 12 May 2020 18:11:09 +0530 Subject: [PATCH] solve bugs in add invoice --- src/pages/Account/invoice.vue | 6 ++++++ src/pages/Report/progressCardReport.vue | 25 ++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/pages/Account/invoice.vue b/src/pages/Account/invoice.vue index 57748f1..eaac174 100644 --- a/src/pages/Account/invoice.vue +++ b/src/pages/Account/invoice.vue @@ -359,6 +359,7 @@ @@ -589,6 +590,7 @@ export default { subtotalRules: [v => !!v || "Subtotal is required"], paymentRules: [v => !!v || "Payment is required"], paidAmountRules: [v => !!v || "Paid Amount is required"], + paymentMethodRules: [], headers: [ { text: "No", @@ -1017,13 +1019,17 @@ export default { getPayMethodList() { if (this.invoiceData.paymentStatus == "PARTIALLY_PAID") { this.showPayMethods = true; + this.paymentMethodRules = [v => !!v || "Payment Method is required"]; } else if (this.invoiceData.paymentStatus == "FULLY_PAID") { this.showPayMethods = true; + this.paymentMethodRules = [v => !!v || "Payment Method is required"]; } else if (this.invoiceData.paymentStatus == "NOT_PAID") { for (let i = 0; i < this.feeTypeData.length; i++) { this.feeTypeData[i].paidAmount = "0.00"; this.feeType.paidAmount = "0.00"; } + this.paymentMethodRules = ""; + this.showPayMethods = false; } else { this.showPayMethods = false; } diff --git a/src/pages/Report/progressCardReport.vue b/src/pages/Report/progressCardReport.vue index 75c0529..2324c5a 100644 --- a/src/pages/Report/progressCardReport.vue +++ b/src/pages/Report/progressCardReport.vue @@ -177,7 +177,6 @@ - - + - + - + - +
- Total Marks - Total Marks {{ studentMark.totalMarks }}
- Grade - Grade {{ studentMark.grade }}
- Average Mark - Average Mark
- GPA - GPA