diff --git a/src/pages/Account/invoice.vue b/src/pages/Account/invoice.vue index 2b84f0e..ccaa792 100644 --- a/src/pages/Account/invoice.vue +++ b/src/pages/Account/invoice.vue @@ -98,7 +98,7 @@ item-text="name" item-value="value" label="Select Payment Status" - @change="getPayMethodList" + @change="getPaymentMethod" :rules="paymentStatusRules" required > @@ -276,7 +276,7 @@
# | Date | @@ -479,9 +468,7 @@Weaver | Action | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | {{dates( editedItem.date) }} | {{ editedItem.paymentMethod }} | @@ -491,7 +478,7 @@{{ props.item.classId.classNum }} | {{ props.item.totalAmount }} | -{{ props.item.totalDiscount}} | +{{ props.item.totalDiscount}} | {{ props.item.totalPaidAmount ? props.item.totalPaidAmount : 0}} | @@ -601,6 +586,18 @@@@ -896,8 +891,6 @@ v-model="feeType.paidAmount" type="number" :disabled="disabled" - :rules="paymentRules" - required > |
@@ -980,11 +971,11 @@ export default {
invoiceList: [],
editPayment: {
studentId: {
- name: '',
- rollNo: ''
+ name: "",
+ rollNo: ""
},
classId: {
- classNum: ''
+ classNum: ""
}
},
menu1: false,
@@ -996,7 +987,7 @@ export default {
paidAmount: "0.00",
feeTypeName: ""
},
-
+
feeTypeData: [],
pagination: {
rowsPerPage: 10
@@ -1028,7 +1019,12 @@ export default {
},
{ text: "Class", value: "class", sortable: false, align: "center" },
{ text: "Total", value: "subtotal", sortable: false, align: "center" },
- { text: "Discount(%)", value: "discount", sortable: false, align: "center" },
+ {
+ text: "Discount(%)",
+ value: "discount",
+ sortable: false,
+ align: "center"
+ },
{
text: "Paid Amount",
value: "paidAmount",
@@ -1137,11 +1133,15 @@ export default {
invoiceId: editedItem._id
};
http()
- .put("/removePayment", deleteInvoice, confirm("Are you sure you want to delete this?") && {
- headers: {
- Authorization: "Bearer " + this.token
+ .put(
+ "/removePayment",
+ deleteInvoice,
+ confirm("Are you sure you want to delete this?") && {
+ headers: {
+ Authorization: "Bearer " + this.token
+ }
}
- })
+ )
.then(response => {
this.snackbar = true;
this.text = "Successfully delete Existing Invoice";
@@ -1263,7 +1263,17 @@ export default {
add() {
var updatePayment = {
invoiceId: this.editPayment._id,
- totalPaidAmount: this.editPayment.paidAmount
+ // totalPaidAmount: this.editPayment.paidAmount
+ classId: this.editPayment.classNum,
+ students: this.editPayment.students,
+ date: this.editPayment.date,
+ paymentStatus: this.editPayment.paymentStatus,
+ paymentMethod: this.editPayment.paymentMethod,
+ feeType: this.feeTypeData,
+ totalAmount: this.feeType.amount,
+ totalDiscount: this.feeType.discount,
+ totalSubTotal: this.feeType.subTotal,
+ totalPaidAmount: this.feeType.paidAmount
};
http()
.put("/updateInvoice", updatePayment, {
@@ -1381,7 +1391,7 @@ export default {
// this.$router.replace({ path: "/" });
});
},
-
+
getAmmountDetails(feeTyp) {
let feeType = {
amount: "",
@@ -1441,7 +1451,7 @@ export default {
this.showPayMethods = false;
}
},
- getPayMethodList() {
+ getPaymentMethod() {
if (this.editData.paymentStatus == "PARTIALLY_PAID") {
this.showPayMethods = true;
} else if (this.editData.paymentStatus == "FULLY_PAID") {
diff --git a/src/pages/Report/progressCardReport.vue b/src/pages/Report/progressCardReport.vue
index 1ed34cc..91e6cef 100644
--- a/src/pages/Report/progressCardReport.vue
+++ b/src/pages/Report/progressCardReport.vue
@@ -92,18 +92,26 @@
-
![]() {{ userData.name }}@@ -115,90 +123,192 @@{{ userData.address }}
|