Bug when completing a Work Order line with two schedules

Fixed an issue where updating the work status of any schedule would trigger an update of the work order lifecycle state if such a mapping existed, causing an error from D365. Now, the lifecycle state is only updated when required.

Copyright Dynaway A/S