| 33507 |
tejus.loha |
1 |
<section class="wrapper">
|
|
|
2 |
<style>
|
|
|
3 |
#paymentDetail:hover {
|
| 33525 |
tejus.loha |
4 |
background-color: lightgreen;
|
| 33507 |
tejus.loha |
5 |
}
|
| 33525 |
tejus.loha |
6 |
|
|
|
7 |
#paymentDetail {
|
|
|
8 |
background-color: gainsboro;
|
|
|
9 |
}
|
| 33507 |
tejus.loha |
10 |
</style>
|
| 33559 |
tejus.loha |
11 |
<div class="row ">
|
|
|
12 |
<div class="col-lg-12">
|
|
|
13 |
<h3 class="page-header"><i class="icon_document_alt"></i>PENDING LOI</h3>
|
|
|
14 |
<ol class="breadcrumb">
|
|
|
15 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
16 |
<li><i class="icon_document_alt"></i>Pending LOI Forms</li>
|
|
|
17 |
</ol>
|
|
|
18 |
</div>
|
|
|
19 |
</div>
|
| 33507 |
tejus.loha |
20 |
<div class="dataTables_scrollBody">
|
|
|
21 |
<table class="table table-bordered " style="width: 100%">
|
|
|
22 |
<thead>
|
|
|
23 |
<tr>
|
|
|
24 |
|
|
|
25 |
<th>Owner name</th>
|
|
|
26 |
<th>Company Name</th>
|
|
|
27 |
<th>Billing City</th>
|
|
|
28 |
<th>Total Commitment</th>
|
|
|
29 |
<th>Brand Type</th>
|
|
|
30 |
<th>Brand Fee</th>
|
|
|
31 |
<th>Total collection</th>
|
|
|
32 |
<th>status</th>
|
|
|
33 |
<th>Action</th>
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
</tr>
|
|
|
37 |
</thead>
|
|
|
38 |
<tbody>
|
|
|
39 |
#foreach($data in $pendingFormList)
|
|
|
40 |
<tr>
|
|
|
41 |
<input type="hidden" value="$data.getId()">
|
|
|
42 |
<td>$data.getOwnerName()</td>
|
|
|
43 |
<td>$data.getCompanyName()</td>
|
|
|
44 |
<td>$data.getCity()</td>
|
|
|
45 |
<td class="currency">$data.getTotalCommitment()</td>
|
|
|
46 |
<td>$data.getBrandType()</td>
|
|
|
47 |
<td class="currency">$data.getBrandFee()</td>
|
| 33525 |
tejus.loha |
48 |
<td class="currency" class="btn btn-primary" id="paymentDetail"
|
|
|
49 |
onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
|
|
|
50 |
data-target="#commonModalDiv"> $data.getTotalFeeCollection()
|
|
|
51 |
</td>
|
| 33507 |
tejus.loha |
52 |
<td>$data.getStatus()</td>
|
| 33525 |
tejus.loha |
53 |
#if(!$data.isPaymentApprover())
|
|
|
54 |
<td>
|
|
|
55 |
#if(!$data.isLoiOtpPresent() && $data.isDocVerified() && $data.getTotalFeeCollection()!=0.0 && !$data.isDocApprover())
|
|
|
56 |
<button type="button" class="btn-primary generateLoi" value="$data.getId()">Generate LOI
|
| 33507 |
tejus.loha |
57 |
</button>
|
| 33525 |
tejus.loha |
58 |
#else
|
|
|
59 |
#if(!$data.isLoiOtpPresent() && !$data.isDocApprover())
|
|
|
60 |
<button type="button" value="$data.getId()"
|
|
|
61 |
onclick="alert('Once all documents and at least 1st payment verified then you able to generate LOI')">
|
|
|
62 |
Generate LOI
|
|
|
63 |
</button>
|
|
|
64 |
#end
|
| 33507 |
tejus.loha |
65 |
#end
|
|
|
66 |
|
| 33525 |
tejus.loha |
67 |
#if($data.getBrandFee()>$data.getTotalFeeCollection() && !$data.isDocApprover())
|
|
|
68 |
<button type="button" class="btn-primary payModelBtn" value="$data.getId()"
|
|
|
69 |
data-toggle="modal" data-target="#brandFeeCollectionModel">Add payment
|
|
|
70 |
</button>
|
|
|
71 |
#end
|
| 33577 |
tejus.loha |
72 |
## #if($data.getLoiDoc()==0 && $data.isSalesTeam() && !$data.isLoiOtpPresent() && !$data.isDocApprover())
|
|
|
73 |
## <button type="button" class="btn-primary updateOnboardingForm" value="$data.getId()"
|
|
|
74 |
## style="width: 100px">Update
|
|
|
75 |
## </button>
|
|
|
76 |
## #end
|
| 33525 |
tejus.loha |
77 |
#if(!$data.isDocVerified() && $data.isSalesTeam()&& !$data.isDocApprover())
|
|
|
78 |
<button class="upload-document-form btn-primary" value="$data.getId()">Upload Document
|
|
|
79 |
</button>
|
|
|
80 |
#else
|
| 33577 |
tejus.loha |
81 |
#if($data.isDocApprover())
|
|
|
82 |
#if($data.isDocApprover() && !$data.isDocVerified())
|
|
|
83 |
<button class="upload-document-form btn-primary" value="$data.getId()">Approve
|
|
|
84 |
Document
|
|
|
85 |
</button>
|
|
|
86 |
#else
|
|
|
87 |
<p>Document verified</p>
|
|
|
88 |
#end
|
|
|
89 |
#end
|
| 33525 |
tejus.loha |
90 |
#end
|
|
|
91 |
</td>
|
|
|
92 |
#else
|
|
|
93 |
<td>
|
|
|
94 |
<button id="paymentDetail"
|
|
|
95 |
onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
|
| 33577 |
tejus.loha |
96 |
data-target="#commonModalDiv">View Payments
|
| 33507 |
tejus.loha |
97 |
</button>
|
| 33525 |
tejus.loha |
98 |
</td>
|
|
|
99 |
#end
|
| 33507 |
tejus.loha |
100 |
</tr>
|
|
|
101 |
#end
|
|
|
102 |
</tbody>
|
|
|
103 |
</table>
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
<div class="modal fade" id="brandFeeCollectionModel" role="dialog">
|
|
|
108 |
<div class="modal-dialog">
|
|
|
109 |
|
|
|
110 |
<!-- Modal content-->
|
|
|
111 |
<div class="modal-content">
|
|
|
112 |
<div class="modal-header">
|
|
|
113 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
114 |
<h4 class="modal-title">Brand Fee Collection Form</h4>
|
|
|
115 |
</div>
|
|
|
116 |
<div class="modal-body" style="max-height: 500px;overflow-y: auto;">
|
|
|
117 |
<form name="brandFeeCollectionForm" id="brandFeeCollectionForm" style="align-content: center"
|
|
|
118 |
method="post">
|
|
|
119 |
<div class="row">
|
|
|
120 |
<div class="col-lg-3 ">
|
|
|
121 |
<div class="form-group">
|
|
|
122 |
<label>Amount :</label>
|
|
|
123 |
<input type="number" name="collectedAmount" class="form-control" required></div>
|
|
|
124 |
</div>
|
|
|
125 |
<div class="col-lg-3">
|
|
|
126 |
<div class="form-group">
|
|
|
127 |
<label>Payment Mode :</label>
|
|
|
128 |
<select class="form-control" name="paymentMode" required>
|
|
|
129 |
<option selected>Select mode</option>
|
|
|
130 |
<option value="UPI">UPI</option>
|
|
|
131 |
<option value="Cheque">Cheque</option>
|
|
|
132 |
<option value="IMPS">IMPS</option>
|
|
|
133 |
<option value="NEFT">NEFT</option>
|
|
|
134 |
<option value="RTGS">RTGS</option>
|
|
|
135 |
</select>
|
|
|
136 |
</div>
|
|
|
137 |
</div>
|
|
|
138 |
<div class="col-lg-3">
|
|
|
139 |
<div class="form-group">
|
|
|
140 |
<label>Reference No :</label>
|
|
|
141 |
<input type="text" name="paymentReferenceNo" class="form-control" required>
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
|
|
144 |
<div class="col-lg-3">
|
|
|
145 |
<div class="form-group">
|
|
|
146 |
<button type="button" class="btn-primary " id="addBrandFeePayment" value=""
|
|
|
147 |
data-dismiss="modal"
|
|
|
148 |
style="margin-top:28px;">Add
|
|
|
149 |
Payment
|
|
|
150 |
</button>
|
|
|
151 |
</div>
|
|
|
152 |
|
|
|
153 |
</div>
|
|
|
154 |
</div>
|
|
|
155 |
</form>
|
|
|
156 |
</div>
|
|
|
157 |
<div class="modal-footer">
|
|
|
158 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
159 |
</div>
|
|
|
160 |
</div>
|
|
|
161 |
|
|
|
162 |
</div>
|
|
|
163 |
</div>
|
|
|
164 |
<div class="modal fade" id="commonModalDiv" role="dialog">
|
|
|
165 |
<div class="modal-dialog">
|
|
|
166 |
|
|
|
167 |
<!-- Modal content-->
|
|
|
168 |
<div class="modal-content">
|
|
|
169 |
<div class="modal-header">
|
|
|
170 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
171 |
</div>
|
|
|
172 |
<div class="modal-body" style="width: 100%">
|
|
|
173 |
<div id="commonModalBody">
|
|
|
174 |
## dynemic model bodies
|
|
|
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
<div class="modal-footer">
|
|
|
178 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
179 |
</div>
|
|
|
180 |
</div>
|
|
|
181 |
|
|
|
182 |
</div>
|
|
|
183 |
</div>
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
</section>
|
|
|
187 |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js"></script>
|
|
|
188 |
<script>
|
|
|
189 |
$(document).ready(function () {
|
|
|
190 |
$('.payModelBtn').click(function () {
|
|
|
191 |
let loiId = $(this).val();
|
|
|
192 |
addBrandFeePayment.value = loiId;
|
|
|
193 |
});
|
|
|
194 |
});
|
|
|
195 |
|
|
|
196 |
function getPaymentsDetails(loiId) {
|
|
|
197 |
doGetAjaxRequestHandler(`${context}/paymentsDetail?loiId=` + loiId, function (response) {
|
|
|
198 |
//handle response here
|
|
|
199 |
$('#commonModalDiv #commonModalBody').html(response);
|
|
|
200 |
});
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
</script>
|
|
|
205 |
<style>
|
|
|
206 |
#paymentDetail.hover {
|
|
|
207 |
color: #2b669a;
|
|
|
208 |
}
|
|
|
209 |
</style>
|