Subversion Repositories SmartDukaan

Rev

Rev 22551 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="row">
        <div class="col-lg-12">
                <table class="table table-striped table-advance table-hover">
                        <tbody>
                                <tr>
                                        <th>Id</th>
                                        <th>Reference</th>
                                        <th>Reference Type</th>
                                        <th>+ / -</th>
                                        <th>Amount</th>
                                        <th>Date</th>
                                        <th>Description</th>
                    <th>Doc</th>
                                </tr>
                                #if(!$walletHistories.isEmpty())
                                #foreach( $walletHistory in $walletHistories )
                                        <tr class="wallet-details" data="$walletHistory.getId()">
                                                <td>$walletHistory.getId()</td>
                                                <td>$walletHistory.getReference()</td>
                                                <td>$walletHistory.getReferenceType()</td>
                                                #if($walletHistory.getAmount() >= 0)
                                                        <td>+</td>
                                                        <td>$walletHistory.getAmount()</td>
                                                #else
                                                        <td>-</td>
                                                        #set($amount = 0-$walletHistory.getAmount())
                                                        <td>$amount</td>
                                                #end
                                                <td>$walletHistory.getFormattedDate()</td>
                                                #if($walletHistory.getDescription())
                                                        <td>$walletHistory.getDescription()</td>
                                                #else
                                                        <td></td>
                                                #end
                            <td>
                                #if($walletAttachmentMap && $walletAttachmentMap.containsKey($walletHistory.getId()))
                                    <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
                                            data-doc-url="${rc.contextPath}/document/$walletAttachmentMap.get($walletHistory.getId())">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                #end
                            </td>
                                        </tr>
                                #end
                        #else
                                <tr>
                        <td colspan="8" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                </tr>
                        #end
                        </tbody>
            </table>
        </div>
</div>