Commit abce86599db9e38935f5d644afc5cab0e43b5a75

Authored by Neeraj Sharma
1 parent 7e67933b3c

testing sucess of view invoice or view payment and finally code commited

src/pages/Account/invoice.vue
... ... @@ -45,7 +45,7 @@
45 45 <th>Weaver</th>
46 46 <th>Action</th>
47 47 </tr>
48   - <tr v-if="editedItem.paymentStatus !== 'NOT_PAID'">
  48 + <tr v-if="editedItem.paymentStatus != 'NOT_PAID'">
49 49 <td style="width:40px ; color:black" class="tdFeeType">1</td>
50 50 <td style="width:120px; color:black" class="tdFeeType">{{dates( editedItem.date) }}</td>
51 51 <td style="width:120px; color:black" class="tdFeeType">{{ editedItem.paymentMethod }}</td>
... ... @@ -77,6 +77,14 @@
77 77 </v-tooltip>
78 78 </td>
79 79 </tr>
  80 + <tr v-if="editedItem.paymentStatus == 'NOT_PAID'">
  81 + <td style="width:40px ; color:black" class="tdFeeType'">-</td>
  82 + <td style="width:120px; color:black" class="tdFeeType">-</td>
  83 + <td style="width:120px; color:black" class="tdFeeType">-</td>
  84 + <td style="width:120px; color:black" class="tdFeeType">-</td>
  85 + <td style="width:120px; color:black" class="tdFeeType">-</td>
  86 + <td class="text-xs-center td td-row"></td>
  87 + </tr>
80 88 </table>
81 89 </v-card>
82 90 </v-dialog>
... ... @@ -1106,32 +1114,32 @@ table.feeTypeTable {
1106 1114 width: 100% !important;
1107 1115 }
1108 1116 .card-style {
1109   - background: #7f62f8 !important;
1110   - border-color: #7f62f8 !important;
1111   - border-radius: 12px;
1112   - text-align: center !important;
1113   - padding-top: 10px !important;
  1117 + background: #7f62f8 !important;
  1118 + border-color: #7f62f8 !important;
  1119 + border-radius: 12px;
  1120 + text-align: center !important;
  1121 + padding-top: 10px !important;
1114 1122 }
1115 1123 .add-button {
1116   - background: #feb83c !important;
1117   - border-color: #feb83c !important;
1118   - text-transform: none !important;
1119   - -webkit-box-shadow: none !important;
1120   - box-shadow: none !important;
  1124 + background: #feb83c !important;
  1125 + border-color: #feb83c !important;
  1126 + text-transform: none !important;
  1127 + -webkit-box-shadow: none !important;
  1128 + box-shadow: none !important;
1121 1129 }
1122 1130 .clear-button {
1123   - background: #fa7676 !important;
1124   - border-color: #fa7676 !important;
1125   - text-transform: none !important;
1126   - -webkit-box-shadow: none !important;
1127   - box-shadow: none !important;
  1131 + background: #fa7676 !important;
  1132 + border-color: #fa7676 !important;
  1133 + text-transform: none !important;
  1134 + -webkit-box-shadow: none !important;
  1135 + box-shadow: none !important;
1128 1136 }
1129 1137 .card-styles {
1130   - background: #7f62f8 !important;
1131   - border-color: #7f62f8 !important;
  1138 + background: #7f62f8 !important;
  1139 + border-color: #7f62f8 !important;
1132 1140 }
1133 1141 .v-card__actions .v-btn {
1134   - margin: 0 15px !important;
1135   - min-width: 96px !important;
  1142 + margin: 0 15px !important;
  1143 + min-width: 96px !important;
1136 1144 }
1137 1145 </style>
1138 1146 \ No newline at end of file
... ...
src/pages/Account/viewInvoice.vue
... ... @@ -94,9 +94,14 @@
94 94 style="font-size: 15px;margin:0px;margin-bottom:8px;"
95 95 >Invoice #{{ invoiceParticularData.invoiceNumber }}</p>
96 96 <br />
97   - <p
98   - style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
99   - >Status : {{ invoiceParticularData.paymentStatus }}</p>
  97 + <p style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;">
  98 + Status :
  99 + <span
  100 + :style="invoiceParticularData.paymentStatus == 'FULLY_PAID' ? 'color:green' : '' ||
  101 + invoiceParticularData.paymentStatus == 'PARTIALLY_PAID' ? 'color:#f39c12 !important' : '' ||
  102 + invoiceParticularData.paymentStatus == 'NOT_PAID' ? 'color:red !important' : '' "
  103 + >{{ invoiceParticularData.paymentStatus }}</span>
  104 + </p>
