Impossible Flowfield

akman
Member Posts: 67
Hi. When I sell to customers I use the bill to customer no field, but on the customer card I want to be able to see a flowfield that sums the amounts of the entries wich have the customer as sell to customer.
In order to do that I can make a flowfield on the customer table which sums the customer ledger entries. The problem is that I have to activate a sell to custo no key on the cust ledger entry table with the amount (LCY) as sum index field. The amount(LCY) is a flowfiled and I can't put it as a sum index field.
Of course I can make the sell to flowfield on the det cust ledger entries table, but it won't work because I wll have to put this flowfield in a key.
Does anyone know how I can do this?
In order to do that I can make a flowfield on the customer table which sums the customer ledger entries. The problem is that I have to activate a sell to custo no key on the cust ledger entry table with the amount (LCY) as sum index field. The amount(LCY) is a flowfiled and I can't put it as a sum index field.
Of course I can make the sell to flowfield on the det cust ledger entries table, but it won't work because I wll have to put this flowfield in a key.
Does anyone know how I can do this?
0
Answers
-
You can create a normal field "Sell-To Customer" in the detailed entries.
In codeunit 12, you can fill it up and then you can make a SIFT-field on Amount to be used as flowfield on the customer-table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
This is something that has been on the wish list for over 10 years.
The only way you can do it is by adding a field to the Detailed Customer Ledger entry, Sell-to Customer No.
Then add a Key with the sumindexfields you want.
Copy the flowfields on the customer to new numbers then change the Customer part to look at the new field.
In Codeunit 12 Gen. Jnl.-Post Line add a line
// Populate New Field
DtldCVLedgEntryBuf."Sell-to Customer No." := "Sell-to/Buy-from No.";
There maybe other places in codeunit 12 to do the same, have a look.
Then you need to create a report, run through the Customer ledger entries find the detailed entries and update the new field, then test the different postings and applications etc:.
This is another modification, index and sift index to maintain, so it might be better quicker and cleaner, just to add a key to Cust. Ledger Entry for "Sell-to Customer No." and just give them a report, on the customer ledger entry group totaled on the "Sell-to Customer No.".Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
Mbad wrote:David Cox wrote:// Populate New Field
DtldCVLedgEntryBuf."Sell-to Customer No." := "Sell-to/Buy-from No.";
You dont wanna do that.
My answer was the same as kriki but with the process detailed!
There is Only a "Customer No." (Bill-to) on the Detailed Entries at the moment and this ("Sell-to Customer No,") is a new field if you read my post, so there is no problem doing this!
Just to make it clear, the new field would be on both the Detailed Customer Ledger, and the buffer table same number, then you populate it in the buffer as shown above and it is copied across in transferfields when it inserts the detailed ledger entry.Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
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