on 11-30-2010 2:21 PM
Saludos a todos.
Agradezco alguna sugerencia.
Tengo la necesidad de que al grabar un PagoRecibido desde Bancos cuando se cumpla una condición se actualice automaticamente el valor de un campo de usuario dentro de la poliza generada por este documento.
1. Lo intente en el TransactionNotification pero no funciona:
if @object_type IN ('24') --pago recibido
Begin
Select @DocNum=convert(varchar,DocNum) From ORCT Where DocEntry=@list_of_cols_val_tab_del and PrjCode<>'000000'
If isnull(@DocNum,'')<>''
Begin
Update OJDT Set U_IDTipo='ValorX'
Where TransType='24' and BaseRef=@DocNum
End
End
2. ¿Existe alguna otra manera de hacerlo?
Gracias...
Diana Ortega
Edited by: Diana Ortega on Nov 30, 2010 8:21 AM
Hola...
Debería funcionarte en realidad...lo que no veo es el valor de @transaction_type que permite identificar el evento que ejecuta el transaction notification.
@transaction_type = 'A' --- Si se crea el pago
@transaction_type = 'U' --- Si se actualiza el pago
Saludos Cordiales,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
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.