on 05-12-2011 3:03 PM
Buenos días estimados,
Facturación me está pidiendo que el campo de Centro de Beneficio sea validado, esto para asegurarse de que esta información siempre esté registrada.
Alguien me pueda ayudar con este Transaction Notification?
Muchas gracias de antemano
Saludos
Con este podras cumplir ese requerimiento, es para las facturas de ventas
IF (@object_type = 13) and (@transaction_type IN ('A','U'))
BEGIN
DECLARE
@LineNum INT,
@CB INT
SET
@Linenum = (SELECT COUNT(T1.LineNum)
FROM OINV T0
INNER JOIN INV1 T1 ON T1.DocEntry = T0.DocEntry
WHERE T0.DocEntry = @list_of_cols_val_tab_del)
SET
@CB = (SELECT COUNT(T1.OcrCode)
FROM OINV T0
INNER JOIN INV1 T1 ON T1.DocEntry = T0.DocEntry
WHERE T0.DocEntry = @list_of_cols_val_tab_del)
IF @LineNum != @CB
BEGIN
SET @error = 102
SET @error_message = 'MS-102 Revisar centros de Beneficio'
END
END
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
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.