Blame view

src/pages/Account/paymentTemplate.vue 17.7 KB
3e79b2f9f   Neeraj Sharma   implement functio...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <template>
    <v-app id="pages-dasboard">
      <!-- ****** Edit multiple INVOICE ****** -->
  
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        color="success"
      >{{ text }}</v-snackbar>
      <v-flex xs12 sm12>
        <v-container fluid grid-list-md>
          <v-layout wrap>
            <v-flex xs12 sm12 md4>
              <v-card flat class="mb-4">
                <v-toolbar dark class="card-styles" flat>
                  <v-spacer></v-spacer>
                  <h3>Profile</h3>
                  <v-spacer></v-spacer>
                </v-toolbar>
a4fce59de   Neeraj Sharma   complete solve bu...
23
                <!-- Profile User-->
3e79b2f9f   Neeraj Sharma   implement functio...
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
                <v-card-text>
                  <v-container>
                    <v-layout wrap>
                      <v-flex xs12>
                        <v-layout>
                          <v-flex
                            xs12
                            class="text-xs-center text-sm-center text-md-center text-lg-center"
                          >
                            <v-avatar size="80px">
                              <img src="/static/icon/user.png" v-if="!editPayment.profilePicUrl" />
                              <img
                                :src="editPayment.profilePicUrl"
                                v-else-if="editPayment.profilePicUrl"
                              />
                            </v-avatar>
                          </v-flex>
                        </v-layout>
                        <v-layout>
                          <v-flex xs12 sm12>
                            <h3 class="text-xs-center">
                              <b>{{ editPayment.studentId.name }}</b>
                            </h3>
                            <p class="text-xs-center grey--text">Student</p>
                          </v-flex>
                        </v-layout>
                        <v-layout style="border: 1px solid lightgrey;">
                          <v-flex xs6 sm6 class="pa-0">
                            <h4 class="right">
                              <b>Roll No :</b>
                            </h4>
                          </v-flex>
                          <v-flex sm6 xs6 class="pa-0">
                            <h4>{{ editPayment.studentId.rollNo }}</h4>
                          </v-flex>
                        </v-layout>
                        <v-layout style="border: 1px solid lightgrey;">
                          <v-flex xs6 sm6 class="pa-0">
                            <h4 class="right">
                              <b>Class :</b>
                            </h4>
                          </v-flex>
                          <v-flex sm6 xs6 class="pa-0">
                            <h4>{{ editPayment.classId.classNum }}</h4>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                    </v-layout>
                  </v-container>
                </v-card-text>
              </v-card>
a4fce59de   Neeraj Sharma   complete solve bu...
75
              <!-- Account Fee Type List User-->
3e79b2f9f   Neeraj Sharma   implement functio...
76
77
78
79
80
81
82
83
84
              <v-card flat>
                <v-toolbar dark class="card-styles" flat>
                  <v-spacer></v-spacer>
                  <v-toolbar-title>
                    <h3>Invoice</h3>
                  </v-toolbar-title>
                  <v-spacer></v-spacer>
                </v-toolbar>
                <v-form ref="form" v-model="valid" lazy-validation class="py-4">
3e79b2f9f   Neeraj Sharma   implement functio...
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
                  <v-layout>
                    <v-flex xs4 class="pt-4 subheading">
                      <label class="right">Payment Method:</label>
                    </v-flex>
                    <v-flex xs7 class="ml-3">
                      <v-select
                        :items="paymentMethods"
                        v-model="editPayment.paymentMethod"
                        label="Select Payment Method"
                      ></v-select>
                    </v-flex>
                  </v-layout>
                  <v-card-actions>
                    <v-spacer class="hidden-xs-only"></v-spacer>
                    <v-btn
                      color="open-dialog-button"
4dd422bef   Shikha Mishra   change ui of card...
101
                      round
3e79b2f9f   Neeraj Sharma   implement functio...
102
                      dark
8233c5dd6   Shikha Mishra   Hide delete butto...
103
                      class="right add-button"