100 105 </v-flex>
101 106 </v-layout>
102 107 </v-flex>
... ...
src/pages/Account/viewPaymentInvoice.vue
... ... @@ -2,18 +2,18 @@
2 2 <v-app id="pages-dasboard">
3 3 <!-- ****** Edit INVOICE ****** -->
4 4 <v-container fluid grid-list-md>
5   - <v-layout>
6   - <v-flex xs12 sm8 md10>
7   - <v-btn class="open-dialog-button mt-3" round dark @click="printInvoice()">
8   - Print
9   - <v-icon size="18" right dark>print</v-icon>
10   - </v-btn>
11   - </v-flex>
12   - </v-layout>
13   - <v-flex xs12 sm12 id="printMe">
  5 + <v-flex xs12 sm12>
  6 + <v-layout>
  7 + <v-flex xs12 sm12 md10 class="mx-auto">
  8 + <v-btn class="open-dialog-button mt-3" round dark @click="printInvoice()">
  9 + Print
  10 + <v-icon size="18" right dark>print</v-icon>
  11 + </v-btn>
  12 + </v-flex>
  13 + </v-layout>
14 14 <v-layout wrap>
15 15 <!-- ****** TABLE DATA MARK ****** -->
16   - <v-flex xs12 sm12 md12>
  16 + <v-flex xs12 sm12 md10 lg10 class="mx-auto" id="printMe">
17 17 <v-card
18 18 style="
19 19 background-color: #fff;
... ... @@ -24,105 +24,87 @@
24 24 box-shadow: 0 1px 1px 0 rgba(60,64,67,0.08), 0 1px 3px 1px rgba(60,64,67,0.16);"
25 25 >
26 26 <!-- <v-layout wrap> -->
27   - <v-flex xs12 style="padding:16px 0px;">
28   - <v-layout wrap>
29   - <v-flex xs12 sm3 md4 style="text-align:center">
30   - <v-avatar>
31   - <img :src="userData.schoolLogoUrl" v-if="userData.schoolLogoUrl" />
32   - <img
33   - src="/static/schoolIcons/INTRACK_White.png"
34   - v-else-if="!userData.schoolLogoUrl"
35   - />
36   - </v-avatar>
37   - <p
38   - style="font-size: 20px !important;
39   - font-weight: 500;
40   - line-height: 1 !important;
41   - letter-spacing: 0.02em !important;
42   - margin:8px 0px;"
43   - >{{ userData.name }}</p>
44   - <p>{{ userData.address }}</p>
45   - </v-flex>
46   - <v-flex xs12 sm5 md4 class="text-xs-center">
47   - <v-layout>
48   - <v-flex xs4 sm3>
49   - <h5 style="float:right;margin: 4px 0px;">
50   - <b>Name:</b>
51   - </h5>
52   - </v-flex>
53   - <v-flex sm9 xs8>
54   - <h5
55   - style="margin: 4px 0px;float: left;"
56   - >{{ invoiceParticularData.studentId.name }}</h5>
57   - </v-flex>
58   - </v-layout>
59   - <v-layout>
60   - <v-flex xs4 sm3>
61   - <h5 style="float:right;margin: 4px 0px;">
62   - <b>Class:</b>
63   - </h5>
64   - </v-flex>
65   - <v-flex sm9 xs8>
66   - <h5
67   - style="margin: 4px 0px;float: left;"
68   - >{{ invoiceParticularData.classId.classNum }}</h5>
69   - </v-flex>
70   - </v-layout>
71   - <v-layout>
72   - <v-flex xs4 sm3>
73   - <h5 style="float:right;;margin: 4px 0px;">
74   - <b>Roll:</b>
75   - </h5>
76   - </v-flex>
77   - <v-flex sm9 xs8>
78   - <h5
79   - style="margin: 4px 0px;float: left;"
80   - >{{ invoiceParticularData.studentId.rollNo }}</h5>
81   - </v-flex>
82   - </v-layout>
83   - <v-layout>
84   - <v-flex xs4 sm3>
85   - <h5 style="float:right;margin: 4px 0px;">
86   - <b>email:</b>
87   - </h5>
88   - </v-flex>
89   - <v-flex sm9 xs8>
90   - <h5
91   - class="linkCover"
92   - style="margin: 4px 0px;float: left;"
93   - >{{ invoiceParticularData.studentId.email }}</h5>
94   - </v-flex>
95   - </v-layout>
96   - </v-flex>
97   - <v-flex xs12 sm4 md4 class="text-xs-center">
98   - <v-layout>
99   - <v-flex xs4 sm3>
100   - <h5 style="float:right;margin: 4px 0px;">
101   - <b>invoice:</b>
102   - </h5>
103   - </v-flex>
104   - <v-flex sm9 xs8>
105   - <h5
106   - style="margin: 4px 0px;float: left;"
107   - >#{{ invoiceParticularData.invoiceNumber }}</h5>
  27 + <v-layout wrap>
  28 + <v-flex xs12 sm12 md12>
  29 + <div
  30 + style="
  31 + border-bottom: 1px solid #ddd;
  32 + overflow: hidden;
  33 + vertical-align: middle;
  34 + margin: 10px;
  35 + padding-bottom: 10px;"
  36 + >
  37 + <v-flex xs12 sm12 md12>
  38 + <v-layout>
  39 + <div class="school-logo">
  40 + <v-avatar>
  41 + <img :src="userData.schoolLogoUrl" v-if="userData.schoolLogoUrl" />
  42 + <img
  43 + src="/static/schoolIcons/INTRACK_White.png"
  44 + v-else-if="!userData.schoolLogoUrl"
  45 + />
  46 + </v-avatar>
  47 + </div>
  48 + <div class="school-name">
  49 + <h2>{{ userData.name }}</h2>
  50 + </div>
  51 + </v-layout>
  52 + </v-flex>
  53 + </div>
  54 + </v-flex>
  55 + <!-- Profile School -->
  56 + <v-layout>
  57 + <!-- school info -->
  58 + <v-flex xs12 sm12 md12 lg12 style="margin:0px 10px; ">
  59 + <v-layout wrap>
  60 + <v-flex xs4 sm4 md4 lg4 style="padding:4px;padding-left:16px;">
  61 + <span style="font-size: 16px; color: #707478;">From</span>
  62 + <br />
  63 + <p style="font-size:20px;margin-bottom: 16px;">{{ userData.name }}</p>
  64 + <p
  65 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  66 + >{{ userData.address }}</p>
  67 + <p
  68 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  69 + >Phone : {{ userData.mobile }}</p>
  70 + <p
  71 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  72 + >Email : {{ userData.email }}</p>
