<!doctype html>
<html  {$html_attrs}>
	<head>
		<title>{$pagetitle}</title>
		<meta http-equiv="X-UA-Compatible" content="IE=7">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link REL="stylesheet" href="styles/default.css" type="text/css">
		{BEGIN rtlCSS}
		<link REL="stylesheet" href="styles/defaultRTL.css" type="text/css">
		{END rtlCSS}
		{BEGIN styleCSSFiles}
		<link REL="stylesheet" href="{$stylepath}" type="text/css">
		{END styleCSSFiles}
		{BEGIN pageCSSFiles}
		<link REL="stylesheet" href="{$pagestylepath}" type="text/css">
		{END pageCSSFiles}
		<!--%%pagestyle%%-->
		<!--[if IE]>
			<link REL="stylesheet" href="styles/defaultIE.css" type="text/css">
			{BEGIN IEcssFiles}
			<link REL="stylesheet" href="{$stylepathIE}" type="text/css">
			{END IEcssFiles}
		<![endif]-->
	</head>
	
	<body class="{$stylename}" {$bodyattrs}>
	{BEGIN body}
			



{BEGIN container_grid}



{BEGIN pages}
<h1>Inf Ventas</h1>
	<span {$pages_attrs}>
		Página <b>{$pageno}</b> / <b>{$maxpages}</b>
	</span>


			<style>
