Hi,
I would like to suggest one thing .
In the Maintenance schedule instead of fetching the item data from the sales order ,it is better to fetch the data from the Delivery Note or Installation Note as the Maintenance schedule starts from these data.
Please clarify me if I am wrong.