Sales Invoice No. Confused
Lorneagle
Member Posts: 6
Hi all.
I have a simple problem which is driving me crazy.
I have a variable called SIHeader of Type Record. SubType is Sales Invoice Header.
As far as i understood:
returns one record. The one with the primary key i specified.
So there is an Sales Invoice with the "No." SVR0000001 in the Cronus Sample Database.
But
If i RUN the Sales Invoice Header Table i get a list which contains the same Sales Invoice but with a completely different No.
My question. How can i access this No. or better:
How do I get a SINGLE Sales Invoice Record? Which key do i have to use and where can i find it.
PLS HELP!
I have a simple problem which is driving me crazy.
I have a variable called SIHeader of Type Record. SubType is Sales Invoice Header.
As far as i understood:
SIHeader.GET("Primary Key Field of Table")
returns one record. The one with the primary key i specified.
So there is an Sales Invoice with the "No." SVR0000001 in the Cronus Sample Database.
But
SIHeader.GET('SVR0000001');
tells me that there is no record with "No." := SVR......If i RUN the Sales Invoice Header Table i get a list which contains the same Sales Invoice but with a completely different No.
My question. How can i access this No. or better:
How do I get a SINGLE Sales Invoice Record? Which key do i have to use and where can i find it.
PLS HELP!
0
Comments
-
The sales invoice that you are looking for - Is this a Sales order record with a type of Invoice rather than a sales invoice record ?0
-
The primary key to sales header is "Document Type" and "No.".
So the code would be something likeSIHeader.GET("Document Type"::Invoice,SVR0000001)0 -
couberpu wrote:The primary key to sales header is "Document Type" and "No.".
So the code would be something likeSIHeader.GET("Document Type"::Invoice,SVR0000001)
He is reading from "Sales Invoice Header" table...i get a list which contains the same Sales Invoice but with a completely different No.
What do you mean? "Same invoice but different No."? How do you know that it is same invoice, if it has different No.? Different No. from what? Where you got your "correct" invoice No.?
Please, post more info, it seems that you need to clear some things.0 -
Now i am REALLY confused. Okay some basic questions
:
If i want to manually create an Invoice for an existing order, how do i do that? Do I use the "Invoice" Tab in the Sales Order Form or do I use the Sales Invoice Form. And if u had such an invoice. Can u tell me how you would export this invoice using an XMLPort an maybe give me some codesamples. I'm feeling soooo lost
I just want to export an Invoice to an XML File, i am desperate
Maybe i am thinking the wrong way ... i'm really stuck
thx in advance
Ben0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
