Subversion Repositories SmartDukaan

Rev

Rev 31387 | Rev 31439 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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