Hi,
Approval process will be triggered while adding document. It will not work updating or old documents.
Add below store procedure in SQL Server management studio under transaction notification.
IF @transaction_type IN ('A','U') AND @object_type = '23'
BEGIN
If exists (SELECT T0.[DocNum] FROM OQUT T0 INNER JOIN QUT1 T1 ON T0.[DocEntry] = T1.[DocEntry] where T1.[DiscPrcnt] > 4.00 and
t0.docentry =@list_of_cols_val_tab_del)
Begin
SET @error = 1
SET @error_message = 'Not allowed to more than 4% discount'
END
END
Thanks