It was easier in the MakeReminder Function alter the code to
{IF (CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND
((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0))}//OLDCODE
NEWCODE
//Roliveira 2019-07-11
IF ((CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND
((COPYSTR(CustLedgEntry."Document No.",1,4)<>'FTVS'))AND
((COPYSTR(CustLedgEntry."Document No.",1,2)<>'VD')))
AND
(((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0)) AND
((COPYSTR(CustLedgEntry."Document No.",1,4)<>'FTVS'))AND
((COPYSTR(CustLedgEntry."Document No.",1,4)<>'NCVS')))
OR ((COPYSTR(CustLedgEntry."Document No.",1,4)='FTVS') AND (TODAY-CustLedgEntry."Posting Date" >180))
AND
((COPYSTR(CustLedgEntry."Document No.",1,2)<>'VD'))
AND
((COPYSTR(CustLedgEntry."Document No.",1,4)<>'NCVS'))
Thanks for the help