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 11... Line 11...
11
              <thead>
11
              <thead>
12
                <tr>
12
                <tr>
13
                 <th> Item Id </th>
13
                 <th> Item Id </th>
14
                 <th> Item Description </th>  
14
                 <th> Item Description </th>  
15
                 <th> Qty</th> 
15
                 <th> Qty</th> 
16
                 <th> Amended Qty</th>   
16
                 <th> Amended Qty</th>
17
                 <th> Transfer Price </th>  
17
                    <th> Transfer Price</th>
-
 
18
                    <th>Total Price</th>
18
               
19
               
19
                </tr>
20
                </tr>
20
              </thead> 
21
              </thead>
21
                
-
 
-
 
22
 
22
              <tbody> 
23
                <tbody>
23
              
24
 
24
              
25
                    #set($totalUnitPrice = 0)
25
               #foreach($lineitem in $lineitems)
26
               #foreach($lineitem in $lineitems)
-
 
27
                   #set($lineTotalPrice = $lineitem.getQuantity() * $lineitem.getUnitPrice())
26
                <tr>
28
                <tr>
27
                <td>$lineitem.getItemId()</td>
29
                <td>$lineitem.getItemId()</td>
28
                <td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>    
30
                <td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>    
29
                <td>$lineitem.getQuantity()</td>
31
                <td>$lineitem.getQuantity()</td>
30
                    <td><input type="number" class="form-control editqty" name="qty" placeholder="Quantity"
32
                    <td><input type="number" class="form-control editqty" name="qty" placeholder="Quantity"
31
                               value="$lineitem.getAmendedQty()"/></td>
33
                               value="$lineitem.getAmendedQty()"/></td>
32
                <td class="transferPrice">$lineitem.getUnitPrice()</td> 
34
                <td class="transferPrice">$lineitem.getUnitPrice()</td>
33
                
35
                    <td>$lineTotalPrice</td>
34
                </tr>
36
                </tr>
-
 
37
                   #set($totalUnitPrice = $totalUnitPrice + $lineTotalPrice)
35
               #end
38
               #end
36
              <tr>
39
              <tr>
37
                  <td colspan="4" style="text-align: right;"><b>Total Unit Price</b></td>
40
                  <td colspan="5" style="text-align: right;"><b>Total Unit Price</b></td>
38
                  <td><b>$totalPriceOfLineItem</b></td>
41
                  <td><b>$totalUnitPrice</b></td>
39
              </tr>
42
              </tr>
40
                 
43
                 
41
             </tbody>
44
             </tbody>
42
           </table>
45
           </table>
43
  </div>
46
  </div>