Subversion Repositories SmartDukaan

Rev

Rev 33582 | Rev 33658 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33582 Rev 33617
Line -... Line 1...
-
 
1
<link href="https://cdn.datatables.net/fixedcolumns/3.3.0/css/fixedColumns.bootstrap.css" rel="stylesheet"/>
-
 
2
 
1
<section class="wrapper">
3
<section class="wrapper">
2
    <style>
4
    <style>
3
        #paymentDetail:hover {
5
        #paymentDetail:hover {
4
            background-color: #9acfea;
6
            background-color: #9acfea;
5
        }
7
        }
Line 18... Line 20...
18
        }
20
        }
19
 
21
 
20
        .mk_feeCompleted {
22
        .mk_feeCompleted {
21
            width: 40px;
23
            width: 40px;
22
        }
24
        }
-
 
25
 
-
 
26
        #allPendingLoiForm td, #allPendingLoiForm th {
-
 
27
            min-width: 95px;
-
 
28
        }
23
    </style>
29
    </style>
24
    <div class="row ">
30
    <div class="row ">
25
        <div class="col-lg-12">
31
        <div class="col-lg-12">
26
            <h3 class="page-header"><i class="icon_document_alt"></i>PENDING LOI</h3>
32
            <h3 class="page-header"><i class="icon_document_alt"></i>PENDING LOI</h3>
27
            <ol class="breadcrumb">
33
            <ol class="breadcrumb">
28
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
29
                <li><i class="icon_document_alt"></i>Pending LOI Forms</li>
35
                <li><i class="icon_document_alt"></i>Pending LOI Forms</li>
-
 
36
                #if($isAuthUser)
-
 
37
                    <div style="float:right;margin-bottom: 1%">
-
 
38
                        From:
-
 
39
                        <input type="date" name="from" placeholder="Form">
-
 
40
                        To:
-
 
41
                        <input type="date" name="to" placeholder="To">
-
 
42
                        <button id="downloadAllLoiForm">
-
 
43
                            Downlod
-
 
44
                        </button>
-
 
45
                    </div>
-
 
46
                #end
30
            </ol>
47
            </ol>
31
        </div>
48
        </div>
32
    </div>
49
    </div>
33
    <div class="dataTables_scrollBody">
-
 
34
        <table class="table table-bordered " style="width: 100%">
-
 
35
            <thead>
-
 
36
            <tr>
50
    <div>
37
 
-
 
38
                <th>Owner name</th>
-
 
39
                <th>Company Name</th>
-
 
40
                <th>Billing City</th>
51
        <div class="col-lg-12">
41
                <th>Total Commitment</th>
-
 
42
                <th>Brand Type</th>
-
 
43
                <th>Brand Fee</th>
-
 
44
                <th>Total collection</th>
-
 
45
                <th>Document Verified</th>
-
 
46
                <th>Brand Fee Completed</th>
52
            <table class="table table-border table-condensed table-bordered" id="allPendingLoiForm" style="width:100%">
47
                <th>Action</th>
53
                <thead class="row htable">
48
 
-
 
49
 
-
 
50
            </tr>
-
 
51
            </thead>
-
 
52
            <tbody>
-
 
53
                #foreach($data in $pendingFormList)
-
 
54
                <tr>
54
                <tr>
55
                    <input type="hidden" value="$data.getId()">
55
                    <th>Filled By</th>
56
                    <td>$data.getOwnerName()</td>
56
                    <th>Owner name</th>
57
                    <td>$data.getCompanyName()</td>
57
                    <th>Company Name</th>
58
                    <td>$data.getCity()</td>
58
                    <th>Billing City</th>
59
                    <td class="currency">$data.getTotalCommitment()</td>
59
                    <th>Total Commit</th>
60
                    <td>$data.getBrandType()</td>
60
                    <th>Brand Type</th>
61
                    <td class="currency">$data.getBrandFee()</td>
-
 
62
                    <td class="currency" class="btn btn-primary" id="paymentDetail"
-
 
63
                        onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
-
 
64
                        data-target="#commonModalDiv"> $data.getTotalFeeCollection()
-
 
65
                    </td>
61
                    <th>Brand Fee</th>
66
                    #if($data.isDocVerified().equals(true))
62
                    <th>Total collection</th>
67
                        <td style="background-color: #2ac845" class="mk_docVerified">Yes</td>
