Subversion Repositories SmartDukaan

Rev

Rev 31435 | Rev 31443 | 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"/>
18
                <button class="btn btn-link">Download All</button>
19
            </h3>
20
        </div>
21
        <div class="col-lg-8">
31387 amit.gupta 22
            <table class="table-condensed table">
23
                <thead>
24
                <tr>
25
                    <th>Invoice Number</th>
26
                    <th>Invoice Date</th>
27
                    <th>Action</th>
28
                </tr>
29
                </thead>
31435 amit.gupta 30
                <tbody>
31
                    #foreach($invoiceEntry in $invoiceMap.entrySet())
32
                    <tr>
31387 amit.gupta 33
                        <td>$invoiceEntry.getKey()</td>
34
                        <td>$datehiphenFormatter.format($invoiceEntry.getValue())</td>
31439 amit.gupta 35
                        <td><a href="/purchase-invoice/$invoiceEntry.getKey()" target="_blank">Download</a></td>
31435 amit.gupta 36
                    </tr>
37
                    #end
38
                </tbody>
31387 amit.gupta 39
            </table>
40
        </div>
31435 amit.gupta 41
 
31387 amit.gupta 42
    </div>
43
</section>
44
 
45
<script type="text/javascript">
46
    $(function () {
47
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
48
            partnerId = selectedPartner.partnerId;
49
        });
31435 amit.gupta 50
        $('input.mk_billing_month').change(function () {
51
            debugger;
52
            loadInvoiceSummary($(this).val());
53
        })
31387 amit.gupta 54
    });
55
</script>