Subversion Repositories SmartDukaan

Rev

Rev 34066 | Rev 34505 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33092 tejus.loha 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage(
5
                "reportswalletstatement.walletstatement")</h3>
6
            <ol class="breadcrumb">
7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
8
                    "reportswalletstatement.home")</a></li>
9
                <li><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</li>
10
            </ol>
11
        </div>
12
    </div>
13
    <div class="row col-lg-12" style="float: right;">
14
 
15
 
16
        #if($isAdmin)
17
            #set($counter =0)
18
            #foreach($walletSummart in $walletSummartList )
19
                #if($counter==1)
20
                    #break
21
                #end
34011 tejus.loha 22
                <h4 style="color:#055fb7;margin-top: 20px;margin-bottom: 10px;margin-left:auto:">
33092 tejus.loha 23
                    $walletSummart.getCode() - $walletSummart.getName()(
24
                    $walletSummart.getPhone()-$walletSummart.getEmail()
33815 ranu 25
                    ) (
34097 aman.kumar 26
                    #if($userWallet.getAmount())
27
                        Wallet Amount : $userWallet.getAmount()
33815 ranu 28
                    #end)
34011 tejus.loha 29
                </h4>
33092 tejus.loha 30
                #set($counter =$counter+1)
31
            #end
34066 aman.kumar 32
            #if($isRBM)
33
                <div style="float: left;"
34
                     class="col-lg-2 form-group">
35
                    <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
36
                        <option value="" disabled selected>Partners</option>
37
                        #foreach($fofoId in $customRetailersMap.keySet())
38
                            <option value="$fofoId"
39
                                    data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
40
                        #end
41
                    </select>
42
                </div>
43
            #else
34097 aman.kumar 44
                <div class="row col-lg-12" style="float: right;">
45
                    <div class="col-lg-2">
46
                        <div class="input-group">
47
                            <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
48
                                   id="typeaheadpartner"
49
                                   name="Item" data-provide="typeahead" autocomplete="off"
50
                                   style="margin-bottom: 10px;margin-left: -9px">
51
                            <input id="partnerId" type="hidden">
52
                            <br>
53
                        </div>
33092 tejus.loha 54
                    </div>
55
                </div>
34066 aman.kumar 56
            #end
33092 tejus.loha 57
        #end
58
        #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
59
                                                             placeholder="" name="" value="$startDate">
60
 
61
        #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""
62
                                                           value="$endDate">
63
        <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
64
        <button type="submit" class="download-wallet-summary-report">#springMessage(
65
            "reportswalletstatement.downloadreport") </button>
66
 
67
    </div>
68
 
69
 
30164 manish 70
    <div class="col-lg-12">
33815 ranu 71
 
72
 
30164 manish 73
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
74
 
75
            <thead class="row htable" style="background:#F5F5F5;">
76
 
77
            <tr style="color:black;">
33092 tejus.loha 78
 
34097 aman.kumar 79
                <th> #springMessage("reportswalletstatement.amount")</th>
33092 tejus.loha 80
                <th>  #springMessage("reportswalletstatement.reference")</th>
81
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
33815 ranu 82
                <th>Running Balance</th>
33092 tejus.loha 83
                <th> Created On</th>
84
                <th> #springMessage("reportswalletstatement.description")</th>
85
 
86
 
30164 manish 87
            </tr>
88
            </thead>
89
            <tbody>
90
                #foreach($walletSummart in $walletSummartList )
33092 tejus.loha 91
                <tr>
30164 manish 92
                    <td>$walletSummart.getAmount()</td>
33092 tejus.loha 93
                    <td>$walletSummart.getReference()</td>
94
                    <td>$walletSummart.getReferenceType()</td>
33815 ranu 95
                    <td>
96
                        #set($runningBalance = $openingBalance+$walletSummart.getAmount())
97
                        $runningBalance
98
                    </td>
33092 tejus.loha 99
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
30164 manish 100
                    <td>$walletSummart.getDescription()</td>
33092 tejus.loha 101
                </tr>
30164 manish 102
                #end
103
 
104
            </tbody>
105
 
106
        </table>
107
    </div>
33092 tejus.loha 108
 
30164 manish 109
</section>
110
 
111
 
112
<script>
113
 
33092 tejus.loha 114
    var dtable = $('#walletSummaryReport').DataTable(
115
            {
116
                "scrollX": true,
117
                "bPaginate": true,
118
                "bLengthChange": true,
119
                "bFilter": true,
120
                "bInfo": false,
121
                "bAutoWidth": false,
122
 
123
 
124
            });
125
 
126
 
127
</script>
128
#if($isAdmin)
129
<script type="text/javascript">
130
    $(function () {
131
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
132
            partnerId = selectedPartner.partnerId;
133
 
134
            console.log(partnerId);
135
        });
136
    });
34066 aman.kumar 137
    $(function () {
138
        $('#fofo-users').on('change', function () {
139
            var selectedFofoId = $(this).val();
140
            if (selectedFofoId) {
141
                partnerId = selectedFofoId;
142
                console.log("Partner ID set to:", partnerId);
143
            } else {
144
                alert("Please select a valid Fofo ID.");
145
            }
146
        });
147
    });
33092 tejus.loha 148
</script>
149
+#end
30164 manish 150