-
 
68
                    #elseif($data.isDocVerified().equals(false))
63
                    <th>Document Verified</th>
69
                        <td style="background-color: red" class="mk_docVerified">No</td>
-
 
70
                    #else
64
                    <th>Brand Fee Completed</th>
71
                        <td>--</td>
65
                    <th>Action</th>
72
                    #end
-
 
73
                    #if($data.getBrandFee()==$data.getTotalFeeCollection())
-
 
74
                        <td style="background-color: #2ac845" class="mk_feeCompleted">Yes</td>
-
 
75
                    #else
-
 
76
                        <td style="background-color: red" class="mk_feeCompleted">No</td>
-
 
77
                    #end
-
 
78
 
66
 
-
 
67
                </tr>
-
 
68
                </thead>
-
 
69
                <tbody>
79
                    #if(!$data.isPaymentApprover())
70
                    #foreach($data in $pendingFormList)
80
                        <td>
71
                    <tr>
-
 
72
                        <input type="hidden" value="$data.getId()">
-
 
73
                        <td>$data.getLoiFormFilledBy()</td>
-
 
74
                        <td>$data.getOwnerName()</td>
-
 
75
                        <td>$data.getCompanyName()</td>
-
 
76
                        <td>$data.getCity()</td>
-
 
77
                        <td class="currency">$data.getTotalCommitment()</td>
-
 
78
                        <td>$data.getBrandType()</td>
-
 
79
                        <td class="currency">$data.getBrandFee()</td>
-
 
80
                        <td class="currency" class="btn btn-primary" id="paymentDetail"
-
 
81
                            onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
81
                            #if(!$data.isLoiOtpPresent() &&  $data.isDocVerified() && $data.getTotalFeeCollection()!=0.0 && !$data.isDocApprover())
82
                            data-target="#commonModalDiv"> $data.getTotalFeeCollection()
-
 
83
                        </td>
-
 
84
                        #if($data.isDocVerified().equals(true))
82
                                <button type="button" class="btn-primary generateLoi" value="$data.getId()">Generate LOI
85
                            <td style="background-color: #2ac845" class="mk_docVerified">Yes</td>
-
 
86
                        #elseif($data.isDocVerified().equals(false))
-
 
87
                            <td style="background-color: red" class="mk_docVerified">No</td>
-
 
88
                        #else
83
                                </button>
89
                            <td>--</td>
84
                            #else
90
                        #end
85
                                #if(!$data.isLoiOtpPresent() && !$data.isDocApprover())
91
                        #if($data.getBrandFee()==$data.getTotalFeeCollection())
-
 
92
                            <td style="background-color: #2ac845" class="mk_feeCompleted">Yes</td>
-
 
93
                        #else
86
                                    <button type="button" value="$data.getId()"
94
                            <td style="background-color: red" class="mk_feeCompleted">No</td>
-
 
95
                        #end
-
 
96
 
-
 
97
                        #if(!$data.isPaymentApprover())
-
 
98
                            <td>
-
 
99
                                #if(!$data.isLoiOtpPresent() &&  $data.isDocVerified() && $data.getTotalFeeCollection()!=0.0 && !$data.isDocApprover())
87
                                            onclick="alert('Once all documents and at least 1st payment verified then you able to generate LOI')">
100
                                    <button type="button" class="btn-primary generateLoi" value="$data.getId()">Generate
88
                                        Generate LOI
101
                                        LOI
89
                                    </button>
102
                                    </button>
-
 
103
                                #else
-
 
104
                                    #if(!$data.isLoiOtpPresent() && !$data.isDocApprover())
-
 
105
                                        <button type="button" value="$data.getId()"
-
 
106
                                                onclick="alert('Once all documents and at least 1st payment verified then you able to generate LOI')">
-
 
107
                                            Generate LOI
-
 
108
                                        </button>
-
 
109
                                    #end
90
                                #end
110
                                #end
91
                            #end
-
 
92
 
111
 
93
                            #if($data.getBrandFee()>$data.getTotalFeeCollection() && !$data.isDocApprover())
112
                                #if($data.getBrandFee()>$data.getTotalFeeCollection() && !$data.isDocApprover())
94
                                <button type="button" class="btn-primary payModelBtn" value="$data.getId()"
