Hi
You can Block using the TNSP.
If @object_type = '13' and (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
Begin
If exists(
select t0.docnum from OINV T0
INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
where t0.docentry = @list_of_cols_val_tab_del and Dateadd(day, T1.Extradays, T0.DocDate) <> T0.[DocDueDate])
Begin
select @error = 1, @error_message = 'The Due Date is not correct'
End
End
Regards
Kennedy