Subversion Repositories SmartDukaan

Rev

Rev 33724 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33724 Rev 33727
Line 8... Line 8...
8
 
8
 
9
 <div class="col-lg-12">
9
 <div class="col-lg-12">
10
            <table id="purchase-lineitem" class="table table-striped table-advance table-hover" >
10
            <table id="purchase-lineitem" class="table table-striped table-advance table-hover" >
11
              <thead>
11
              <thead>
12
                <tr>
12
                <tr>
13
                 <th> Po Id</th>
13
                    <th>Id</th>
14
                 <th> Item Id </th>
14
                    <th>Item Id</th>
15
                 <th> Item Description </th>  
15
                    <th>Item Description</th>
16
                 <th> Qty</th> 
16
                    <th>Qty</th>
17
                 <th> AmendedQty</th>           
17
                    <th>AmendedQty</th>
18
                 <th> Transfer Price </th>  
18
                    <th>Transfer Price</th>
19
                
19
                    <th>Total Price</th>
20
                </tr>
20
                </tr>
21
              </thead> 
21
              </thead>
22
                
-
 
-
 
22
 
23
              <tbody> 
23
                <tbody>
24
              
-
 
25
              
24
                    #set($totalUnitPrice = 0)
26
               #foreach($lineitem in $lineitems)
25
               #foreach($lineitem in $lineitems)
-
 
26
                   #set($lineTotalPrice = $lineitem.getQuantity() * $lineitem.getUnitPrice())
27
                <tr>
27
                <tr>
28
                <td>$lineitem.getPurchaseOrderId()</td>
28
                    <td>$lineitem.getPurchaseOrderId()</td>
29
                <td>$lineitem.getItemId()</td>
29
                    <td>$lineitem.getItemId()</td>
30
                <td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>     
30
                    <td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>
31
                <td>$lineitem.getQuantity()</td>
31
                    <td>$lineitem.getQuantity()</td>
32
                    <td>$lineitem.getAmendedQty()</td>
32
                    <td>$lineitem.getAmendedQty()</td>
33
            
33
                    <td>$lineitem.getUnitPrice()</td>
34
                <td>$lineitem.getUnitPrice()</td>     
34
                    <td>$lineTotalPrice</td>
35
               </tr>
35
                </tr>
-
 
36
                   #set($totalUnitPrice = $totalUnitPrice + $lineTotalPrice)
36
               #end
37
               #end
37
              <tr>
38
              <tr>
38
                  <td colspan="5" style="text-align: right;"><b>Total Price</b></td>
39
                  <td colspan="6" style="text-align: right;"><b>Total Price</b></td>
39
                  <td><b>$totalUnitPrice</b></td>
40
                  <td><b>$totalUnitPrice</b></td>
40
              </tr>
41
              </tr>
41
             </tbody>
42
             </tbody>
42
           </table>
43
           </table>
43
 
44