108 73 </v-flex>
109   - </v-layout>
110   - <v-layout>
111   - <v-flex xs4 sm3>
112   - <h5 style="float:right;margin: 4px 0px;">
113   - <b>Status:</b>
114   - </h5>
  74 + <!-- student info -->
  75 + <v-flex xs4 sm4 md4 lg4 style="padding:4px;padding-left:16px;">
  76 + <span style="font-size: 16px; color: #707478;">To</span>
  77 + <br />
  78 + <p
  79 + style="font-size:20px;margin-bottom: 16px;"
  80 + >{{ invoiceParticularData.studentId.name }}</p>
  81 + <p
  82 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  83 + >Class : {{ invoiceParticularData.classId.classNum }}</p>
  84 + <p
  85 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  86 + >Roll : {{ invoiceParticularData.studentId.rollNo }}</p>
  87 + <p
  88 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  89 + >Email : {{ invoiceParticularData.studentId.email ? invoiceParticularData.studentId.email: '-' }}</p>
115 90 </v-flex>
116   - <v-flex sm9 xs8>
117   - <h5
118   - style="margin: 4px 0px;float: left;"
119   - >{{ invoiceParticularData.paymentStatus }}</h5>
  91 + <v-flex xs4 sm4 md4 lg4 style="padding:4px;padding-left:16px;">
  92 + <br />
  93 + <p
  94 + style="font-size: 15px;margin:0px;margin-bottom:8px;"
  95 + >Invoice #{{ invoiceParticularData.invoiceNumber }}</p>
  96 + <br />
  97 + <p
  98 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  99 + >Status : {{ invoiceParticularData.paymentStatus }}</p>
  100 + <p
  101 + style="font-size: 15px;color: #707478;margin:0px;margin-bottom:8px;"
  102 + >Payment Method : {{ invoiceParticularData.paymentMethod }}</p>
120 103 </v-flex>
121 104 </v-layout>
122 105 </v-flex>
123 106 </v-layout>
124   - </v-flex>
125   - <!-- </v-layout> -->
  107 + </v-layout>
126 108 <table
127 109 class="tableRsponsive"
128 110 style="
... ...