3e79b2f9f   Neeraj Sharma   implement functio...
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
                      @click="update(editPayment)"
                    >Add Payment</v-btn>
                  </v-card-actions>
                </v-form>
              </v-card>
            </v-flex>
            <v-flex xs12 sm12 md8>
              <v-card>
                <v-toolbar dark class="card-styles" flat>
                  <v-spacer></v-spacer>
                  <v-toolbar-title>
                    <h3>Fee Type List</h3>
                  </v-toolbar-title>
                  <v-spacer></v-spacer>
                </v-toolbar>
3e79b2f9f   Neeraj Sharma   implement functio...
119
120
121
122
123
                <table class="feeTypeTable tableRsponsive">
                  <tr class="info white--text">
                    <th>#</th>
                    <th>Fee Type</th>
                    <th>Amount</th>
ff30cbe86   Neeraj Sharma   remove discount p...
124
                    <th>Discount</th>
3e79b2f9f   Neeraj Sharma   implement functio...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
                    <th>Subtotal</th>
                    <th>Paid Amount</th>
                    <th>Action</th>
                  </tr>
                  <tr
                    v-for="(feeType, index) in editPayment.feeType"
                    :key="index"
                    v-on:keyup="getAmmountDetails(feeType,editPayment.feeType)"
                  >
                    <td style="width:40px">{{ index + 1 }}</td>
                    <td style="width:120px">{{ feeType.feeTypeName }}</td>
                    <td>
                      <v-text-field
                        placeholder="fill your Amount"
                        v-model="feeType.amount"
                        type="number"
                      ></v-text-field>
                    </td>
                    <td>
                      <v-text-field
                        placeholder="fill your Discount"
                        v-model="feeType.discount"
                        type="number"
                      ></v-text-field>
                    </td>
                    <td>{{ feeType.subTotal }}</td>
a4fce59de   Neeraj Sharma   complete solve bu...
151
                    <td>
3e79b2f9f   Neeraj Sharma   implement functio...
152
153
154
155
156
157
                      <v-text-field
                        placeholder="fill your Paid Amount"
                        v-model="feeType.paidAmount"
                        type="number"
                      ></v-text-field>
                    </td>
c765369af   Neeraj Sharma   solve bugs
158
                    <td v-if="!editPayment.feeType">
