How to post individual lines through codeunit 80

os2013
Member Posts: 11
Sorry if this is a silly question but I ask anyway:
I have a client request for i.e. a Sales Invoice with lines G/L Acc. No. 11200 (cash) The client wants to enter multiple lines with different amounts but to the same customer. This must appear in the G/L ledger entries as separate lines instead of the standard where the invoice is registered as one entry with the total amount. (pls. don't ask why they want it...they just do) I am looking through CU 80 but am having trouble locating where the total amount is calculated. Can anybody guide me in the right direction? Thx in advance.
I have a client request for i.e. a Sales Invoice with lines G/L Acc. No. 11200 (cash) The client wants to enter multiple lines with different amounts but to the same customer. This must appear in the G/L ledger entries as separate lines instead of the standard where the invoice is registered as one entry with the total amount. (pls. don't ask why they want it...they just do) I am looking through CU 80 but am having trouble locating where the total amount is calculated. Can anybody guide me in the right direction? Thx in advance.
0
Comments
-
Well in the worst case you could try having a Global Dimension 1 or 2 different for each line, I think this would force separation of the G/L lines as they are always split by global dimension. Test this, I am not fully sure.
You can also search for InvPostingBuffer in CU80.0 -
I agree with Miklos Hollender's suggestion.
Otherwise, if you need to replicate exactly the invoice lines in G/L entries you need to add the line no. as new key field in table Invoice Post. Buffer and manage it in PrepareSales function.
Hope this helps.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thanks guys - yes, I think I got it now0
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