Options

No series in G/L posting

ak2004ak2004 Member Posts: 5
Hi there,
We are encountering the following problem(3.7 version):
Let's say that someone is posting some entries using the General Journal.
However, he decides to delete the journal lines.
Automatically, the document No. is lost.
Of course , no matter what he writes in the Document No. field, the Document number that will be posted will be based on the No.Series or Posting No. Series for the specific template or batch.
Is there a way that we can retrieve automatically the relative document No according to the selected No. Series when we delete some line?
Thanks in advance for any asistance!

Comments

  • Options
    ArhontisArhontis Member Posts: 667
    It is not very clear what you want to do, but in the Form 39, General Journal and at the trigger:

    Form - OnNewRecord(BelowxRec : Boolean)

    The SetUpNewLine function of Gen. Journal Line table is called.

    In that function if there are other lines in the journal then it tries to get the number in the Document No. by increasing the last line:
      "Document No." := LastGenJnlLine."Document No.";
       .
       .
       .
       "Document No." := INCSTR("Document No.");
    
    If there aren't any lines in the journal, that means that you are entering the first line, then it gets the number from the Batch No. Series that you have setup.
    "Document No." := NoSeriesMgt.TryGetNextNo(GenJnlBatch."No. Series","Posting Date");
    
    You want to always get the number from the No. Series that you have setup?
Sign In or Register to comment.