Subversion Repositories SmartDukaan

Rev

Rev 33727 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">LineItems  PurchaseOrderId : $lineitems.get(0).getPurchaseOrderId()</h4>
</div>
<div class="modal-body" style="height: 300px; overflow:auto">

<div class="row">

 <div class="col-lg-12">
            <table id="purchase-edit-lineitem" class="table table-striped table-advance table-hover" >
              <thead>
                <tr>
                 <th> Item Id </th>
                 <th> Item Description </th>  
                 <th> Qty</th> 
                 <th> Amended Qty</th>
                    <th> Transfer Price</th>
                    <th>Total Price</th>
               
                </tr>
              </thead>

                <tbody>

                    #set($totalUnitPrice = 0)
               #foreach($lineitem in $lineitems)
                   #set($lineTotalPrice = $lineitem.getAmendedQty() * $lineitem.getUnitPrice())
                <tr>
                <td>$lineitem.getItemId()</td>
                <td>$lineitem.getBrand() $lineitem.getModelNumber() $lineitem.getModelName() $lineitem.getColor() </td>    
                <td>$lineitem.getQuantity()</td>
                    <td><input type="number" class="form-control editqty" name="qty" placeholder="Quantity"
                               value="$lineitem.getAmendedQty()"/></td>
                <td class="transferPrice">$lineitem.getUnitPrice()</td>
                    <td>$lineTotalPrice</td>
                </tr>
                   #set($totalUnitPrice = $totalUnitPrice + $lineTotalPrice)
               #end
              <tr>
                  <td colspan="5" style="text-align: right;"><b>Total Unit Price</b></td>
                  <td><b>$totalUnitPrice</b></td>
              </tr>
                 
             </tbody>
           </table>
  </div>
 </div>
  <div class="row"> 
      
                 <div class="col-lg-6 form-group">
                        <input class="form-control btn btn-primary editPurchaseOrder" type="button" data-poid="$lineitems.get(0).getPurchaseOrderId()"  value="Edit and Save Purchase Order">   
                        </div>
                        
                         <div class="col-lg-6 form-group">
                        <input class="form-control btn btn-primary editSendPurchaseOrder" type="button" data-poid="$lineitems.get(0).getPurchaseOrderId()" value="Edit and Send Purchase Order">        
                        </div>
               
    </div>      
 
 
</div>