on 09-11-2009 2:45 AM
quiero insertar una búsqueda formateada conel siguiente código pero me esta marcando un error, según yo esta bien, pero no se si tenga algo que ver con el tipo de dato que son diferentes y no se puede hacer la operación.
Me podrían ayudar a resolver este problema?
Select
case
when (t0.salunitmsr='tr') then
($[rdr1.quantity]* t0.SWdth1Uni)
when (t0.salunitmsr='kilo') then
($[rdr1.quantity])
when (t0.salunitmsr='PIEZA') Then
($[rdr1.quantity]*t0.swdth1uni)
when (t0.salunitmsr='Tramo') then
($[rdr1.quantity]*t0.swdth1uni)
end
From OITM T0
Where t0.itemcode=$[$38.1.11]
Hola Mary..
Prueba el siguiente Query:
Select
case
when (t0.salunitmsr='tr') then
($[$38.11.Number] * t0.SWidth1)
when (t0.salunitmsr='kilo') then
($[$38.11.Number])
when (t0.salunitmsr='PIEZA') Then
($[$38.11.Number] * t0.swidth1)
when (t0.salunitmsr='Tramo') then
($[$38.11.Number] * t0.swidth1)
end
From OITM T0
Where t0.itemcode=$[$38.1.0]
Modifique el campo SWdth1Unit por SWidth1, ya que el primero muestra un valor predefinido para las Unidades de Ancho de Medida, mientras que este nuevo campo trae el dato ingresado en el campo de unidad (que entiendo es con el cual quieres realizar el calculo)
Saludos Cordiales,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
esto me quedo asi.
Select
case
when (t0.salunitmsr='PIEZA') then
($[rdr1.quantity] * t0.SWeight1)
when (t0.salunitmsr='kilo') then
($[rdr1.quantity])
when (t0.salunitmsr='caja') Then
($[rdr1.quantity] * t0.SWeight1)
when (t0.salunitmsr='rollo') then
($[rdr1.quantity] * t0.SWeight1)
when (t0.salunitmsr='saco') then
($[rdr1.quantity]*t0.sweight1)
When (t0.salunitmsr=tonelada)
($[rdr1.quantity])
end
From OITM T0
Where t0.itemcode=$[$38.1.11]
Gracias.
Hola.
Intenta reemplazar
$[rdr1.quantity]
por el equivalente en la otra notación
$[$Item.Columna.Tipo_Dato]
.
Revisa también que la referencia sea correcta en:
Where t0.itemcode=$[$38.1.11]
.
Quedo en espera del resultado.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.