Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32145 tejbeer 1
 
2
 
3
  <script>
4
   $(document).ready(function () {
5
 
6
      var dtable = $('#warehouse-purchase-order').DataTable({
7
 
8
 
9
       });
10
 
11
    }); 
12
 
13
 </script>
14
 
15
 
16
 <div class="col-lg-12">
17
            <table id="warehouse-purchase-order" class="table table-striped table-advance table-hover" >
18
              <thead>
19
                <tr>
20
                 <th> Id</th>
21
                 <th> Po Number </th>
37088 amit 22
                 <th> Supplier</th>
23
                 <th> Warehouse</th>
24
                 <th> Buyer</th>
25
                 <th> Total Cost </th>
32145 tejbeer 26
                 <th> Created On</th>
37770 amit 27
                 <th> Created By</th>
32145 tejbeer 28
			     <th> Status </th>
37705 amit 29
			     <th> Transaction </th>
32145 tejbeer 30
			     <th> View</th>
31
 
32
                </tr>
33
              </thead> 
34
 
35
              <tbody> 
36
 
37
 
38
                #foreach($purchaseOrder in $purchaseOrders)
39
                <tr>
40
                <td>$purchaseOrder.getId()</td>
41
                <td>$purchaseOrder.getPoNumber()</td>
42
                <td>$supplierMap.get($purchaseOrder.getSupplierId()).getName()</td>
43
 
37088 amit 44
                <td>#if($warehouseMap.get($purchaseOrder.getWarehouseId()))$warehouseMap.get($purchaseOrder.getWarehouseId())#{else}$purchaseOrder.getWarehouseId()#end</td>
32145 tejbeer 45
                <td>$sellerMap.get($purchaseOrder.getBuyerId()).getLabel()</td>
46
                <td>$purchaseOrder.getTotalCost()</td>
47
                <td>$purchaseOrder.getCreatedAt().format($dateFormatter)</td>
37770 amit 48
                <td>#if($purchaseOrder.getCreatedBy())$purchaseOrder.getCreatedBy()#end</td>
49
                <td>$purchaseOrder.getStatus() </td>
37705 amit 50
                ## An internal movement is raised as a transaction, so the invoice being GRN'd leads straight back
51
                ## to its PO through this id - search the table by it rather than hunting through dates.
52
                <td>#if($purchaseOrder.getTransactionId())$purchaseOrder.getTransactionId()#end</td>
32145 tejbeer 53
                <td> <input class="form-control btn btn-primary viewPurchaseOrderlineItem" type="button" value="View"  data-poid="$purchaseOrder.getId()"
54
                                data-toggle="modal"
37770 amit 55
                                data-target="#warehouseLineItem"> </td>
56
 
32145 tejbeer 57
               </tr>
58
                 #end
59
 
60
             </tbody>
61
             </table>
62
  </div>
63
 
64
 
65
      <div id="warehouseLineItem" class="modal" role="dialog">
66
        <div class="modal-dialog">
67
            <div class="modal-content">
68
 
69
            </div>
70
        </div>
71
    </div>
72
 
73
</section>