Subversion Repositories SmartDukaan

Rev

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

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage(
                "reportswalletstatement.walletstatement")</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
                    "reportswalletstatement.home")</a></li>
                <li><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</li>
            </ol>
        </div>
    </div>
    <div class="row col-lg-12" style="float: right;">


        #if($isAdmin)
            #set($counter =0)
            #foreach($walletSummart in $walletSummartList )
                #if($counter==1)
                    #break
                #end
                <h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
                    $walletSummart.getCode() - $walletSummart.getName()(
                    $walletSummart.getPhone()-$walletSummart.getEmail()
                    ) (
                    #if($openingBalance)
                        Opening Balance : $openingBalance
                    #end)
                </h2>
                #set($counter =$counter+1)
            #end
            <div class="row col-lg-12" style="float: right;">
                <div class="col-lg-2">
                    <div class="input-group">
                        <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
                               id="typeaheadpartner"
                               name="Item" data-provide="typeahead" autocomplete="off"
                               style="margin-bottom: 10px;margin-left: -9px"> <input id="partnerId"
                                                                                     type="hidden">
                        <br>
                    </div>
                </div>
            </div>
        #end
        #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
                                                             placeholder="" name="" value="$startDate">

        #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""
                                                           value="$endDate">
        <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
        <button type="submit" class="download-wallet-summary-report">#springMessage(
            "reportswalletstatement.downloadreport") </button>

    </div>


    <div class="col-lg-12">


        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">

            <thead class="row htable" style="background:#F5F5F5;">

            <tr style="color:black;">
                ##                <th> #springMessage("reportswalletstatement.id")</th>
                ##                <th> #springMessage("reportswalletstatement.code")</th>
                ##                <th> #springMessage("reportswalletstatement.name")</th>
                ##                <th> #springMessage("reportswalletstatement.email")</th>
                ##                <th>  #springMessage("reportswalletstatement.phone")</th>
                <th> #springMessage("reportswalletstatement.amount")</th>

                <th>  #springMessage("reportswalletstatement.reference")</th>
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
                <th>Running Balance</th>
                <th> Created On</th>
                ##                <th> Business Date</th>
                <th> #springMessage("reportswalletstatement.description")</th>


            </tr>
            </thead>
            <tbody>
                #foreach($walletSummart in $walletSummartList )
                <tr>
                    ##                    <td>$walletSummart.getId()</td>
                    ##                    <td>$walletSummart.getCode()</td>
                    ##                    <td>$walletSummart.getName()</td>
                    ##                    <td>$walletSummart.getEmail()</td>
                    ##                    <td>$walletSummart.getPhone()</td>
                    <td>$walletSummart.getAmount()</td>
                    <td>$walletSummart.getReference()</td>
                    <td>$walletSummart.getReferenceType()</td>
                    <td>
                        #set($runningBalance = $openingBalance+$walletSummart.getAmount())
                        $runningBalance
                    </td>


                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>

                    ##                    #if($walletSummart.getBusinessTimestamp())
                    ##                        <td>$walletSummart.getBusinessTimestamp().format($datehiphenFormatter)</td>
                    ##                    #else
                    ##                        <td>--</td>
                    ##                    #end
                    <td>$walletSummart.getDescription()</td>

                </tr>
                #end

            </tbody>

        </table>
    </div>

</section>


<script>

    var dtable = $('#walletSummaryReport').DataTable(
            {
                "scrollX": true,
                "bPaginate": true,
                "bLengthChange": true,
                "bFilter": true,
                "bInfo": false,
                "bAutoWidth": false,


            });


</script>
#if($isAdmin)
<script type="text/javascript">
    $(function () {
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
            partnerId = selectedPartner.partnerId;

            console.log(partnerId);
        });
    });
</script>
+#end