Fixed bug in parent lines retrieval during sales doc edition and a couple of smaller