Subversion Repositories SmartDukaan

Rev

Rev 32349 | 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>
32614 shampa 26
                 <th> Invoice Id</th>
32349 amit.gupta 27
                    <th> Invoice Number</th>
32614 shampa 28
                    <th> Invoice Value</th>
32349 amit.gupta 29
                    <th> Num Items</th>
30
                    <th> Invoice Date</th>
31
                    <th> Receive Date</th>
32300 tejbeer 32
                 <th> Received By</th>
33
                 <th> Status </th>
32349 amit.gupta 34
                    <th> Document</th>
32300 tejbeer 35
 
36
                </tr>
37
              </thead> 
38
 
39
              <tbody> 
40
 
41
 
42
               #foreach($supplierInvoice in $supplierInvoices)
43
                <tr>
44
                <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
45
                <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
32614 shampa 46
                 <td> $supplierInvoice.getId() </td>
32300 tejbeer 47
                <td> $supplierInvoice.getInvoiceNumber() </td>
32614 shampa 48
                <td> $supplierInvoice.getTotalValue() </td>
32349 amit.gupta 49
                    <td>$supplierInvoice.getNumItems()</td>
50
                    <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>
51
                    <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
52
                    <td>$supplierInvoice.getReceivedFrom()</td>
53
                    <td>$supplierInvoice.getStatus() </td>
32300 tejbeer 54
                <td>          <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()" target="_blank"  class="download">Download Doc</a>
55
                      </td> 
56
 
57
               </tr>
58
               #end
59
 
60
             </tbody>
61
           </table>
62
  </div>
63
  </div>