Subversion Repositories SmartDukaan

Rev

Rev 31443 | 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">
32771 raveendra. 4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("invoicegrn.invoicesummary")</h3>
31387 amit.gupta 5
            <ol class="breadcrumb">
32771 raveendra. 6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("invoicegrn.downloadinvoice")</a></li>
31387 amit.gupta 7
            </ol>
8
        </div>
9
    </div>
10
 
31435 amit.gupta 11
    <div class="row">
12
        #if($isAdmin)
32771 raveendra. 13
            <input placeholder="#springMessage("invoicegrn.enterpartnername")" type="text" class="typeahead form-control"
31435 amit.gupta 14
                   id="typeaheadpartner" name="partner" data-provide="typeahead" value="" autocomplete="off">
15
        #end
16
        <div class="col-lg-12">
32771 raveendra. 17
            <h3>#springMessage("invoicegrn.invoicesformonth") <input type="month" value="$yearMonth" class="mk_billing_month"/>
18
                <a class="btn btn-primary btn-lg" role="button" href="/purchase-invoice/$yearMonth" target="_blank">#springMessage("invoicegrn.downloadall")</a>
31435 amit.gupta 19
            </h3>
20
        </div>
21
        <div class="col-lg-8">
31387 amit.gupta 22
            <table class="table-condensed table">
23
                <thead>
24
                <tr>
32771 raveendra. 25
                    <th>#springMessage("invoicegrn.invoicenumber")</th>
26
                    <th>#springMessage("invoicegrn.invoicedate")</th>
27
                    <th>#springMessage("invoicegrn.action")</th>
31387 amit.gupta 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>