Hi Mukesh,
Please Create one UDF at Header Level for Due Date Approval and Place this below Query in UDF and make Auto refersh on DocDate.
SELECT T1.ExtraDays FROM OPCH T0
INNER JOIN OCTG T1 ON T0.GroupNum = T1.GroupNum
Where $[OPCH.GroupNum] = T1.[GroupNum]
Then Please Place this below Query in Approval Template.
SELECT DISTINCT 'TRUE' FROM OPCH T0
Where DATEDIFF(DAY,$[OPCH.DocDate.Date],$[OPCH.DocDueDate.Date]) <> UDF
Please check above and let me know result.
Thanks'
--
--
Regards::::
Atul Chakraborty