Purchase Order creation was not working from Quote if Parent Organization is being associated with the facility and the value passed from Quote is for Child Organisation. For this I had put a check on PartyRelationship, so that it will also check the relationship between parent & child organisation. If it exists then it will fetch companyId from there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997990 13f79535-47bb-0310-9956-ffa450edef68