Subversion Repositories SmartDukaan

Rev

Rev 31435 | Rev 31443 | 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>Invoice Summary</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Download Invoice</a></li>
            </ol>
        </div>
    </div>

    <div class="row">
        #if($isAdmin)
            <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
                   id="typeaheadpartner" name="partner" data-provide="typeahead" value="" autocomplete="off">
        #end
        <div class="col-lg-12">
            <h3>Invoices for month <input type="month" value="$yearMonth" class="mk_billing_month"/>
                <button class="btn btn-link">Download All</button>
            </h3>
        </div>
        <div class="col-lg-8">
            <table class="table-condensed table">
                <thead>
                <tr>
                    <th>Invoice Number</th>
                    <th>Invoice Date</th>
                    <th>Action</th>
                </tr>
                </thead>
                <tbody>
                    #foreach($invoiceEntry in $invoiceMap.entrySet())
                    <tr>
                        <td>$invoiceEntry.getKey()</td>
                        <td>$datehiphenFormatter.format($invoiceEntry.getValue())</td>
                        <td><a href="/purchase-invoice/$invoiceEntry.getKey()" target="_blank">Download</a></td>
                    </tr>
                    #end
                </tbody>
            </table>
        </div>

    </div>
</section>

<script type="text/javascript">
    $(function () {
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
            partnerId = selectedPartner.partnerId;
        });
        $('input.mk_billing_month').change(function () {
            debugger;
            loadInvoiceSummary($(this).val());
        })
    });
</script>