No series in G/L posting

ak2004
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!
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!
0
Comments
-
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?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions