<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html>
	<head> 
		<title>EFXP Documento Tributario Electr&oacute;nico</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="description" content="">
		<meta name="author" content="">
		<meta http-equiv="Expires" content="0" />
		<meta http-equiv="Pragma" content="no-cache" />
		<script type="text/javascript" src="/ruxitagentjs_ICA2NVfgjqru_10281231207105659.js" data-dtconfig="rid=RID_-84373875|rpid=2079162360|domain=sii.cl|reportUrl=/rb_da227f15-7ebf-4043-bb1a-ce68d5e2f6a8|app=0089562635ebe3da|cuc=1qtxvzrr|mel=100000|featureHash=ICA2NVfgjqru|ssv=4|lastModification=1706965586349|vcv=2|tp=500,50,0,1|rdnt=1|uxrgce=1|bp=3|agentUri=/ruxitagentjs_ICA2NVfgjqru_10281231207105659.js"></script><script type="text/javascript" src="https://zeusr.sii.cl/admin/responsive_barranav.js"></script>
		<script type="text/javascript" src="/Portal001/JS/overlib.js"></script>
		<script type="text/javascript" src="/Portal001/JS/validaUtil.js?version=20190827"></script>
		<script type="text/javascript" src="/Portal001/JS/despliegaRut.js"></script>
		<script type="text/javascript" src="/Portal001/JS/validaPOP.js"></script>
		<script type="text/javascript" src="Portal001/JS/validaFacEx.js"></script>
		<script type="text/javascript" src="/Portal001/JS/mipe.js"></script>
		<link href="/css/factura.css" rel="stylesheet" type="text/css" />
		
		

		<script type="text/javascript">
			document.oncontextmenu= new Function("return false")
		</script>

		
		
		<script type="text/javascript">
		
		
		//alert();
		//alert();
		//alert();
	  

	  
	  
	   function lipiarDvReceptor() {
			document.getElementById('EFXP_DV_RECEP').value = '';
			return document.getElementById('EFXP_RUT_RECEP').value.replace(/^\s+|\s+$/gm,'');
	   }
	   	 	   	
			var emisorDir      = [["AGUSTINAS 1442 B  ","SANTIAGO","SANTIAGO","88592762"," "],["0","0","0","0","0"]];
			var emisorActEco   = [["620900","OTRAS ACTIVIDADES DE TECNOLOGIA DE LA INFORMACION Y DE SERVICIOS INFORMATICOS"],["0","0"]];
			var recptorDir     = [["0","0","0"]];
			var recptoActEco   = [["0","0"]];

			var arrFecha       = ["2024","02","14"];
			var arrFechaAut    = ["2023","02","16"];

			var codChecked = '';
			var otroImpChecked = '';
			var empMenorTamanoChecked = '';
			datosArray = new Array();

			var indName = 0;
			var indValue = 1;

			var eExpo = ('FALSE'=='TRUE');
			var cantTotCol = 10;

			datosArray[0] = [ [ 'EFXP_TPO_COD_01', ''],
			[ 'EFXP_COD_01', ''],
			[ 'EFXP_NMB_01', ''],
			[ 'DESCRIP_01',  ''],
			[ 'EFXP_QTY_01', ''],
			[ 'EFXP_UNMD_01',''],
			[ 'EFXP_PRC_01', ''],
			[ 'EFXP_OTRO_IMP_01',''],
			[ 'EFXP_PCTD_01',''],
			[ 'EFXP_SUBT_01',''],
			[ 'EFXP_DSC_ITEM_01',''],
			[ 'VIS', 'NO_VIS']
			];
			datosArray[1] = [ [ 'EFXP_TPO_COD_02', ''],
			[ 'EFXP_COD_02', ''],
			[ 'EFXP_NMB_02', ''],
			[ 'DESCRIP_02',  ''],
			[ 'EFXP_QTY_02', ''],
			[ 'EFXP_UNMD_02',''],
			[ 'EFXP_PRC_02', ''],
			[ 'EFXP_OTRO_IMP_02',''],
			[ 'EFXP_PCTD_02',''],
			[ 'EFXP_SUBT_02',''],
			[ 'EFXP_DSC_ITEM_02',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[2] = [ [ 'EFXP_TPO_COD_03', ''],
			[ 'EFXP_COD_03', ''],
			[ 'EFXP_NMB_03', ''],
			[ 'DESCRIP_03',  ''],
			[ 'EFXP_QTY_03', ''],
			[ 'EFXP_UNMD_03',''],
			[ 'EFXP_PRC_03', ''],
			[ 'EFXP_OTRO_IMP_03',''],
			[ 'EFXP_PCTD_03',''],
			[ 'EFXP_SUBT_03',''],
			[ 'EFXP_DSC_ITEM_03',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[3] = [ [ 'EFXP_TPO_COD_04', ''],
			[ 'EFXP_COD_04', ''],
			[ 'EFXP_NMB_04', ''],
			[ 'DESCRIP_04',  ''],
			[ 'EFXP_QTY_04', ''],
			[ 'EFXP_UNMD_04',''],
			[ 'EFXP_PRC_04', ''],
			[ 'EFXP_OTRO_IMP_04',''],
			[ 'EFXP_PCTD_04',''],
			[ 'EFXP_SUBT_04',''],
			[ 'EFXP_DSC_ITEM_04',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[4] = [ [ 'EFXP_TPO_COD_05', ''],
			[ 'EFXP_COD_05', ''],
			[ 'EFXP_NMB_05', ''],
			[ 'DESCRIP_05',  ''],
			[ 'EFXP_QTY_05', ''],
			[ 'EFXP_UNMD_05',''],
			[ 'EFXP_PRC_05', ''],
			[ 'EFXP_OTRO_IMP_05',''],
			[ 'EFXP_PCTD_05',''],
			[ 'EFXP_SUBT_05',''],
			[ 'EFXP_DSC_ITEM_05',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[5] = [ [ 'EFXP_TPO_COD_06', ''],
			[ 'EFXP_COD_06', ''],
			[ 'EFXP_NMB_06', ''],
			[ 'DESCRIP_06',  ''],
			[ 'EFXP_QTY_06', ''],
			[ 'EFXP_UNMD_06',''],
			[ 'EFXP_PRC_06', ''],
			[ 'EFXP_OTRO_IMP_06',''],
			[ 'EFXP_PCTD_06',''],
			[ 'EFXP_SUBT_06',''],
			[ 'EFXP_DSC_ITEM_06',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[6] = [ [ 'EFXP_TPO_COD_07', ''],
			[ 'EFXP_COD_07', ''],
			[ 'EFXP_NMB_07', ''],
			[ 'DESCRIP_07',  ''],
			[ 'EFXP_QTY_07', ''],
			[ 'EFXP_UNMD_07',''],
			[ 'EFXP_PRC_07', ''],
			[ 'EFXP_OTRO_IMP_07',''],
			[ 'EFXP_PCTD_07',''],
			[ 'EFXP_SUBT_07',''],
			[ 'EFXP_DSC_ITEM_07',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[7] = [ [ 'EFXP_TPO_COD_08', ''],
			[ 'EFXP_COD_08', ''],
			[ 'EFXP_NMB_08', ''],
			[ 'DESCRIP_08',  ''],
			[ 'EFXP_QTY_08', ''],
			[ 'EFXP_UNMD_08',''],
			[ 'EFXP_PRC_08', ''],
			[ 'EFXP_OTRO_IMP_08',''],
			[ 'EFXP_PCTD_08',''],
			[ 'EFXP_SUBT_08',''],
			[ 'EFXP_DSC_ITEM_08',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[8] = [ [ 'EFXP_TPO_COD_09', ''],
			[ 'EFXP_COD_09', ''],
			[ 'EFXP_NMB_09', ''],
			[ 'DESCRIP_09',  ''],
			[ 'EFXP_QTY_09', ''],
			[ 'EFXP_UNMD_09',''],
			[ 'EFXP_PRC_09', ''],
			[ 'EFXP_OTRO_IMP_09',''],
			[ 'EFXP_PCTD_09',''],
			[ 'EFXP_SUBT_09',''],
			[ 'EFXP_DSC_ITEM_09',''],
			[ 'NO_VIS', 'NO_VIS']
			];
			datosArray[9] = [ [ 'EFXP_TPO_COD_10', ''],
			[ 'EFXP_COD_10', ''],
			[ 'EFXP_NMB_10', ''],
			[ 'DESCRIP_10',  ''],
			[ 'EFXP_QTY_10', ''],
			[ 'EFXP_UNMD_10',''],
			[ 'EFXP_PRC_10', ''],
			[ 'EFXP_OTRO_IMP_10',''],
			[ 'EFXP_PCTD_10',''],
			[ 'EFXP_SUBT_10',''],
			[ 'EFXP_DSC_ITEM_10',''],
			[ 'NO_VIS', 'NO_VIS']
			];

			var arrReferencias = [ ['','','','','',''],
			['','','','','',''],
			['','','','','',''],
			];
			var RefeneciasChecked = '';


			var arrPagos       = [ ['','',''],
					['','',''],
					['','',''],
					];      
			var PagoChecked = '';

			var arrFExpo = ['', '', '', ''];

			var ubicMaderaChecked = '';
			var arrUbic = ['', '', '', '', '', '', ''];

		</script>
		
		<style type="text/css">
	.selec-responsivo1
	{
		border-radius: 0px 0px 0px 0px;
		height: 30px;
	}
	.selec-responsivo2
	{
		border-radius: 0px 4px 4px 0px;
		height: 30px;
		font-size:50%;
	}
	.ocultaGifWait
	{
		text-align: center;
	}
	</style>
	
	</head>

	<body onload="cierraVentana('CGI');evaluarFormaPago();">
		<div id="my-wrapper"> 
      

			<div class="web-sii cuerpo">
      

			<div class="web-sii">

				<div class="container">
					
				
					<form class="form-horizontal" name="VIEW_EFXP" id="VIEW_EFXP" action="/cgi-bin/Portal001/mipeDisplayPreView.cgi" method="post" autocomplete="off">
					<div id="invoice" class="well shadow">
							<input type="hidden" value="FALSE" name="esCRED_EC" id="esCRED_EC"> 
							<input type="hidden" value="FALSE" name="esFACT_TUR" id="esFACT_TUR"> 
							<input type="hidden" value="33" name="PTDC_CODIGO" id="PTDC_CODIGO"> 
							<input type="hidden" value="" name="CANT_DET" id="CANT_DET">
							<input type="hidden" value="" id="EFXP_CDG_SII_SUCUR" name="EFXP_CDG_SII_SUCUR">
							<input type="hidden" value="FALSE" id="ES_BORR" name="ES_BORR">
							<input type="hidden" value="" id="EHDR_CODIGO" name="EHDR_CODIGO">
							<br/>
							<br/>


							<div class="panel panel-default">
							
								<div id="collapseEMISOR" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingEMISOR">
									<div class="panel-body">

									
										<div class="row">	
											<div class="col-sm-6">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" for="EFXP_RZN_SOC">Direcci&oacute;n</label>
													<input type="hidden"  name='EFXP_DIR_ORIGEN_DEFUALT' tabindex="2" value="">
															<script type="text/javascript">printEmisorDir();</script>
												</div>
											</div>
											<div class="col-sm-3">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" for="EFXP_CMNA_ORIGEN">Comuna</label>
													<input type="text" class="form-control" onfocus="blur()" tabindex="3" maxLength='20' 
														value="" name="EFXP_CMNA_ORIGEN" >
												</div>
											</div>
											<div class="col-sm-3">
												<div class="input-group input-group-sm">
														<label class="input-group-addon" for="EFXP_CIUDAD_ORIGEN">Ciudad</label>
														<input type="text" class="form-control" maxLength='15' style="width='50%'" size='15' tabindex="4" value="" 
																name="EFXP_CIUDAD_ORIGEN">
												</div>
											</div>
										</div>
										<div class="row">
                      
											<div class="col-sm-6">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" title="En este campo Ud, podrá indicar clasificación sugerida de tipo de Transacción de Venta" for="">Tipo de Venta</label>
													<script type="text/javascript">printTipoVenta(2);</script>
												</div>
											</div>
                      
											<div class="col-sm-3">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" for="EFXP_EMAIL_EMISOR">Email</label>
													<input type="email" class="form-control" tabindex="7" maxLength='30' size='30'  value="ulices.pena&#64;stoglobal.cl" 
															name="EFXP_EMAIL_EMISOR">
												</div>
											</div>
											<div class="col-sm-3">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" for="EFXP_FONO_EMISOR">Tel&eacute;fono</label>
													<input type="text" class="form-control" tabindex="8" maxLength="14" size='12'  
                           	 			min="1" max="999999999999" class="input" value="" name='EFXP_FONO_EMISOR'>
													</div>
											</div>
										</div>
										<div class="row">
											<div class="col-sm-6">
												<div class="input-group input-group-sm">
													<label class="input-group-addon" for="EFXP_GIRO_EMIS">Giro</label>
													 <input type="text" class="form-control"  tabindex="9" onfocus="blur()"  
														maxLength='70' size='60'  value="SERVICIOS A LA INFORMATICA - VENTA DE INSUMOS" name="EFXP_GIRO_EMIS"> 
														
													
												</div>
											</div>
											<div class="col-sm-6">
												<div class="input-group input-group-sm">
													<label class="input-group-addon">Act. Econo.</label>
													<input type="hidden"  tabindex="10" maxLength='6' size='6' value="" name='EFXP_ACTECO'>
														<script type="text/javascript">printEmisorActEco();</script>
												</div>
											</div>
										</div>
                                   
										
									</div>
								</div>
							</div>  <!-- acordeon -->
					
							
							<div class="row">
								<div class="col-xs-6 text-left"
									title='Codificaci&oacute;n opcional del producto.'>
									<label for="EFXP_CIUDAD_RECEP">Cod Producto</label>
									<input type="checkbox"
										onclick	= "javascript:dibujaDetalles();"
										name		= "COD_SI_NO"          
										value		= "SiChecked"
									/>
								</div>
								
								<script>
									if ("33" == "33") {
										document.write(
											'<div class="col-xs-6 text-left" ' +
											'	title="Puede seleccionar Impuesto Adicional. La tasa varia dependiendo del tipo de impuesto seleccionado, el cual se verá reflejado en el campo de Impuesto Adicional de los Totalizadores.">' +
											'<label for="OTRO_IMP_SI_NO">Impuestos Adic.</label>' +
											'<input type="checkbox" onclick="dibujaDetalles()" name="OTRO_IMP_SI_NO" value="SiChecked"></th> ' +
											'</div>'
										);
									}
								</script>
								
							</div>
							<div id="no-more-tables">
								<table id="myTable" class="table table-bordered table-striped table-hover small table-condensed cf">
									<tr id="rowDet_Encabezado" class="rowDet_Encabezado">
										<th align="center"
											title='Nombre del producto de hasta 25 caracteres'>Nombre Producto</th>
										<th align="center"
											title='Opcional. S&oacute;lo si desea ingresar una descripci&oacute;n extendida del producto haga clic sobre el cuadro.'
											>Descrip.</th>
										<th align="center"
											title='Cantidad del producto o servicio si es con decimales separado por punto.'
											>Cantidad</th>
										<th align="center"
											title='Opcional. Unidad de medida del producto.'
											onmouseout="return nd();"
											>Unidad</th>
										<th align="center"
											title='Monto neto en pesos chilenos, si es con decimales separado por punto.'
											>Precio</th>
										<th align="center"
											title='Porcentaje de descuento en el Precio del Producto, si es con decimales separado por punto.'
											 >% Desc.</th>
										<th align="center"
											title='Subtotal de la l&iacute;nea calculado como Cantidad por Precio menos % Desc.'											 >SubTotal</th>
									</tr>
								</table>
								<br/>
								<table id="tblRefPago" class="table table-condensed table-striped table-hover small">
									<tr class="item-row"> 
										<th colspan="3" title='Opcional. S&oacute;lo si el documento que est&aacute; generando hace referencia a otro documento ya generado, haga clic sobre el cuadro.'>
											Referencias : <input type="checkbox" onclick="printReferencias()" name="REF_SI_NO" value="SiChecked">
										</th>
										
										 <th colspan="3" title="En este campo Ud, podrá indicar la forma en que realizará el pago de este documento">Forma de Pago:
											 <script type="text/javascript">printFormaDePago();</script> 
										 </th> 
										
										<th colspan="2" align="right" title='Opcional. S&oacute;lo si desea agregar información sobre el pago de la factura, haga clic sobre el cuadro.'>
											Info. Pago : <input type="checkbox" onclick="printReferencias()" name="PAGO_SI_NO" value="SiChecked">
										</th>
									</tr>
								</table>  
							</div>
							<br>					
						</div>
						<p class="text-center">
							<button type="button" class="btn btn-default" onclick="if (validaFacEx(this)) VIEW_EFXP.submit();"name="Button_Update">Validar y visualizar</button> 
							<button type="button" class="btn btn-default" onclick="limpiaDatos(this)" value="Limpiar" name="limpiar">Limpiar</button>
              
							<button type="button" class="btn btn-default" onclick='javascript:opcionClose();' value="Volver" name="Botton_Borrar">Volver</button>
              
							
							<button type="button" class="btn btn-default" onclick="if (validaFacEx(this)){VIEW_EFXP.action='/cgi-bin/Portal001/mipeGrabaBorrador.cgi';document.getElementById('ES_BORR').value ='TRUE';VIEW_EFXP.submit();}" name="Button_Update_Borrador">Guardar Borrador</button>
							
							
						</p>
					</form>									
				</div> 	
			</div>	
      
		</div>		
	</body>		
</html>
