Inventory valuation report customization

vandang
Member Posts: 101
Hi all,
I have a task to customize Inventory Valuation report. There are some differences from original report:
.Date filter should affect on GL Entry (not on Item Ledger Entry and Value Entry table as original)
.From such data, we can find the Value Entry No. and find it on Value Entry table to reconcile.
Could you please help me code this customize?! Thanks in advance!
Best Regards,
I have a task to customize Inventory Valuation report. There are some differences from original report:
.Date filter should affect on GL Entry (not on Item Ledger Entry and Value Entry table as original)
.From such data, we can find the Value Entry No. and find it on Value Entry table to reconcile.
Could you please help me code this customize?! Thanks in advance!
Best Regards,
0
Comments
-
Anyone please help me ](*,)0
-
-
You're not asking a question. You're asking someone to create a report for you, that's why no one responded.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:You're not asking a question. You're asking someone to create a report for you, that's why no one responded.Savatage wrote:have you tried anything? :whistle:
I designed the Data Item structure:
.Item
.Value Entry (named InvoicedValueLedgerEntries)
And write on Value Entry - OnAfterGetRecord() following code:
/////////////////////////////////////////////////////////////////////////////
//Getting GLAccount for Inventory
AdjCost := 0;
InvPostSetup.SETRANGE("Invt. Posting Group Code", Item."Inventory Posting Group");
IF InvPostSetup.FINDFIRST THEN
InvAcc := InvPostSetup."Inventory Account";
//Filt Value Entry
InvoicedValueLedgerEntries.SETRANGE("Inventory Posting Group",Item."Inventory Posting Group");
InvoicedValueLedgerEntries.SETRANGE(InvoicedValueLedgerEntries."Item No.",Item."No.");
//Filt G/L Entry with Posting Date & G/L Account
GLEntry.SETRANGE("Posting Date",0D,EndingDate);
GLEntry.SETRANGE("G/L Account No.",InvAcc);
IF GLEntry.FINDSET THEN
REPEAT
InvoicedValueLedgerEntries.SETRANGE("Entry No.",GLEntry."Value Entry No.");
IF InvoicedValueLedgerEntries.FINDFIRST THEN
AdjCost := AdjCost + "Adjusted Cost";
UNTIL GLEntry.NEXT = 0;
TotalAdjCost := TotalAdjCost + AdjCost;
/////////////////////////////////////////////////////////////////////////////
It shows exactly result which I want but I think this code is not good performance and I should calculate much filed (quantity, amount at begin period, in period...). Any suggestion for improve performance or design? Thanks!0 -
Look at the SETCURRENTKEY function.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0
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