NAV Classic posting date on item journal

2009 Classic when user posts an item journal the posting date on the blank line reverts to a date in the past despite the Workdate being currentdate any idea welcome

Check 2 things, In the Batch name do a lookup and see if on the Gen. Journal batch you have the Posting date set which will not matter what you put on journal after posting will revert it back to the date from Gen. journal batch and also in the Item journal line table there is a code that defaults the Posting date

Thank you for your comments however I see no posting date when looking up to the Gen Journal Batch, please can you elaborate, Thanks

Hi Andrew,

Let me understand your issue correctly. The date we talk about is the date on the “empty” line, that is created after you post the item journal. Not that it changes the entries posted by the journal? Is it happening for all users or just one?

If only one user, then did you check the journal does not hold a filter?

SetUpNewLine(LastItemJnlLine : Record "Item Journal Line")

MfgSetup.GET;
ItemJnlTemplate.GET("Journal Template Name");
ItemJnlBatch.GET("Journal Template Name","Journal Batch Name");
ItemJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
ItemJnlLine.SETRANGE("Journal Batch Name","Journal Batch Name");
IF ItemJnlLine.FIND('-') THEN BEGIN
  "Posting Date" := LastItemJnlLine."Posting Date";
  "Document Date" := LastItemJnlLine."Posting Date";
  IF (ItemJnlTemplate.Type IN
      [ItemJnlTemplate.Type::Consumption,ItemJnlTemplate.Type::Output])
  THEN BEGIN
    IF NOT MfgSetup."Doc. No. Is Prod. Order No." THEN
      "Document No." := LastItemJnlLine."Document No."
  END ELSE
    "Document No." := LastItemJnlLine."Document No.";
END ELSE BEGIN
  "Posting Date" := WORKDATE;
  "Document Date" := WORKDATE;
  IF ItemJnlBatch."No. Series" <> '' THEN BEGIN
    CLEAR(NoSeriesMgt);
    "Document No." := NoSeriesMgt.TryGetNextNo(ItemJnlBatch."No. Series","Posting Date");
  END;
  IF (ItemJnlTemplate.Type IN
      [ItemJnlTemplate.Type::Consumption,ItemJnlTemplate.Type::Output]) AND
     NOT MfgSetup."Doc. No. Is Prod. Order No."
  THEN
    IF ItemJnlBatch."No. Series" <> '' THEN BEGIN
      CLEAR(NoSeriesMgt);
      "Document No." := NoSeriesMgt.GetNextNo(ItemJnlBatch."No. Series","Posting Date",FALSE);
    END;
END;
"Recurring Method" := LastItemJnlLine."Recurring Method";

As you can see in the above code, then it is either use the date from the last line, or if empty the workdate. If it works differently in your system, then try to check if the SetUpNewLine function in table 83 (Item Journal Line) has been changed?