113
                                    <button type="button" class="btn-primary payModelBtn" value="$data.getId()"
95
                                        data-toggle="modal" data-target="#brandFeeCollectionModel">Add payment
114
                                            data-toggle="modal" data-target="#brandFeeCollectionModel">Add payment
96
                                </button>
115
                                    </button>
97
                            #end
116
                                #end
98
                            ##                            #if($data.getLoiDoc()==0 && $data.isSalesTeam() && !$data.isLoiOtpPresent() && !$data.isDocApprover())
117
                                ##                            #if($data.getLoiDoc()==0 && $data.isSalesTeam() && !$data.isLoiOtpPresent() && !$data.isDocApprover())
99
                            ##                                <button type="button" class="btn-primary updateOnboardingForm" value="$data.getId()"
118
                                ##                                <button type="button" class="btn-primary updateOnboardingForm" value="$data.getId()"
100
                            ##                                        style="width: 100px">Update
119
                                ##                                        style="width: 100px">Update
101
                            ##                                </button>
120
                                ##                                </button>
102
                            ##                            #end
121
                                ##                            #end
103
                            #if(!$data.isDocVerified() && $data.isSalesTeam()&& !$data.isDocApprover())
122
                                #if(!$data.isDocVerified() && $data.isSalesTeam()&& !$data.isDocApprover())
104
                                <button class="upload-document-form btn-primary" value="$data.getId()">Upload Document
123
                                    <button class="upload-document-form btn-primary" value="$data.getId()">Upload
-
 
124
                                        Document
105
                                </button>
125
                                    </button>
106
                            #else
126
                                #else
107
                                #if($data.isDocApprover())
127
                                    #if($data.isDocApprover())
108
                                    #if($data.isDocApprover() && !$data.isDocVerified())
128
                                        #if($data.isDocApprover() && !$data.isDocVerified())
109
                                        <button class="upload-document-form btn-primary" value="$data.getId()">Approve
129
                                            <button class="upload-document-form btn-primary" value="$data.getId()">
-
 
130
                                                Approve
110
                                            Document
131
                                                Document
111
                                        </button>
132
                                            </button>
112
                                    #else
133
                                        #else
113
                                        <p>Document verified</p>
134
                                            <p>Document verified</p>
-
 
135
                                        #end
114
                                    #end
136
                                    #end
115
                                #end
137
                                #end
116
                            #end
138
                            </td>
117
                        </td>
-
 
118
                    #else
139
                        #else
119
                        <td>
140
                            <td>
120
                            <button id="paymentDetail"
141
                                <button id="paymentDetail"
121
                                    onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
142
                                        onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
122
                                    data-target="#commonModalDiv">View Payments
143
                                        data-target="#commonModalDiv">View Payments
123
                            </button>
144
                                </button>
124
                        </td>
145
                            </td>
-
 
146
                        #end
-
 
147
                    </tr>
125
                    #end
148
                    #end
126
                </tr>
149
                </tbody>
127
                #end
-
 
128
            </tbody>
150
            </table>
129
        </table>
151
        </div>
130
    </div>
152
    </div>
131
 
153
 
132
 
154
 
133
    <div class="modal fade" id="brandFeeCollectionModel" role="dialog">
155
    <div class="modal fade" id="brandFeeCollectionModel" role="dialog">
134
        <div class="modal-dialog modal-lg">
156
        <div class="modal-dialog modal-lg">
Line 231... Line 253...
231
            //handle response here
253
            //handle response here
232
            $('#commonModalDiv #commonModalBody').html(response);
254
            $('#commonModalDiv #commonModalBody').html(response);
233
        });
255
        });
234
    }
256
    }
235
 
257
 
-
 
258
    $(document).ready(function () {
-
 
259
        var dtable = $('#allPendingLoiForm').DataTable({
-
 
260
            "scrollX": true,
-
 
261
            "scrollY": "500px",
-
 
262
            scrollCollapse: true,
-
 
263
            "fixedHeader": true,
-
 
264
            fixedColumns: {
-
 
265
                leftColumns: 1
-
 
266
            }
-
 
267
 
-
 
268
        });
-
 
269
    });
236
 
270
 
237
</script>
271
</script>
238
<style>
272
<style>
239
    #paymentDetail.hover {
273
    #paymentDetail.hover {
240
        color: #2b669a;
274
        color: #2b669a;