GROUP BY descripcion
					) AS t1 ON guia_temporaldetalle.descripcion = t1.descripcion
				WHERE guia_temporaldetalle.idusuario=$_GET[idpagina]";
			}else{
				$s = "SELECT guia_temporaldetalle.*, '' AS modificable,
				guia_temporaldetalle.id as idmercancia
				FROM guia_temporaldetalle 
				WHERE guia_temporaldetalle.idusuario=$_GET[idpagina]";
			}
			//echo $s;
			
			$r = mysql_query($s,$l) or die($s);
			if(mysql_num_rows($r)>0){
				$arre = array();
				while($f = mysql_fetch_object($r)){
					$f->descripcion	= $vc->cambiartexto($f->descripcion);
					$f->contenido	= $vc->cambiartexto($f->contenido);
					$f->volumen		= round($f->volumen,2);
					if($totalFlete!=0 && $modificables){
						$f->importe = 0;
					}
					$arre[] = $f;
				}
				$mercancia = str_replace("null","''",json_encode($arre));
			}else{
				$mercancia = '""';
			}
				echo "[{
					   mercancia:$mercancia,
					   excedente:".(($totalexcedente=="")?"0":"$totalexcedente").",
					   kgsexcedente:".(($kgsexcedente=="")?"0":"$kgsexcedente").",