Subversion Repositories SmartDukaan

Rev

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

<html >
<head>
        <title>Statistics</title>
</head>
<body>
        #parse("../content/reports-common.vm")
        <h2 >In Store Order Statistics</h2>
        <div>
                <br/>
                <h3>Last 50 Orders</h3>
                <table border="1" width="100%">
            <thead>
              <tr>
                <th width="6%">Order ID</th>
                                <th width="16%">Order Date</th>
                                <th width="22%">Product</th>
                <th width="6%">Type</th>
                                <th width="16%">Status</th>
                                <th width="16%">Action Date</th>
                                <th width="10%">Store</th>
                <th width="8%">Customer City</th>
              </tr>
            </thead>
            <tbody>
                        #foreach($order in $action.getValidOrders())
                        #set($item = $action.getItem($order))
              <tr>
                <td>$order.getId()</td>
                                <td>$action.getDateTime($order.getCreated_timestamp())</td>
                                <td>$item.getBrand() $item.getModel_number()</td>
                                #if($order.isCod())
                                <td>COD</td>
                                #else
                                <td>Prepaid</td>
                                #end
                                <td>$action.getOrderStatusString($order.getStatus())</td>
                                <td>$action.getLastUpdateTime($order)</td>
                <td>$action.getStoreName($order.getPickupStoreId())</td>
                                <td>$order.getCustomer_city()</td>
              </tr>
                        #end
            </tbody>
                </table>
 
    </div>
</body>
</html>