Subversion Repositories SmartDukaan

Rev

Rev 33450 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33450 Rev 36242
Line 132... Line 132...
132
	    					<th>Reference Type</th>
132
	    					<th>Reference Type</th>
133
	    					<th>+ / -</th>
133
	    					<th>+ / -</th>
134
	    					<th>Amount</th>
134
	    					<th>Amount</th>
135
	    					<th>Date</th>
135
	    					<th>Date</th>
136
	    					<th>Description</th>
136
	    					<th>Description</th>
-
 
137
                            <th>Doc</th>
137
	    				</tr>
138
	    				</tr>
138
	    				#if(!$walletHistories.isEmpty())
139
	    				#if(!$walletHistories.isEmpty())
139
			    			#foreach( $walletHistory in $walletHistories )
140
			    			#foreach( $walletHistory in $walletHistories )
140
			    				<tr class="wallet-details" data="$walletHistory.getId()">
141
			    				<tr class="wallet-details" data="$walletHistory.getId()">
141
			    					<td>$walletHistory.getId()</td>
142
			    					<td>$walletHistory.getId()</td>
Line 153... Line 154...
153
			    					#if($walletHistory.getDescription())
154
			    					#if($walletHistory.getDescription())
154
			    						<td>$walletHistory.getDescription()</td>
155
			    						<td>$walletHistory.getDescription()</td>
155
			    					#else
156
			    					#else
156
			    						<td></td>
157
			    						<td></td>
157
			    					#end
158
			    					#end
-
 
159
                                    <td>
-
 
160
                                        #if($walletAttachmentMap && $walletAttachmentMap.containsKey($walletHistory.getId()))
-
 
161
                                            <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
-
 
162
                                                    data-doc-url="${rc.contextPath}/document/$walletAttachmentMap.get($walletHistory.getId())">
-
 
163
                                                <i class="fa fa-eye"></i>
-
 
164
                                            </button>
-
 
165
                                        #end
-
 
166
                                    </td>
158
			    				</tr>
167
			    				</tr>
159
			    			#end
168
			    			#end
160
		    			#else
169
		    			#else
161
		    				<tr>
170
		    				<tr>
162
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
171
                                <td colspan="8" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
163
		    				</tr>
172
		    				</tr>
164
		    			#end
173
		    			#end
165
	    			</tbody>
174
	    			</tbody>
166
	    		</table>
175
	    		</table>
167
	    	</div>
176
	    	</div>
Line 184... Line 193...
184
					#end
193
					#end
185
				</div>
194
				</div>
186
	    	</div>
195
	    	</div>
187
	    </div>
196
	    </div>
188
    #end
197
    #end
-
 
198
 
-
 
199
    <!-- Document View Modal -->
-
 
200
    <div class="modal fade" id="walletDocViewModal" role="dialog">
-
 
201
        <div class="modal-dialog modal-lg">
-
 
202
            <div class="modal-content">
-
 
203
                <div class="modal-header">
-
 
204
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
205
                    <h4 class="modal-title">Payment Proof</h4>
-
 
206
                </div>
-
 
207
                <div class="modal-body" style="text-align:center;">
-
 
208
                    <img id="wallet-doc-preview" src="" style="max-width:100%; max-height:500px;">
-
 
209
                </div>
-
 
210
                <div class="modal-footer">
-
 
211
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
-
 
212
                </div>
-
 
213
            </div>
-
 
214
        </div>
-
 
215
    </div>
189
</section>
216
</section>
190
<script type="text/javascript">
217
<script type="text/javascript">
-
 
218
    $(document).on('click', '.wallet-doc-view-btn', function () {
-
 
219
        var docUrl = $(this).data('doc-url');
-
 
220
        $('#wallet-doc-preview').attr('src', docUrl);
-
 
221
        $('#walletDocViewModal').modal('show');
-
 
222
    });
191
	$(function () {
223
	$(function () {
192
		$('input[name="walletPeriod"]').daterangepicker(getRangedDatePicker());
224
		$('input[name="walletPeriod"]').daterangepicker(getRangedDatePicker());
193
		$('input[name="statementPeriod"]').daterangepicker(getStatementRanges());
225
		$('input[name="statementPeriod"]').daterangepicker(getStatementRanges());
194
		$('.mk_fetch_statement').click(function () {
226
		$('.mk_fetch_statement').click(function () {
195
			let walletRangePicker = getDatesFromPicker('input[name="walletPeriod"]');
227
			let walletRangePicker = getDatesFromPicker('input[name="walletPeriod"]');