Subversion Repositories SmartDukaan

Rev

Rev 33809 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33775 ranu 1
<div class="col-lg-12">
2
    <p><b>$customRetailer.getBusinessName()</b> - (<b>Opening Balance: ${openingBalance}</b>)</p>
3
    ##    <p><b>Period: </b>${startDate} - ${endDate}</p>
4
 
5
    <table class="table table-bordered table-condensed" id="walletSummaryReport" style="width:100%">
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 -->
66
        <tr>
67
            <td colspan="3">Grand Total</td>
68
            <td>${grandTotalDebit}</td>
69
            <td>${grandTotalCredit}</td>
70
            <td colspan="2"></td>
71
        </tr>
72
 
73
        </tbody>
74
    </table>
75
</div>