on 03-09-2012 8:26 PM
estoy haciendo una autorizacion de ventas con baja rentabilidad creado por el modelo de autorizacion con base al siguiente query
SELECT 'TRUE' FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE ((($[inv1.GrossBuyPr] - $[inv1.Price] )/$[inv1.Price])*-100 ) < 4.99
la autorizacion no debe dejar crear factura de reserva donde algun item este por debajo del 5% de ganancia
No se mucho de sintaxis para estos casos, y con lo que tengo me genera un error y termina creando el documento
gracias por tu respuesta, me genera un error interno Se ha producido un error interno (-1004) [Mensaje 131-183] y luego la crea Necesito restringir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
intenta con
if
(SELECT ((($[inv1.GrossBuyPr] - $[inv1.Price] )/$[inv1.Price])*-100 )) < 4.99
begin
select 'TRUE'
end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.