Disabling Document Discount Field
I want to disable the document the discount field on the sales order document.
How can I achieve this ? I don't want the users to be able to change the discount value in the document level.
if @object_type = '17' and @transaction_type in (N'A', N'U') begin if 1 = (select count(docentry) from ordr with(nolock) where docentry =@list_of_cols_val_tab_del and discsum > 0) begin select @error =1 select @error_message = 'Discount is filled.' end end