LOCAL RecorrerRutas() //190212-01 lGeneralSetup.GET(); lRecordFilerelation.RESET; IF lRecordFilerelation.FINDSET THEN REPEAT lRegistroREF.OPEN(lRecordFilerelation."Object ID."); lCampoREF := lRegistroREF.FIELD(lRecordFilerelation."Field ID Posting Date"); lCampoREF.SETFILTER('>%1',CALCDATE('-<lGeneralSetup."Day-to Check">',WORKDATE)); IF lRegistroREF.FINDSET THEN REPEAT lDocNoRef := lRegistroREF.FIELDINDEX(1); IF NOT Signed(lDocNoRef.VALUE , lRecordFilerelation."Object ID.") THEN//comprobar firmado IF NOT Sent(lDocNoRef.VALUE,lRecordFilerelation."Object ID.") THEN//comprobar enviado a firmar ComprobarRegistros; UNTIL lRegistroREF.NEXT =0; UNTIL lRecordFilerelation.NEXT =0; LOCAL Signed(pDocNo : FieldRef;pRecType : Integer) : Boolean lSentNotReceivedDocs.RESET; IF lSentNotReceivedDocs.GET(pRecType,pDocNo) THEN EXIT(TRUE) ELSE EXIT(FALSE); LOCAL Sent(pDocNo : FieldRef;pRecType : Integer) : Boolean lSentReceivedDocs.RESET; IF lSentReceivedDocs.GET(pRecType,pDocNo) THEN EXIT(TRUE) ELSE EXIT(FALSE);
Answers
Thank yuo, appreciated!!!