| 34085 |
tejus.loha |
1 |
<table class="table table-border table-condensed table-bordered" id="allPendingLoiForm" style="width:100%">
|
|
|
2 |
<thead class="row htable">
|
|
|
3 |
<tr>
|
|
|
4 |
<th>Id</th>
|
|
|
5 |
<th>Company Name</th>
|
|
|
6 |
<th>Filled By</th>
|
|
|
7 |
<th>Owner name</th>
|
|
|
8 |
<th>Mobile</th>
|
|
|
9 |
<th>Email</th>
|
|
|
10 |
<th>Billing City</th>
|
|
|
11 |
<th>Total Commit</th>
|
|
|
12 |
<th>Brand Type</th>
|
|
|
13 |
<th>Brand Fee</th>
|
|
|
14 |
<th>Total collection</th>
|
|
|
15 |
<th>Status</th>
|
|
|
16 |
<th>Document Verified</th>
|
|
|
17 |
<th>Brand Fee Completed</th>
|
|
|
18 |
<th>Action</th>
|
|
|
19 |
</tr>
|
|
|
20 |
</thead>
|
|
|
21 |
<tbody>
|
|
|
22 |
#foreach($data in $pendingFormList)
|
|
|
23 |
<tr style="font-weight: bold">
|
|
|
24 |
<input type="hidden" value="$data.getId()">
|
|
|
25 |
<td>$data.getId()</td>
|
|
|
26 |
<td>$data.getCompanyName()</td>
|
|
|
27 |
<td>$data.getLoiFormFilledBy()</td>
|
|
|
28 |
<td>$data.getOwnerName()</td>
|
|
|
29 |
<td>$data.getMobile()</td>
|
|
|
30 |
<td>$data.getEmail()</td>
|
|
|
31 |
<td>$data.getCity()</td>
|
|
|
32 |
<td class="currency">$data.getTotalCommitment()</td>
|
|
|
33 |
#if($isAgreedBrandFeeChanger)
|
|
|
34 |
<td><select name="brandType">
|
|
|
35 |
$data.getBrandType()
|
|
|
36 |
#foreach($type in $brandType)
|
|
|
37 |
<option value="$type" #if($type==$data.getBrandType()) selected
|
|
|
38 |
#end>$type</option>
|
|
|
39 |
#end
|
|
|
40 |
</select>
|
|
|
41 |
<td><input name="brandFee" value="$data.getBrandFee()">
|
|
|
42 |
<div align="right">
|
|
|
43 |
<button type="button" class="save_agree_brand_fee btn-success"
|
|
|
44 |
value="$data.getId()">Save
|
|
|
45 |
</button>
|
|
|
46 |
</div>
|
|
|
47 |
</td>
|
|
|
48 |
|
|
|
49 |
#else
|
|
|
50 |
<td>$data.getBrandType()</td>
|
|
|
51 |
<td class="currency">$data.getBrandFee()</td>
|
|
|
52 |
#end
|
|
|
53 |
<td class="currency" class="btn btn-primary" id="paymentDetail"
|
|
|
54 |
onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
|
|
|
55 |
data-target="#commonModalDiv"> $data.getTotalFeeCollection()
|
|
|
56 |
</td>
|
|
|
57 |
<td>$data.getStatus()</td>
|
|
|
58 |
#if($data.isDocVerified().equals(true))
|
|
|
59 |
<td style="background-color: #2ac845" class="mk_docVerified">Yes</td>
|
|
|
60 |
#elseif($data.isDocVerified().equals(false))
|
|
|
61 |
<td style="background-color: red" class="mk_docVerified">No</td>
|
|
|
62 |
#else
|
|
|
63 |
<td>--</td>
|
|
|
64 |
#end
|
|
|
65 |
#if($data.getBrandFee()==$data.getTotalFeeCollection())
|
|
|
66 |
<td style="background-color: #2ac845" class="mk_feeCompleted">Yes</td>
|
|
|
67 |
#else
|
|
|
68 |
<td style="background-color: red" class="mk_feeCompleted">No</td>
|
|
|
69 |
#end
|
|
|
70 |
|
|
|
71 |
#if(!$data.isPaymentApprover())
|
|
|
72 |
<td>
|
| 35977 |
aman |
73 |
#if(!$data.isLoiOtpPresent() && $data.isDocVerified() && $data.getBrandFee()==$data.getTotalFeeCollection() && !$data.isDocApprover() && $data.isLoiApproved())
|
| 34085 |
tejus.loha |
74 |
<button type="button" class="btn-primary generateLoi" value="$data.getId()">Generate
|
|
|
75 |
LOI
|
|
|
76 |
</button>
|
|
|
77 |
|
|
|
78 |
#end
|
|
|
79 |
#if($isAuthUser)
|
|
|
80 |
<button type="button" class="btn-danger mk-approve-loi" value="$data.getId()"
|
|
|
81 |
data-company="$data.getCompanyName()" data-flag="0">Reject Loi
|
|
|
82 |
</button>
|
|
|
83 |
#end
|
|
|
84 |
#if(!($data.getLoiFillerEmail().equals($data.getLoginEmail())) && !$data.isDocApprover() && !$data.isLoiApproved() &&!$isAuthUser)
|
|
|
85 |
<button type="button" class="btn-danger mk-approve-loi" value="$data.getId()"
|
|
|
86 |
data-company="$data.getCompanyName()" data-flag="0">Reject Loi
|
|
|
87 |
</button>
|
|
|
88 |
<button type="button" class="btn-success mk-approve-loi" value="$data.getId()"
|
|
|
89 |
data-company="$data.getCompanyName()" data-flag="1">
|
|
|
90 |
Approve Loi
|
|
|
91 |
</button>
|
|
|
92 |
#end
|
|
|
93 |
|
|
|
94 |
#if($data.getBrandFee()>$data.getTotalFeeCollection() && !$data.isDocApprover())
|
|
|
95 |
<button type="button" class="btn-primary payModelBtn" value="$data.getId()"
|
|
|
96 |
data-toggle="modal" data-target="#brandFeeCollectionModel">Add payment
|
|
|
97 |
</button>
|
|
|
98 |
#end
|
|
|
99 |
#if($data.getLoiDoc()==0 && $data.isSalesTeam() && !$data.isLoiOtpPresent() && !$data.isDocApprover())
|
|
|
100 |
<button type="button" class="btn-primary updateLoiForm" value="$data.getId()"
|
|
|
101 |
style="width: 100px">Update
|
|
|
102 |
</button>
|
|
|
103 |
#end
|
|
|
104 |
#if(!$data.isDocVerified() && $data.isSalesTeam()&& !$data.isDocApprover())
|
|
|
105 |
<button type="button" class="upload-document-form btn-primary"
|
|
|
106 |
value="$data.getId()">Upload
|
|
|
107 |
Document
|
|
|
108 |
</button>
|
|
|
109 |
#else
|
|
|
110 |
#if($data.isDocApprover())
|
|
|
111 |
#if($data.isDocApprover() && !$data.isDocVerified())
|
|
|
112 |
<button class="upload-document-form btn-primary" value="$data.getId()">
|
|
|
113 |
Approve
|
|
|
114 |
Document
|
|
|
115 |
</button>
|
|
|
116 |
#else
|
|
|
117 |
<p>Document verified</p>
|
|
|
118 |
#end
|
|
|
119 |
#end
|
|
|
120 |
#end
|
|
|
121 |
</td>
|
|
|
122 |
#else
|
|
|
123 |
<td>
|
|
|
124 |
<button id="paymentDetail"
|
|
|
125 |
onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
|
|
|
126 |
data-target="#commonModalDiv">View Payments
|
|
|
127 |
</button>
|
|
|
128 |
</td>
|
|
|
129 |
#end
|
|
|
130 |
</tr>
|
|
|
131 |
#end
|
|
|
132 |
</tbody>
|
|
|
133 |
<tfoot class="row htable">
|
|
|
134 |
<tr>
|
|
|
135 |
<th>Id</th>
|
|
|
136 |
<th>Company Name</th>
|
|
|
137 |
<th>Filled By</th>
|
|
|
138 |
<th>Owner name</th>
|
|
|
139 |
<th>Mobile</th>
|
|
|
140 |
<th>Email</th>
|
|
|
141 |
<th>Billing City</th>
|
|
|
142 |
<th>Total Commit</th>
|
|
|
143 |
<th>Brand Type</th>
|
|
|
144 |
<th>Brand Fee</th>
|
|
|
145 |
<th>Total collection</th>
|
|
|
146 |
<th>Status</th>
|
|
|
147 |
<th>Document Verified</th>
|
|
|
148 |
<th>Brand Fee Completed</th>
|
|
|
149 |
<th>Action</th>
|
|
|
150 |
</tr>
|
|
|
151 |
</tfoot>
|
|
|
152 |
</table>
|
|
|
153 |
<div>$paginationInfo</div>
|
|
|
154 |
<script>
|
|
|
155 |
function pageInfo() {
|
|
|
156 |
$('#paginationInfo').empty();
|
|
|
157 |
$('#paginationInfo').html($paginationInfo);
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
</script>
|