Updating Planning Wksh dates

I had problems when I tried to find any similar posts http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=13667 so I’ll just post it. This could go in the Tips and Tricks forum too. In the Planning Worksheet, when I go to the routing and change the start or end time of an operation, the dates and times in the Planning Line are not updated. I don’t know why this wasn’t done, but I fixed it by calling CalculatePlanningLineDates at the end of CalculateRoutingFromActual (in the codeunit Planning Line Management), and and ReqLine2.UpdateDatetime at the end of CalculatePlanningLineDates. Incidentally, the SETRANGES in CalculatePlanningLineDates(ReqLine2) should be on ReqLine2 (and not ReqLine). Alastair