|
10 | 10 |
|
11 | 11 | <div class="modal-body"> |
12 | 12 | <div class="row"> |
13 | | - <h2 class="col3 center border-1 bold padding"> |
14 | | - <p>##word.Amount Required##</p> |
15 | | - {{item.price}} ##word.$## |
16 | | - </h2> |
| 13 | + <div class="person-cart"> |
| 14 | + <div class="row"> |
| 15 | + <div class="col7"> |
| 16 | + <p class="bold"><span class="darkGray">##word.Group Name## : </span> {{item.name}}</p> |
| 17 | + </div> |
| 18 | + <div class="col5"> |
| 19 | + <p class="bold"><span class="darkGray">##word.Subject## : </span> {{item.subject.name}}</p> |
| 20 | + </div> |
| 21 | + </div> |
| 22 | + <div class="row"> |
| 23 | + <div class="col7"> |
| 24 | + <p class="bold"><span class="darkGray">##word.Teacher## : </span> {{item.teacher.firstName}}</p> |
| 25 | + </div> |
| 26 | + <div class="col5"> |
| 27 | + <p class="bold"><span class="darkGray">##word.Mobile## : </span> {{item.teacher.mobile}}</p> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + |
| 31 | + <div class="row"> |
| 32 | + <div class="col7"> |
| 33 | + <p class="bold"><span class="darkGray">##word.Educational Level## : </span> {{item.educationalLevel.name}}</p> |
| 34 | + </div> |
| 35 | + <div class="col5"> |
| 36 | + <p class="bold"><span class="darkGray">##word.School Year## : </span> {{item.schoolYear.name}}</p> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + |
| 40 | + <div class="row"> |
| 41 | + <div class="col7"> |
| 42 | + <p class="bold"><span class="darkGray">##word.Payment Method## : </span> {{item.paymentMethod.name##session.lang##}}</p> |
| 43 | + </div> |
| 44 | + <div class="col5"> |
| 45 | + <p class="bold"><span class="darkGray">##word.Price## : </span> {{item.price}} ##word.$##</p> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </div> |
17 | 49 | </div> |
18 | | - <div class="row"> |
19 | | - <i-date class="col4" ng-click="changePaymentMonth(studentItem)" ng-model="studentItem.$date" label="##word.Date##"></i-date> |
| 50 | + <div class="row" ng-show="studentItem.requiredPayment > 0"> |
| 51 | + <i-date class="col3" ng-click="changePaymentMonth(studentItem)" ng-model="studentItem.$date" label="##word.Date##"></i-date> |
20 | 52 | <i-list label="##word.Month##" ng-model="studentItem.$month" class="col2" display="name##session.lang##" items="monthList"></i-list> |
21 | | - <i-control type="number" class="col2" ng-change="calcRemain(studentItem)" ng-model="studentItem.$price" label="##word.Paid##"></i-control> |
22 | | - <i-control type="number" disabled class="col2" ng-model="studentItem.$remain" label="##word.Remain##"></i-control> |
23 | | - <i-button type="push" class="col2" label="##word.Pay##" ng-click="addStudentPayment(studentItem)"></i-button> |
| 53 | + <i-control type="number" disabled class="col2" ng-model="studentItem.requiredPayment" label="##word.Required payment## ##word.$##"></i-control> |
| 54 | + <i-control type="number" class="col2" ng-change="calcRemain(studentItem)" ng-model="studentItem.$price" label="##word.Paid## ##word.$##"></i-control> |
| 55 | + <i-control type="number" disabled class="col1" ng-model="studentItem.discount" label="##word.Discount## %"></i-control> |
| 56 | + <i-control type="number" disabled class="col1" ng-model="studentItem.$remain" label="##word.Remain## ##word.$##"></i-control> |
| 57 | + <i-button type="push" class="col1" label="##word.Pay##" ng-click="addStudentPayment(studentItem)"></i-button> |
24 | 58 | </div> |
25 | 59 | <p class="error">{{error}}</p> |
26 | | - <div class="row"> |
| 60 | + <div class="row" ng-show="studentItem.paymentList.length > 0"> |
27 | 61 | <div class="table-responsive"> |
28 | 62 | <table class="table bold" id="t-students"> |
29 | 63 | <tr> |
@@ -58,7 +92,7 @@ <h2 class="col3 center border-1 bold padding"> |
58 | 92 | <td class="center">{{p.price}} ##word.$##</td> |
59 | 93 | <td class="center"> |
60 | 94 | <i-button type="print" label="##word.Print##" ng-click="thermalPrint(s,p)"></i-button> |
61 | | - <i-button type="delete" label="##word.Delete##" ng-click="calcPayments(studentItem);s.paymentList.splice($index,1)"></i-button> |
| 95 | + <i-button type="delete" label="##word.Delete##" ng-click="s.paymentList.splice($index,1);calcPayments(s)"></i-button> |
62 | 96 | </td> |
63 | 97 | </tr> |
64 | 98 | </table> |
|
0 commit comments