How to set up a job queue to run for 183 days in Dynamics NAV110

Hi Team,

I wrote a code to check and run a job queue for 183 days using “Last Coupon Date”

From my codeunit:

WITH BondLedger DO BEGIN 
  //IF BondLedger."Last Coupon Date" + 183 THEN 
  RESET;
  SETRANGE("Bond Series Code","Bond Series Code");
  SETRANGE(PFA,PFA);
  SETRANGE(Fund,Fund);
  IF BondLedger.FINDSET THEN BEGIN
    CouponDate.INIT;
    CouponDate."Entry No." := CouponDate."Entry No." + 1;
    CouponDate."Bond Series Code" := "Bond Series Code";
    CouponDate."Bond Series Name" := "Bond Series Name";
    CouponDate."Coupon Date" := "Last Coupon Date";
    CouponDate.INSERT(TRUE);
    END;
END;

From my Report:

Bond Ledger - OnAfterGetRecord()

InvestMgt.BondCouponDateIN(“Bond Ledger”);

From my Job Queue

No. of minutes before = 6024183days = 263520.

Thanks

Hi,

What is your question?

Thanks. I have solved it using different approached.