on 05-24-2016 9:05 PM
Hi,
Please try this:
IF @object_type IN ('17') AND @transaction_type IN( 'A','U')
Begin
if exist (SELECT t0.docentry FROM ORDR T0 INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
WHERE T1.PymntGroup IN ('AMEX', 'VISA - 6556') AND T0.DocEntry = @list_of_cols_val_tab_del)
Begin
SET @error = -5000
SET @error_message = N'Amex and VIsa can not be chosen'
end
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, u can do that with SP_TN
and i give u another suggestion, you can change the Term name to Z_AMEX, so it will be at the end of the list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IF @object_type IN ('17') AND @transaction_type = 'A'
Begin
if exist (SELECT t0.docentry FROM ORDR T0 INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
WHERE T1.PymntGroup IN ('AMEX', 'VISA - 6656') AND T0.DocEntry = @list_of_cols_val_tab_del)
Begin
SET @error = -5000
SET @error_message = N'Amex and VIsa can not be chosen'
end
END
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
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.