ServOrderManagement.CalcServTime

Hi developers,

I have an understanding problem with this codeunit function. I’m quite sure it uses the Default Service Hours to calculate the working hourse between Start Date & Time and End Date & Time but it doesn’t work. My configuration:

Monday, Tuesday, Wednesday, Thursday (8:00-18:30) and Friday (8:00-14:00) since 01/01/10

Call function(11/06/10, 7:00, 11/06/10, 9:00) and it retrieves 2 hours when from 7:00 to 8:00 shouldn’t count.

Could somebody open my eyes please?

Another example:

10/06/10 7:00 to 11/06/10 01:00 retrieves 11,50
10/06/10 7:00 to 11/06/10 11:00 retrieves 14,50

The second is adding the first 3 hours from 8:00 to 11:00 but why counts the hourse between 7:00 to 01:00 if this are not working hours? Thanks

No suggestion-solution?