Totals and TOTALSCAUSEDBY

andy76
Member Posts: 616
Hello,
I am creating a new report based on Value Entry table.
I want that all records are passed to calculate for examples cost amount but in body section I want to display only records with Adjustment = no so I write:
Value Entry, Body (3) - OnPreSection()
IF "Value Entry".Adjustment THEN
CurrReport.SHOWOUTPUT(FALSE);
I then have a section Group Footer in which the totals for amounts are good but I don't want to have the quantity about Adjustment = yes summed otherwise the total quantity are duplicated.
Is this possibile? How? With function TOTALSCAUSEDBY ?
Or do I have to write a lot of code and variables to manage sums?
Thank you
I am creating a new report based on Value Entry table.
I want that all records are passed to calculate for examples cost amount but in body section I want to display only records with Adjustment = no so I write:
Value Entry, Body (3) - OnPreSection()
IF "Value Entry".Adjustment THEN
CurrReport.SHOWOUTPUT(FALSE);
I then have a section Group Footer in which the totals for amounts are good but I don't want to have the quantity about Adjustment = yes summed otherwise the total quantity are duplicated.
Is this possibile? How? With function TOTALSCAUSEDBY ?
Or do I have to write a lot of code and variables to manage sums?
Thank you
0
Comments
-
Maybe in this case I can expose the sum of the field Invoiced Quantity (that has 0 value for adjustment = yes) in the group footer instead of Valued Quantity ?0
-
You can have a decimal variable in which you store the quantities when
Adjustment = no and maintain totals for that variable to show in the group footer.
In OnPreDataItem of VE:CurrReport.CREATETOTALS(QtyAdjNo);
In OnAfterGetRecord of VE:If NOT "Value Entry".Adjustment THEN QtyAdjNo := "Valued Quantity";
Then show QtyAdjNo in your Group footer.
Regards.//Bogdan0 -
-
I need the amount totals also for adj = yes but not Quantity duplicated.0
-
BBlue wrote:You can have a decimal variable in which you store the quantities when
Adjustment = no and maintain totals for that variable to show in the group footer.
In OnPreDataItem of VE:CurrReport.CREATETOTALS(QtyAdjNo);
In OnAfterGetRecord of VE:If NOT "Value Entry".Adjustment THEN QtyAdjNo := "Valued Quantity";
Then show QtyAdjNo in your Group footer.
Regards.
I would do the same.
I don't know the report you're writing, but it sounds easy to just handle a global variable in which you save the values you need.0 -
Hi
Just a question about What do you mean by Duplicated?
Is the total for Quantity showing twice in report?
Which columns are you using in GroupTotalFields?
Harjot0
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