on 09-22-2015 11:11 PM
I want to stop the user/s to delete the line at the time of flipping sales order to delivery. If a user is flipping sales order the user should not be allowed to delete the line item at delivery stage.
Also, I want to disable the customize button at the time of flipping as shown in the attachment.
Any help will be appreciated.
Thanks
Hi Anu,
You can use transaction notification to block those delivery notes,
Use this notification
IF @OBJECT_TYPE = '15' AND @TRANSACTION_TYPE IN ('A', 'U')
BEGIN
IF EXISTS(
select r.DocEntry
from dln1 r
where r.BaseType=17 and r.DocEntry = @list_of_cols_val_tab_del
group by r.DocEntry
having sum(r.LineNum ) <> (select sum(dr.LineNum ) from rdr1 dr where dr.DocEntry=r.DocEntry )
)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='You cant Delete items in Sale order'
END
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 |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.