on 07-11-2014 11:46 PM
Hola Expertos
Alquien podria ayudarme como puedo hacer para valida la orden de venta
que cuando ingresen los articulos todos tienen que ir con precio, que valida
que en la orden de venta todos los articulos vayan con precio.
tengo lista de precios general y lista de precios por socios, pero hay veces
hay articulos nuevos los cuales no tienen precios, poder validar
que cuando se ingresa el pedido y no tiene precio un articulo que le envie
un mensaje..
gracias de antemano por la ayuda.
Hola
yo lo haría mediante el transaction notification. Añadiría código sql que valide que no haya líneas con precio cero.
IF @object_type = '17' and (@transaction_type in ('A' ,'U'))
BEGIN
IF (select count(*) from rdr1 where Price = 0 and docentry = @list_of _cols_val_tab_del) > 0
SET @error= 100
SET @error_message = 'Falta precio'
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 |
---|---|
102 | |
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.