Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32300 tejbeer 1
 
2
<script  type="text/javascript">
3
 
4
 
5
   $(function () {
6
	 $(document).ready(function () {    	
7
      var dtable = $('#open-invoices').DataTable({
8
       });
9
 
10
    });
11
 
12
    }); 
13
 
14
 
15
</script>
16
 
17
 
18
<div class="row">
19
 
20
<div class="col-lg-12">
21
            <table id="open-invoices" class="table table-striped table-advance table-hover" >
22
              <thead>
23
                <tr>
24
                 <th> Supplier</th>
25
                 <th> Warehouse</th>
32349 amit.gupta 26
                    <th> Invoice Number</th>
27
                    <th> Num Items</th>
28
                    <th> Invoice Date</th>
29
                    <th> Receive Date</th>
32300 tejbeer 30
                 <th> Received By</th>
31
                 <th> Status </th>
32349 amit.gupta 32
                    <th> Document</th>
32300 tejbeer 33
 
34
                </tr>
35
              </thead> 
36
 
37
              <tbody> 
38
 
39
 
40
               #foreach($supplierInvoice in $supplierInvoices)
41
                <tr>
42
                <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
43
                <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
44
                <td> $supplierInvoice.getInvoiceNumber() </td>
32349 amit.gupta 45
                    <td>$supplierInvoice.getNumItems()</td>
46
                    <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>
47
                    <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
48
                    <td>$supplierInvoice.getReceivedFrom()</td>
49
                    <td>$supplierInvoice.getStatus() </td>
32300 tejbeer 50
                <td>          <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()" target="_blank"  class="download">Download Doc</a>
51
                      </td> 
52
 
53
               </tr>
54
               #end
55
 
56
             </tbody>
57
           </table>
58
  </div>
59
  </div>