Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32256 tejbeer 1
<table class="table  table-advance">
2
	<thead>
3
	  <tr>
4
        <th>Po Id</th>
5
        <th>Item</th>
6
        <th>Po Price</th>
7
        <th>Invoice Price</th>
8
        <th>System Price</th>
9
        <th>Quantity</th>
10
		<th>Excess qty</th>
11
		<th>Required qty</th> 
12
		<th>Price Mismatch</th>
13
	    <th>Qty Resolved</th>
14
	    <th>Price Resolved</th>
15
 
16
     </tr>	
17
     </thead>
18
	<tbody>	
19
	  #foreach($grnRequestItem in $grnRequestItems)	  
20
 
21
	   #set($catalogId = $itemMap.get($grnRequestItem.getItemId()).getCatalogItemId())  
22
       <tr>		
23
         <td>$grnRequestItem.getPoId()</td>
24
         <td>$itemMap.get($grnRequestItem.getItemId()).getItemDescription()</td>
25
         <td>$warehouseLineItemMap.get($grnRequestItem.getPoId()).get($grnRequestItem.getItemId()).getUnitPrice()</td>
26
         <td>$warehouseInvoiceItemMap.get($grnRequestItem.getItemId()).getRate()</td>
27
 
37606 amit 28
         ## Stock moving between our own warehouses is priced from the stock itself, so the sending supplier
29
         ## has no circular to quote a system price from and there is nothing to compare the invoice against.
30
         #set($systemPrice = $vendorCatalogPricingLogMap.get($catalogId))
31
         #if($systemPrice)
32
         <td>$systemPrice.getTransferPrice()</td>
33
         #else
34
         <td>-</td>
35
         #end
32256 tejbeer 36
 
37
         <td>$grnRequestItem.getQty()</td>     
38
         <td>$grnRequestItem.getExcessQty()</td>
39
         #if($grnRequestItem.getExcessQty() > 0)
40
         	<td>  <input type="number" class="form-control requiredQty"  name = "requiredQty"  value = "$grnRequestItem.getRequiredQty()" placeholder="Quantity"/> </td>
41
 
42
         #else
43
             <td> - </td>
44
         #end
32261 tejbeer 45
         <td>$grnRequestItem.getMismatch()</td>
32256 tejbeer 46
         #if($grnRequestItem.getExcessQty() > 0)
47
         #if($grnRequestItem.isQtyResolved())
48
         <td>$grnRequestItem.isQtyResolved()</td>
49
         #else
32261 tejbeer 50
         <td> <button class="form-control btn btn-primary resolvedQtyMismatchRequest"  data-mismatch = "$grnRequestItem.getMismatch()" data-id = "$grnRequestItem.getId()" data-invoiceid = "$invoiceId" data-requestid = "$grnRequestItem.getRequestId()" type="button"> Resolve </button> </td>
32256 tejbeer 51
         #end
52
         #else
53
         <td></td>
54
         #end
55
 
56
         #if($grnRequestItem.isPriceResolved())
57
         <td>$grnRequestItem.isPriceResolved()</td>
58
         #else
32261 tejbeer 59
         <td> <button class="form-control btn btn-primary resolvedPriceMismatchRequest" data-mismatch = "$grnRequestItem.getMismatch()" data-id = "$grnRequestItem.getId()" data-invoiceid = "$invoiceId" data-requestid = "$grnRequestItem.getRequestId()" type="button">Resolve</button> </td>
32256 tejbeer 60
         #end
61
	   </tr>	
62
      #end
63
    </tbody>
64
 </table>
65
 
66