{layout:page} {class:Shop.Admin.statis.sales_list} <%=Tag("销售报表")%>-<%=site.title%>

<%=dateFrom%> - <%=dateTo%>

<%if (Shop.Bussiness.EX_Admin.CheckPower("product_price_cost")){ %> <%} %> <%int i = 0; int totalqty = 0; decimal totalprice = 0; decimal totalprice_cost = 0; decimal totalprofit = 0; foreach (DB.LebiShop.Lebi_Order_Product pro in pros){ if (pro.Price_Cost == 0){ pro.Price_Cost = Shop.Bussiness.EX_Product.GetProduct(pro.Product_id).Price_Cost; DB.LebiShop.B_Lebi_Order_Product.Update(pro); } %> <%if (Shop.Bussiness.EX_Admin.CheckPower("product_price_cost")){ %> <%} %> <%i += 1; totalqty += pro.Count; totalprice += pro.Price * pro.Count; totalprice_cost += pro.Price_Cost * pro.Count; totalprofit += (pro.Price - pro.Price_Cost) * pro.Count; } %> <%if (Shop.Bussiness.EX_Admin.CheckPower("product_price_cost")){ %> <%} %>
<%=Tag("序号")%> <%=Tag("商品编号")%> <%=Tag("商品货号")%> <%=Tag("商品名称")%> <%=Tag("规格")%> <%=Tag("数量")%> <%=Tag("单价")%><%=Tag("成本")%> <%=Tag("利润")%>
<%=i + 1%> <%=pro.Product_Number%>  <%=Shop.Bussiness.EX_Product.GetProduct(pro.Product_id).Code%>  <%=Shop.Bussiness.Language.Content(pro.Product_Name, CurrentLanguage)%> <%=Shop.Bussiness.EX_Product.ProPertyNameStr(Shop.Bussiness.EX_Product.GetProduct(pro.Product_id).ProPerty131, CurrentLanguage)%>  <%=pro.Count%> <%=FormatMoney(pro.Price)%><%=FormatMoney(pro.Price_Cost)%> <%=FormatMoney((pro.Price - pro.Price_Cost) * pro.Count)%>
<%=Tag("合计")%> <%=totalqty%> <%=FormatMoney(totalprice)%><%=FormatMoney(totalprice_cost)%> <%=FormatMoney(totalprofit)%>