Number series skipping

vijayanderson
Member Posts: 207
Hi Friends,
When I post the Sales Invoice from order (Partial invoicing) , the Posted invoice number is getting skipped. The reason being is that ,the posted invoice number is getting populated in posting no in sales order Header even before posting.
The field gets populated when following error occurs
We have a Item tracking for the items, so when the user forgets to give the Item track number, it throws an error, at that time the posting number gets stored in the Sales Header.
Can someone suggest a solution for this.
Thanks & Regards,
Vijay
When I post the Sales Invoice from order (Partial invoicing) , the Posted invoice number is getting skipped. The reason being is that ,the posted invoice number is getting populated in posting no in sales order Header even before posting.
The field gets populated when following error occurs
We have a Item tracking for the items, so when the user forgets to give the Item track number, it throws an error, at that time the posting number gets stored in the Sales Header.
Can someone suggest a solution for this.
Thanks & Regards,
Vijay
0
Comments
-
I don't think it's supposed to actually populate a number, just the numbering series.0
-
It actually does get a number for shipment and sales invoice.
IF Ship AND ("Shipping No." = '') THEN IF ("Document Type" = "Document Type"::Order) OR (("Document Type" = "Document Type"::Invoice) AND SalesSetup."Shipment on Invoice") THEN BEGIN TESTFIELD("Shipping No. Series"); "Shipping No." := NoSeriesMgt.GetNextNo("Shipping No. Series","Posting Date",TRUE); ModifyHeader := TRUE; END; IF Receive AND ("Return Receipt No." = '') THEN IF ("Document Type" = "Document Type"::"Return Order") OR (("Document Type" = "Document Type"::"Credit Memo") AND SalesSetup."Return Receipt on Credit Memo") THEN BEGIN TESTFIELD("Return Receipt No. Series"); "Return Receipt No." := NoSeriesMgt.GetNextNo("Return Receipt No. Series","Posting Date",TRUE); ModifyHeader := TRUE; END; IF Invoice AND ("Posting No." = '') THEN BEGIN IF ("No. Series" <> '') OR ("Document Type" IN ["Document Type"::Order,"Document Type"::"Return Order"]) THEN TESTFIELD("Posting No. Series"); IF ("No. Series" <> "Posting No. Series") OR ("Document Type" IN ["Document Type"::Order,"Document Type"::"Return Order"]) THEN BEGIN "Posting No." := NoSeriesMgt.GetNextNo("Posting No. Series","Posting Date",TRUE); ModifyHeader := TRUE; END; END;
You can comment the commitIF ModifyHeader THEN BEGIN MODIFY; COMMIT; END;
but this will cause longer locking of the tables so anybody creating orders items, etc will be locked until the SO is posted.0 -
The Numbers do not get skipped, you just haven't posted the order yet, once you post the order they will retain the number they posted on first time.0
-
Hi Aran,
What you are saying is correct, only after posting the SO is complete but, the shipment is done by warehouse department, so they assign the lot number. once the error occurs Invoice department will not post the corresponding order , which would be posted at later date. so the Order gets posted after series of number have been posted.
So Client feel as tough number is getting skipped.
if possible suggest a remedy
Regards,
Vijay0 -
It's how nav works, One solution is to comment out the commits as I mentioned but it has drawbacks.0
-
Can u tell wohat would be the draw backs0
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