table.report {border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px; border-style: solid; border-color: #cccccc;}
div.page_block{clear:left;}
td.noborder{padding-right:8px}
td.data{padding-right:8px}
td.group_1{background-color: #90EE90;}
td.group_2{background-color: #FFFFFF;}
td.group_3{background-color: #FFFFFF;}
td.group_4{background-color: #FFFFFF;}
td.group_5{background-color: #FFFFFF;}
td.group_6{background-color: #FFFFFF;}
td.group_7{background-color: #FFFFFF;}
td.nbgroup_1{background-color: #90EE90;border-style:none;}
td.nbgroup_2{background-color: #FFFFFF;border-style:none;}
td.nbgroup_3{background-color: #FFFFFF;border-style:none;}
td.nbgroup_4{background-color: #FFFFFF;border-style:none;}
td.nbgroup_5{background-color: #FFFFFF;border-style:none;}
td.nbgroup_6{background-color: #FFFFFF;border-style:none;}
td.nbgroup_7{background-color: #FFFFFF;border-style:none;}
td.header_1{background-color: #7ACA7A;}
td.header_2{background-color: #D8D8D8;}
td.header_3{background-color: #D8D8D8;}
td.header_4{background-color: #D8D8D8;}
td.header_5{background-color: #D8D8D8;}
td.header_6{background-color: #D8D8D8;}
td.header_7{background-color: #D8D8D8;}
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}
</style>
<div id="grid_block{$id}">
<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0>
	<tr class="runner-toprow style1">
		<td class="runner-cl"><img src="images/spacer.gif"/></td>
		<td class="runner-cc"></td>
		<td class="runner-cr"><img src="images/spacer.gif"/></td>
	</tr>
	<tr class="runner-row style1">
		<td class="runner-cl"></td>
		<td class="runner-cc">
			<table cellspacing=0 cellpadding=0 border=0 style="padding:2px">
				{BEGIN grid_row}
				<!-------------------------------------  group headers ----------------------------------------->
				{BEGIN idventa_newgroup}
				<tr>
				<td class=header_1 colspan=15>
				Nº Venta:&nbsp;
				<font style="font-weight:900">{$idventa_grval}</font></td>
				</tr>
								{END idventa_newgroup}
				{BEGIN fecha_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=header_2 colspan=14>
				Fecha:&nbsp;
				<font style="font-weight:900">{$fecha_grval}</font></td>
				</tr>
								{END fecha_newgroup}
				{BEGIN cliente_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=header_3 colspan=13>
				Cliente:&nbsp;
				<font style="font-weight:900">{$cliente_grval}</font></td>
				</tr>
								{END cliente_newgroup}
				{BEGIN observacion_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=group_3>&nbsp;</td>
				<td class=header_4 colspan=12>
				Observación:&nbsp;
				<font style="font-weight:900">{$observacion_grval}</font></td>
				</tr>
								{END observacion_newgroup}
				{BEGIN cobrada_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=group_3>&nbsp;</td>
				<td class=group_4>&nbsp;</td>
				<td class=header_5 colspan=11>
				Cobrada:&nbsp;
				<font style="font-weight:900">{$cobrada_grval}</font></td>
				</tr>
								{END cobrada_newgroup}
				{BEGIN total_venta_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=group_3>&nbsp;</td>
				<td class=group_4>&nbsp;</td>
				<td class=group_5>&nbsp;</td>
				<td class=header_6 colspan=10>
				Total Venta:&nbsp;
				<font style="font-weight:900">{$total_venta_grval}</font></td>
				</tr>
								{END total_venta_newgroup}
				{BEGIN total_cobro_newgroup}
				<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=group_3>&nbsp;</td>
				<td class=group_4>&nbsp;</td>
				<td class=group_5>&nbsp;</td>
				<td class=group_6>&nbsp;</td>
				<td class=header_7 colspan=9>
				Total Cobro:&nbsp;
				<font style="font-weight:900">{$total_cobro_grval}</font></td>
				</tr>
								<tr>
				<td class=group_1>&nbsp;</td>
				<td class=group_2>&nbsp;</td>
				<td class=group_3>&nbsp;</td>
				<td class=group_4>&nbsp;</td>
				<td class=group_5>&nbsp;</td>
				<td class=group_6>&nbsp;</td>
				<td class=group_7>&nbsp;</td>
				<td class=blackshade>Artículo</td>
				<td class=blackshade>Costo</td>
				<td class=blackshade>Precio</td>
				<td class=blackshade>Cantidad</td>
				<td class=blackshade>Importe</td>
				<td class=blackshade>Sub Total</td>
				<td class=blackshade>Descuento</td>
				<td class=blackshade>Ganancia</td>
				</tr>
				{END total_cobro_newgroup}
								<!-------------------------------------  data ----------------------------------------->
				{BEGIN row_data}
				<tr>
											<td class=group_1>&nbsp;</td>
											<td class=group_2>&nbsp;</td>
											<td class=group_3>&nbsp;</td>
											<td class=group_4>&nbsp;</td>
											<td class=group_5>&nbsp;</td>
											<td class=group_6>&nbsp;</td>
											<td class=group_7>&nbsp;</td>
					<td class=data>{$idarticulo_value}</td>
					<td class=data>{$costo_value}</td>
					<td class=data>{$precio_value}</td>
					<td class=data>{$cantidad_value}</td>
					<td class=data>{$importe_value}</td>
					<td class=data>{$subtotal_value}</td>
					<td class=data>{$descuento_value}</td>
					<td class=data>{$ganancia_value}</td>
				</tr>
				{END row_data}
				<!-------------------------------------  group summary ----------------------------------------->
																																{BEGIN idventa_endgroup}
				<tr>
					<td class=group_1 colspan=15 >
					Resumen de Nº Venta {$idventa_grval}
					 - {$groupidventa_total_cnt} Registros totales</div></td>
				</tr>
								<!--  Sum -->
				<tr>
											<td class=group_1 style="border-left: solid black 1px;">Sum</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>{$groupidventa_totalcosto_sum}</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>&nbsp;</td>
											<td class=group_1>{$groupidventa_totalimporte_sum}</td>
											<td class=group_1>{$groupidventa_totalsubtotal_sum}</td>
											<td class=group_1>{$groupidventa_totaldescuento_sum}</td>
											<td class=group_1>{$groupidventa_totalganancia_sum}</td>
				</tr>	
																{END idventa_endgroup}
				{END grid_row}
			</table>
		</td>
		<td class="runner-cr"></td>
	</tr>
	<tr class="runner-row style1">
		<td class="runner-cl"></td>
		<td class="runner-cc">
			<table cellspacing=0 cellpadding=0 border=0>
								<tr>
				<td class=blackshade>Nº Venta</td>
				<td class=blackshade>Fecha</td>
				<td class=blackshade>Cliente</td>
				<td class=blackshade>Observación</td>
				<td class=blackshade>Cobrada</td>
				<td class=blackshade>Total Venta</td>
				<td class=blackshade>Total Cobro</td>
				<td class=blackshade>Artículo</td>
				<td class=blackshade>Costo</td>
				<td class=blackshade>Precio</td>
				<td class=blackshade>Cantidad</td>
				<td class=blackshade>Importe</td>
				<td class=blackshade>Sub Total</td>
				<td class=blackshade>Descuento</td>
				<td class=blackshade>Ganancia</td>
				</tr>
								<!--------------------------------------page summary-------------------------------------------->
				<tr>
					<td class=pagesummary colspan=15>Resumen de la pagina 
					 {$page_total_cnt} - Registros totales</td>
				</tr>
								<!--  Sum -->
				<tr>
											<td class=pagesummary>Sum</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>{$page_totalcosto_sum}</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>&nbsp;</td>
											<td class=pagesummary>{$page_totalimporte_sum}</td>
											<td class=pagesummary>{$page_totalsubtotal_sum}</td>
											<td class=pagesummary>{$page_totaldescuento_sum}</td>
											<td class=pagesummary>{$page_totalganancia_sum}</td>
				</tr>	
																				<!--------------------------------------global summary-------------------------------------------->
				<tr>
					<td class=globalsummary colspan=15>Resumen global 
					 {$global_total_cnt} - Registros totales</td>
				</tr>
								<!--  Sum -->
				<tr>
											<td class=globalsummary>Sum</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>{$global_totalcosto_sum}</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>&nbsp;</td>
											<td class=globalsummary>{$global_totalimporte_sum}</td>
											<td class=globalsummary>{$global_totalsubtotal_sum}</td>
											<td class=globalsummary>{$global_totaldescuento_sum}</td>
											<td class=globalsummary>{$global_totalganancia_sum}</td>
				</tr>	
																</table>
			</td>
		<td class="runner-cr"></td>
	</tr>
	<tr class="runner-bottomrow style1">
		<td class="runner-cl"><img src="images/spacer.gif"/></td>
		<td class="runner-cc"></td>
		<td class="runner-cr"><img src="images/spacer.gif"/></td>
	</tr>
</table>
</div>

{END pages}





{END container_grid}


	{END body}
	</body>
</html>
