Service Order, Starting and Finishing Date

vasam
Member Posts: 53
Hi,
We have noticed recently that when we finish Service Order (we change the Repair Status Code to FINISHED in the Service Item Worksheet), Finishing Date and Time are the same as Starting Date and Time?!?
According NAV help (about Finishing Date):
We have tried in the clean Cronus database, the result is the same, Finishing and Starting Dates and Times are the same after finishing.
This is a NAV bug or we are missing something in the setup or in the process of working with the service module.
We are using NAV 5.0 SP1.
Thanks,
We have noticed recently that when we finish Service Order (we change the Repair Status Code to FINISHED in the Service Item Worksheet), Finishing Date and Time are the same as Starting Date and Time?!?
According NAV help (about Finishing Date):
, but this is not the case.This field contains the finishing date of the service, that is, the date when the Status field changes to Finished.
The program fills in this field with the working date of the day when the status changes.
We have tried in the clean Cronus database, the result is the same, Finishing and Starting Dates and Times are the same after finishing.
This is a NAV bug or we are missing something in the setup or in the process of working with the service module.
We are using NAV 5.0 SP1.
Thanks,
0
Answers
-
Had an hour to kill so I went and had a look.
You were right it Says it should be the Workdate and its anything but that.
I fixed it by changing the code below in Table 5901 Service item line on the on validate for Repair status code.
The calculations for response time was unaffected.
Of Course i wouldn't put it into prod but would report it to MS first as this solution would literally mean a user could change the work date to suit their needs.
IF RepairStatus.Finished THEN BEGIN
ServMgtSetup.GET;
IF ServMgtSetup."Fault Reason Code Mandatory" THEN
TESTFIELD("Fault Reason Code");
GetServHeader;
IF ServHeader."Order Date" > WORKDATE THEN BEGIN
IF "Starting Date" = 0D THEN BEGIN
"Starting Date" := ServHeader."Order Date";
"Starting Time" := ServHeader."Order Time";
END;
"Finishing Date" := ServHeader."Order Date";
IF TIME < ServHeader."Order Time" THEN
VALIDATE("Finishing Time",ServHeader."Order Time")
ELSE
VALIDATE("Finishing Time",TIME);
END ELSE BEGIN
IF "Starting Date" = 0D THEN BEGIN
"Starting Date" := WORKDATE;
"Starting Time" := TIME;
END;
"Finishing Date" := WORKDATE;
// "Finishing Date" := "Starting Date";
IF TIME < "Starting Time" THEN
VALIDATE("Finishing Time","Starting Time")
ELSE
VALIDATE("Finishing Time",TIME);
END;0 -
Thank you jannestig,
We have also noticed that line, and yes, we will write to MS for this issue, because it is very strange that this can happen.
And also MS do not have official document for working with Service module.
However I will post the reply from MS.
Thank you again0 -
Hi,
We have contacted MS.
They have a code patch for this issue, which will be integreted in the latest version of NAV.
So anyone having this issue, do contact MS.
thank you,0 -
edit.0
-
How did you conclude that it was working as designed When.
1) It actually says in MS own words it should be the current Workdate
2) MS actually has provided a Fix for it apparently ?0
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