3e79b2f9f   Neeraj Sharma   implement functio...
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
                      <v-icon
                        color="error"
                        @click="deleteSelectFee(feeType,editPayment.feeType,index)"
                      >delete</v-icon>
                    </td>
                  </tr>
                  <tfoot v-if="feeType.amount != 0.00">
                    <tr>
                      <td colspan="2">Total:</td>
                      <td>{{ feeType.amount }}</td>
                      <td>{{ feeType.discount }}</td>
                      <td>{{ feeType.subTotal }}</td>
                      <td>{{ feeType.paidAmount }}</td>
                    </tr>
                  </tfoot>
                  <tfoot v-else-if="feeType.amount == 0.00">
                    <tr>
                      <td colspan="2">Total:</td>
                      <td>{{ editPayment.totalAmount }}</td>
                      <td>{{ editPayment.totalDiscount }}</td>
                      <td>{{ editPayment.totalSubTotal }}</td>
                      <td>{{ editPayment.totalPaidAmount }}</td>
                    </tr>
                  </tfoot>
                </table>
              </v-card>
            </v-flex>
          </v-layout>
        </v-container>
      </v-flex>
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
    </v-app>
  </template>
  
  <script>
  import http from "@/Services/http.js";
  import moment from "moment";
  
  export default {
    props: ["editPayment"],
    data: () => ({
      snackbar: false,
      // showPayMethods: false,
      y: "top",
      x: "right",
      mode: "",
      timeout: 3000,
      text: "",
      showLoader: false,
      loading: false,
      date: null,
      search: "",
      // dialog: false,
      // dialog1: false,
      valid: true,
      validEdit: true,
      // isActive: true,
      // newActive: false,
      showFeeType: false,
      disabled: true,
      details: [],
      feeTypes: [],
      menu1: false,
      // invoiceData: {},
      paymentMethods: ["Cash", "Cheque"],
      feeType: {
        amount: "0.00",
        discount: "0.00",
        paidAmount: "0.00",
        subTotal: "0.00",
8233c5dd6   Shikha Mishra   Hide delete butto...
231
        feeTypeName: "",
3e79b2f9f   Neeraj Sharma   implement functio...
232
233
234
      },
      feeTypeData: [],
      pagination: {
8233c5dd6   Shikha Mishra   Hide delete butto...
235
        rowsPerPage: 15,
3e79b2f9f   Neeraj Sharma   implement functio...
236
237
238
239
240
241
242
243
244
      },
      token: "",
      editedItem: {},
      invoiceParticularData: {},
      addclass: [],
      studentList: [],
      paymentStatus: [
        {
          name: "Not Paid",
8233c5dd6   Shikha Mishra   Hide delete butto...
245
          value: "NOT_PAID",
3e79b2f9f   Neeraj Sharma   implement functio...
246
247
248
        },
        {
          name: "Partially Paid",
8233c5dd6   Shikha Mishra   Hide delete butto...
249
          value: "PARTIALLY_PAID",
3e79b2f9f   Neeraj Sharma   implement functio...
250
251
252
        },
        {
          name: "Fully Paid",
8233c5dd6   Shikha Mishra   Hide delete butto...
253
254
255
          value: "FULLY_PAID",
        },
      ],
3e79b2f9f   Neeraj Sharma   implement functio...
256
257
258
259
260
261
262
263
264
265
    }),
    // watch: {
    //   menu1(val) {
    //     val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
    //   }
    // },
    methods: {
      save(date) {
        this.$refs.menu1.save(date);
      },
8233c5dd6   Shikha Mishra   Hide delete butto...
266
      dates: function (date) {
3e79b2f9f   Neeraj Sharma   implement functio...
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
        return moment(date).format("MMMM DD, YYYY");
      },
      update(editPayment) {
        // console.log("editPayment-----------", editPayment);
        let feeTypeId = "";
        for (let i = 0; i < this.feeTypes.length; i++) {
          if (this.feeTypes[i].feeType === this.feeType.feeTypeName) {
            feeTypeId = this.feeTypes[i]._id;
          }
        }
        // console.log(editPayment);
        let editInvoiceData = {
          invoiceId: editPayment._id,
          classId: editPayment.classNum,
          studentId: editPayment.sectionId,
          date: editPayment.date,
          paymentStatus: editPayment.paymentStatus,
          paymentMethod: editPayment.paymentMethod,
          feeType: editPayment.feeType,
11f495070   Neeraj Sharma   all solve bugs ed...
286
287
288
          totalAmount: this.feeType.amount.toString(),
          totalDiscount: this.feeType.discount.toString(),
          totalSubTotal: this.feeType.subTotal.toString(),
8233c5dd6   Shikha Mishra   Hide delete butto...
289
          totalPaidAmount: this.feeType.paidAmount,
3e79b2f9f   Neeraj Sharma   implement functio...
290
        };
3e79b2f9f   Neeraj Sharma   implement functio...
291
292
293
294
295
296
        if (feeTypeId == "") {
          delete editInvoiceData.feeType[0].feeTypeId;
        }
        if (editInvoiceData.paymentStatus == "NOT_PAID") {
          delete editInvoiceData.paymentMethod;
        }
c765369af   Neeraj Sharma   solve bugs
297
298
299
300
        if (editInvoiceData.totalPaidAmount == "0") {
          if (editInvoiceData.paymentStatus == "NOT_PAID") {
            delete editInvoiceData.totalPaidAmount;
          }
e03bf1f92   Neeraj Sharma   solved bugs add i...
301
        }
c765369af   Neeraj Sharma   solve bugs
302
303
304
305
        if (editInvoiceData.totalPaidAmount != "0.00") {
          if (this.feeType.subTotal == this.feeType.paidAmount) {
            editInvoiceData.paymentStatus = "FULLY_PAID";
          }
11f495070   Neeraj Sharma   all solve bugs ed...
306
307
308
309
310
311
312
          if (editInvoiceData.totalPaidAmount) {
            if (this.feeType.subTotal != this.feeType.paidAmount) {
              editInvoiceData.paymentStatus = "PARTIALLY_PAID";
              // console.log("PARTIALLY_PAID");
            }
          }
        }
c765369af   Neeraj Sharma   solve bugs
313

11f495070   Neeraj Sharma   all solve bugs ed...
314
315
316
317
318
        if (editInvoiceData.totalSubTotal == "0.00") {
          editInvoiceData.paymentStatus = "FULLY_PAID";
        } else if (editInvoiceData.totalSubTotal != "0.00") {
          if (this.feeType.paidAmount === "0.00") {
            editInvoiceData.paymentStatus = "NOT_PAID";
e03bf1f92   Neeraj Sharma   solved bugs add i...
319
320
          }
        }
3e79b2f9f   Neeraj Sharma   implement functio...
321
322
        http()
          .put("/updateInvoice", editInvoiceData)
8233c5dd6   Shikha Mishra   Hide delete butto...
323
          .then((response) => {
3e79b2f9f   Neeraj Sharma   implement functio...
324
325
            // this.getInvoiceList();
            this.snackbar = true;
e03bf1f92   Neeraj Sharma   solved bugs add i...
326
            this.text = "Payment added successfully";
3e79b2f9f   Neeraj Sharma   implement functio...
327
            this.loading = false;
e03bf1f92   Neeraj Sharma   solved bugs add i...
328
            this.$emit("update-Payment");
3e79b2f9f   Neeraj Sharma   implement functio...
329
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
330
          .catch((error) => {
860da881d   Shikha Mishra   comment all consoles
331
            //   console.log(error);
3e79b2f9f   Neeraj Sharma   implement functio...
332
333
334
335
336
337
338
339
            this.snackbar = true;
            this.text = error.response.data.message;
            this.loading = false;
          });
      },
      clear() {
        this.$refs.form.reset();
      },
8233c5dd6   Shikha Mishra   Hide delete butto...
340
      deleteSelectFee: function (feeTyp, feeTypeList, index) {
3e79b2f9f   Neeraj Sharma   implement functio...
341
342
343
344
345
346
347
348
        this.editPayment.feeType.splice(index, 1);
        this.getAmmountDetails(feeTyp, feeTypeList);
        if (this.feeTypeData.length == 0) {
          this.feeType = {
            amount: "0.00",
            discount: "0.00",
            paidAmount: "0.00",
            subTotal: "0.00",
8233c5dd6   Shikha Mishra   Hide delete butto...
349
            feeTypeList: "",
3e79b2f9f   Neeraj Sharma   implement functio...
350
351
352
353
354
355
          };
        }
      },
      getAllClasses() {
        http()
          .get("/getClassesList", {
8233c5dd6   Shikha Mishra   Hide delete butto...
356
            headers: { Authorization: "Bearer " + this.token },
3e79b2f9f   Neeraj Sharma   implement functio...
357
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
358
          .then((response) => {
3e79b2f9f   Neeraj Sharma   implement functio...
359
360
361
            this.addclass = response.data.data;
            this.getAllStudents();
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
362
          .catch((error) => {
3e79b2f9f   Neeraj Sharma   implement functio...
363
364
365
366
367
368
369
370
371
372
373
374
375
376
            // console.log("err====>", err);
            this.showLoader = false;
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
              this.$store.dispatch("Role", null);
            }
          });
      },
      getAllStudents() {
        http()
          .get("/getStudentsList", {
            params: { classId: this.editPayment.classNum },
8233c5dd6   Shikha Mishra   Hide delete butto...
377
            headers: { Authorization: "Bearer " + this.token },
3e79b2f9f   Neeraj Sharma   implement functio...
378
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
379
          .then((response) => {
3e79b2f9f   Neeraj Sharma   implement functio...
380
381
            this.studentList = response.data.data;
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
382
          .catch((err) => {
3e79b2f9f   Neeraj Sharma   implement functio...
383
384
385
386
387
388
            // console.log("err====>", err);
          });
      },
      getfeeType() {
        http()
          .get("/getFeesList", {
8233c5dd6   Shikha Mishra   Hide delete butto...
389
            headers: { Authorization: "Bearer " + this.token },
3e79b2f9f   Neeraj Sharma   implement functio...
390
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
391
          .then((response) => {
3e79b2f9f   Neeraj Sharma   implement functio...
392
393
            this.feeTypes = response.data.data;
          })
8233c5dd6   Shikha Mishra   Hide delete butto...
394
          .catch((err) => {
3e79b2f9f   Neeraj Sharma   implement functio...
395
396
397
398
399
400
401
402
403
404
            // console.log("err====>", err);
          });
      },
      getAmmountDetails(feeTyp, feeTypeList) {
        this.feeTypeData = feeTypeList;
        let feeType = {
          amount: "",
          discount: "",
          subTotal: "",
          subParticularTotal: "",
8233c5dd6   Shikha Mishra   Hide delete butto...
405
          paidAmount: "",
3e79b2f9f   Neeraj Sharma   implement functio...
406
407
408
        };
        for (let i = 0; i < this.feeTypeData.length; i++) {
          // *********** AMOUNT ***********
c765369af   Neeraj Sharma   solve bugs
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
          if (this.feeTypeData[i].amount) {
            feeType.amount =
              Number(feeType.amount) + Number(this.feeTypeData[i].amount);
            this.feeType.amount = feeType.amount;
            this.feeType.subTotal = feeType.amount;
            this.feeTypeData[i].subTotal = this.feeTypeData[i].amount;
          } else if (this.feeTypeData[0].amount == "") {
            this.feeType.amount = "0.00";
            this.feeTypeData[i].subTotal = "0.00";
            this.feeType.subTotal = "0.00";
          } else if (this.feeTypeData[i].amount == "") {
            this.feeType.amount =
              Number(feeType.amount) + Number(this.feeTypeData[i].amount);
            this.feeTypeData[i].subTotal =
              Number(feeType.amount) + Number(this.feeTypeData[i].amount);
            this.feeType.subTotal =
              Number(feeType.amount) + Number(this.feeTypeData[i].amount);
          }
3e79b2f9f   Neeraj Sharma   implement functio...
427
428
          // *********** DISCOUNT ***********
          if (this.feeTypeData[i].discount) {
ff30cbe86   Neeraj Sharma   remove discount p...
429
430
431
            if (
              Number(this.feeTypeData[i].discount) < this.feeTypeData[i].amount
            ) {
11f495070   Neeraj Sharma   all solve bugs ed...
432
433
434
435
              feeType.discount =
                Number(feeType.discount) + Number(this.feeTypeData[i].discount);
              this.feeType.discount = feeType.discount;
              feeType.subParticularTotal =
ff30cbe86   Neeraj Sharma   remove discount p...
436
                this.feeTypeData[i].amount - this.feeTypeData[i].discount;
11f495070   Neeraj Sharma   all solve bugs ed...
437
438
439
              this.feeTypeData[i].subTotal = feeType.subParticularTotal.toFixed(
                2
              );
ff30cbe86   Neeraj Sharma   remove discount p...
440
441
442
443
            } else if (
              Number(this.feeTypeData[i].discount) >= this.feeTypeData[i].amount
            ) {
              this.feeTypeData[i].discount = this.feeTypeData[i].amount;
11f495070   Neeraj Sharma   all solve bugs ed...
444
445
446
447
              feeType.discount =
                Number(feeType.discount) + Number(this.feeTypeData[i].discount);
              this.feeType.discount = feeType.discount.toString();
              feeType.subParticularTotal =
ff30cbe86   Neeraj Sharma   remove discount p...
448
                this.feeTypeData[i].amount - this.feeTypeData[i].discount;
11f495070   Neeraj Sharma   all solve bugs ed...
449
450
451
452
              this.feeTypeData[
                i
              ].subTotal = feeType.subParticularTotal.toString();
            }
c765369af   Neeraj Sharma   solve bugs
453
454
          } else if (this.feeTypeData[0].discount == "") {
            this.feeType.discount = "0.00";
3e79b2f9f   Neeraj Sharma   implement functio...
455
          }
c765369af   Neeraj Sharma   solve bugs
456

3e79b2f9f   Neeraj Sharma   implement functio...
457
          // *********** SUBTOTAL ***********
c765369af   Neeraj Sharma   solve bugs
458
459
460
461
462
          if (this.feeTypeData[i].subTotal) {
            feeType.subTotal =
              Number(feeType.subTotal) + Number(this.feeTypeData[i].subTotal);
            this.feeType.subTotal = feeType.subTotal.toFixed(2);
          }
3e79b2f9f   Neeraj Sharma   implement functio...
463
          // *********** PAID-AMOUNT ***********
c765369af   Neeraj Sharma   solve bugs
464
465
466
467
468
469
470
471
472
473
          if (this.feeTypeData[i].paidAmount) {
            feeType.paidAmount =
              Number(feeType.paidAmount) + Number(this.feeTypeData[i].paidAmount);
            this.feeType.paidAmount = feeType.paidAmount.toFixed(2);
          } else if (this.feeTypeData[0].paidAmount == "") {
            this.feeType.paidAmount = "0.00";
          } else if (this.feeTypeData[i].paidAmount == "") {
            this.feeType.paidAmount = feeType.paidAmount =
              Number(feeType.paidAmount) + Number(this.feeTypeData[i].paidAmount);
          }
3e79b2f9f   Neeraj Sharma   implement functio...
474
475
476
477
478
479
480
  
          // if paid Amount fill large of subtotal value so this condition are fixed filled subtotal value.
          if (feeType.paidAmount > feeType.subTotal) {
            this.feeTypeData[i].paidAmount = this.feeTypeData[i].subTotal;
            this.feeType.paidAmount = feeType.subTotal;
          }
        }
8233c5dd6   Shikha Mishra   Hide delete butto...
481
      },
3e79b2f9f   Neeraj Sharma   implement functio...
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
      // getPayMethodList() {
      //   if (this.editPayment.paymentStatus == "PARTIALLY_PAID") {
      //     this.showPayMethods = true;
      //   } else if (this.editPayment.paymentStatus == "FULLY_PAID") {
      //     this.showPayMethods = true;
      //   } else {
      //     this.showPayMethods = false;
      //   }
      // }
    },
    mounted() {
      this.token = this.$store.state.token;
      this.getAllClasses();
      this.getfeeType();
    },
    created() {
8233c5dd6   Shikha Mishra   Hide delete butto...
498
      this.$root.$on("app:search", (search) => {
3e79b2f9f   Neeraj Sharma   implement functio...
499
500
501
502
503
504
        this.search = search;
      });
    },
    beforeDestroy() {
      // dont forget to remove the listener
      this.$root.$off("app:search");
8233c5dd6   Shikha Mishra   Hide delete butto...
505
    },
3e79b2f9f   Neeraj Sharma   implement functio...
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
  };
  </script>
  
  
  <style scoped>
  .active {
    background-color: gray;
    color: white !important;
  }
  .activebtn {
    color: black !important;
  }
  table {
    border-collapse: collapse;
    border: 1px solid #e2e7eb;
  }
  
  th,
  td {
    border: 1px solid #e2e7eb;
    padding: 10px;
    text-align: center;
  }
  table.feeTypeTable {
    table-layout: auto !important;
    width: 100% !important;
  }
  @media screen and (max-width: 380px) {
    .tableRsponsive {
      display: block;
      position: relative;
      overflow: scroll;
    }
  }
  </style>