Hi.
My client noticed that the YTD on the Sales Orders List page is not actually Year to Date but total to date for the entire history of the customer.
Anyone else have this problem?
I can't seem to find any way of changing the fields behind the factbox - is it possible? Thanks.
Comments
Thank you!! Ok, so I see:
SETRANGE("Date Filter",0D,CurrentDate);
And from the help files I see 0D means "undefined date" --- is there a date formula that means First day of the year? (1-1-20??)
First read is that you likely want a line like: So, if the user, for whatever reason, does a WORKDATE of, say, March 31 of the previous year, the YTD total in the FactBox will show Jan 1 through March 31 YTD figures for the previous year.
If you don't want it something the user can goof up with changing the work date, simply swap in TODAY for the two WORKDATE references.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
Wondering if you could help me. Our financial year runs 1st April to 31st March.
When I set the filter up as SETRANGE("Date Filter",CALCDATE('-CY',WORKDATE),WORKDATE);
I get the YTD from the beginning of the year i.e. 1st January
Do you know how we can use our financial (fiscal??) year instead?
I have found this but it makes no sense to me: http://mibuso.com/blogs/alexchow/2009/0 ... mment-2552
Cheers
Red
http://mibuso.com/blogs/alexchow/2009/0 ... scal-year/
You can use the above to get the Start/End Dates, then use those to SETRANGE.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
We are an end user. We asked our partner to quote for this but they came back with £700 to develop this change. I thought that amount of money was too much so I decided to research myself.
I too found Alex's blog but I do not understand how to put this together.
Can you help?
Thanking you for all help
Red
http://mibuso.com/blogs/davidmachanick/