Subversion Repositories SmartDukaan

Rev

Rev 32349 | Go to most recent revision | Details | 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> Date</th>
25
                 <th> Supplier</th>
26
                 <th> Warehouse</th>
27
                 <th> Invoice Number</th>  
28
                 <th> Num Items</th>  
29
                 <th> Invoice Date</th>  
30
                 <th> Received By</th>
31
                 <th> Status </th>
32
                 <th> Invoice </th>
33
 
34
                </tr>
35
              </thead> 
36
 
37
              <tbody> 
38
 
39
 
40
               #foreach($supplierInvoice in $supplierInvoices)
41
                <tr>
42
                <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
43
                <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
44
                <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
45
                <td> $supplierInvoice.getInvoiceNumber() </td>
46
                <td>$supplierInvoice.getNumItems()</td>     
47
                <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>     
48
                <td>$supplierInvoice.getReceivedFrom()</td> 
49
                #if($grnRequestMap.get($supplierInvoice.getId()))
50
                <td>$grnRequestMap.get($supplierInvoice.getId()).getStatus() </td>  
51
                #else
52
                 <td> - </td>
53
                #end 
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>