Subversion Repositories SmartDukaan

Rev

Rev 34046 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33775 ranu 1
<div class="col-lg-12">
36714 amit 2
    <p><b>$customRetailer.getBusinessName()</b> - (<b>Opening Balance: ${openingBalance}</b>) | (<b>Closing Balance: ${closingBalance}</b>)</p>
33775 ranu 3
    ##    <p><b>Period: </b>${startDate} - ${endDate}</p>
4
 
33809 ranu 5
    <table class="table table-bordered table-condensed" id="accountStatementSummaryReport" style="width:100%">
33775 ranu 6
        <thead class="row htable" style="background:#F5F5F5;">
7
        <tr style="color:black;">
8
            <th>Date</th>
9
            <th>Transact Type</th>
10
            <th>Reference Id</th>
11
            <th>Debit</th>
12
            <th>Credit</th>
13
            <th>Running Balance</th>
14
            <th>Narration</th>
15
        </tr>
16
        </thead>
17
        <tbody>
18
        <!-- Wallet History Iteration -->
19
            #foreach($walletEntry in $wallethistory)
20
            <tr>
21
                <td>$walletEntry.getFormattedDate()</td>
22
                <td>$walletEntry.getReferenceType()</td>
23
                <td>$walletEntry.getReference()</td>
24
                #if($walletEntry.amount && $walletEntry.amount > 0)
25
                    <td>0</td>
26
                    <td>$walletEntry.getAmount()</td>
27
                #else
28
                    <td><span>-</span>$walletEntry.getAmount()</td>
29
                    <td>0</td>
30
                #end
31
 
32
                <td>
33
                    #set($runningBalance = $openingBalance+$walletEntry.getAmount())
34
                        $runningBalance
35
                </td>
36
 
37
                <td>$walletEntry.getDescription()</td>
38
            </tr>
39
 
40
            #end
41
 
42
        <!-- Billed Statement Iteration -->
43
            #foreach($statement in $billedStatementDetails)
44
            <tr>
45
                <td>$statement.getOnDate()</td>
46
                <td>Billing</td>
47
                <td>$statement.getInvoiceNumber()</td>
48
 
49
                #if($statement.amount && $statement.amount > 0)
50
                    <td>$statement.getAmount()</td>
51
                    <td>0</td>
52
                #else
53
                    <td>0</td>
54
                    <td>- $statement.getAmount()</td>
55
                #end
56
 
57
                <td>
58
                    #set($runningBalance = $openingBalance - ($statement.getAmount()))
59
                        $runningBalance
60
                </td>
61
                <td>$statement.getReferenceType()</td>
62
            </tr>
63
            #end
64
 
65
        <!-- Grand Total Row -->
34046 aman.kumar 66
        </tbody>
67
        <tfoot>
33775 ranu 68
        <tr>
69
            <td colspan="3">Grand Total</td>
70
            <td>${grandTotalDebit}</td>
71
            <td>${grandTotalCredit}</td>
72
            <td colspan="2"></td>
73
        </tr>
34046 aman.kumar 74
        </tfoot>
33775 ranu 75
    </table>
76
</div>
34046 aman.kumar 77
 
78
<script>
79
    $(document).ready(function () {
80
        $('#accountStatementSummaryReport').DataTable();
81
    })
82
 
83
</script>