<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblBusiness} : {$language.lblReport} : {$language.lblSalesReportDetails}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/listing.css" />
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
</head>
<body class="{$languageDirection}">
<div class="outer">
  {include file='CommonHeader.tpl'}
  <!--End:Header Container-->    <!--*******************************END HEADER CONTAINER******************************************-->
  <div class="content-wrapper">
   <div class="container-fluid">
    <div class="clearfix">
      <div class="pull-left left">
        {include file='ContentLanguageOptions.tpl'}
      </div>
      {html->anchor href="{$prevUrl}" caption="{$language.lblBack}" class="back-link pull-right margin-bottom"}
    </div>
    <h2>{$language.lblReportSalesfor} {$orderDate|date_format:$date_format} </h2>
    <!--End: Right Block-->
    <div class="inner_content_wrapper">
          <!--END:sEARCH cONTAINER-->
          {if $resListOrders}
          <div class="grid_table00 container-section"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody>
              <tr>
                <th width="10" valign="middle" align="left">#</th>
                <th width="12%" valign="middle" align="left">{$language.lblOrderNumber}</th>
                <th width="16%" valign="middle" align="left">{$language.lblCustomer}</th>
                <th align="left" valign="middle">{$language.lblNoOfQty}</th>
                <th align="left" valign="middle">{$language.lblSubtotal}</th>
				<th align="left" valign="middle">{$language.lblShippingAmount}</th>
                <th align="left" valign="middle" >{$language.lblDiscounts}</th>
{*                <th align="left" valign="middle" >{$language.lblOrderCommission}</th>
*}                <th align="left" valign="middle" >{$language.lblServiceCharge}</th>
                <th align="left" valign="middle" >{$language.lblTax}</th>
                <th align="left" valign="middle" >{$language.lblAccountCredit}</th> 
                <th align="left" valign="middle" >{$language.lblTotal}</th>
              </tr>
               {assign var="i" value=1}
              {foreach from=$resListOrders item="resOrders" key="key1"}
               {if $key1 > 0}    
              <tr {if $resOrders@iteration is even by 1} class="shade01" {/if}>
                <td align="left" valign="top">{$i}
               {assign var="i" value=$i+1}</td>
                <td align="left" valign="top">{$resOrders.orderNumber} ({if $resOrders.orderType eq 'product'}Product{else}{$resOrders.orderType}{/if})</td>
                <td align="left" valign="top">{$resOrders.userFirstName}&nbsp;{$resOrders.userLastName}</td>
                <td align="left" valign="top">{$resOrders.orderQty}</td>
                <td align="left" valign="top">{$resOrders.orderSubtotal|price}</td>
				<td align="left" valign="top">{$resOrders.shippingAmount|price}</td>
                <td align="left" valign="top">{$resOrders.orderPromoDiscountAmount|price}</td>
{*                <td align="left" valign="top">{$resOrders.orderCommissionAmount|price}</td>
*}                <td align="left" valign="top">{$resOrders.orderOtherServiceCharge|price}</td>
                <td align="left" valign="top">{$resOrders.orderTaxAmount|price}</td>
                <td align="left" valign="top">{$resOrders.orderUserCreditAmount|price}</td>
                <td align="left" valign="top">{$resOrders.orderTotalAmount|price}</td>
              </tr>
              {/if}
              {/foreach}
              <tr class="bottom">
                <td align="left" valign="top" colspan="3"><strong>{$language.lblTotal}</strong></td> 
                <td align="left" valign="top">{$resListOrders.total.TotalItemQuantity}</td>
                <td align="left" valign="top">{$resListOrders.total.TotalSubtotal|price}</td>
				<td align="left" valign="top">{$resListOrders.total.shippingAmount|price}</td>
                <td align="left" valign="top">{$resListOrders.total.TotalPromoDiscountAmount|price}</td>
{*                <td align="left" valign="top">{$resListOrders.total.orderCommissionAmount|price}</td>
*}                <td align="left" valign="top">{$resListOrders.total.TotalServiceCharge|price}</td>
                <td align="left" valign="top">{$resListOrders.total.TotalTaxAmount|price}</td>
                <td align="left" valign="top">{$resListOrders.total.orderUserCreditAmount|price}</td>
                <td align="left" valign="top">{$resListOrders.total.TotalorderTotalAmount|price}</td>
              </tr>
              </tbody>
            </table>
            </div>
            {else}
            <div  class="message_info"> {$language.msgNoRecords}</div>
            {/if}
          <!--End:From Listing-->
    </div>
    </div>
  </div>
  <!--End:Content Container-->
   {include file='CommonFooter.tpl'}
</div>
<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'}
{form->rootpath_script}
{form->basepath_script}
<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
      DD_belatedPNG.fix('img,div,ul,li,li a,a,input,p,blockquote,span,h1,h2,h3,.last-child');
</script>
<![endif]-->
<!--[if IE]>
<link href="styles/iefix.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
</body>
</html>