on 2023 Sep 28 7:39 AM
Hi
I want Notification on Purchase Order that Discount at Footer level should be within -.50 to .50
Thanks
Request clarification before answering.
Hi,
Try this,
IF @Object_type = N'22' and @transaction_type in ('A', 'U')
BEGIN
IF EXISTS (SELECT T0.DocEntry FROM OPOR T0
WHERE (T0.DiscPrcnt <-50 or T0.DiscPrcnt > 50)
AND T0.DocEntry = @list_of_cols_val_tab_del
)
BEGIN
set @error = 2207
set @error_message = N'Footer Discount can not be out of range [-50, 50] check again please.'
END
END
Hope this helps,
Son Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
6 | |
6 | |
5 | |
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.