Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
31387 amit.gupta 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>Invoice Summary</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Download Invoice</a></li>
7
            </ol>
8
        </div>
9
    </div>
10
 
31435 amit.gupta 11
    <div class="row">
12
        #if($isAdmin)
13
            <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
14
                   id="typeaheadpartner" name="partner" data-provide="typeahead" value="" autocomplete="off">
15
        #end
16
        <div class="col-lg-12">
17
            <h3>Invoices for month <input type="month" value="$yearMonth" class="mk_billing_month"/>
31443 amit.gupta 18
                <a class="btn btn-primary btn-lg" role="button" href="/purchase-invoice/$yearMonth" target="_blank">Download
19
                    All</a>
31435 amit.gupta 20
            </h3>
21
        </div>
22
        <div class="col-lg-8">
31387 amit.gupta 23
            <table class="table-condensed table">
24
                <thead>
25
                <tr>
26
                    <th>Invoice Number</th>
27
                    <th>Invoice Date</th>
28
                    <th>Action</th>
29
                </tr>
30
                </thead>
31435 amit.gupta 31
                <tbody>
32
                    #foreach($invoiceEntry in $invoiceMap.entrySet())
33
                    <tr>
31387 amit.gupta 34
                        <td>$invoiceEntry.getKey()</td>
35
                        <td>$datehiphenFormatter.format($invoiceEntry.getValue())</td>
31439 amit.gupta 36
                        <td><a href="/purchase-invoice/$invoiceEntry.getKey()" target="_blank">Download</a></td>
31435 amit.gupta 37
                    </tr>
38
                    #end
39
                </tbody>
31387 amit.gupta 40
            </table>
41
        </div>
31435 amit.gupta 42
 
31387 amit.gupta 43
    </div>
44
</section>
45
 
46
<script type="text/javascript">
47
    $(function () {
48
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
49
            partnerId = selectedPartner.partnerId;
50
        });
31435 amit.gupta 51
        $('input.mk_billing_month').change(function () {
52
            debugger;
53
            loadInvoiceSummary($(this).val());
54
        })
31387 amit.gupta 55
    });
56
</script>