Multiple fixes [Details in description]

1. Fixed the wrong return on bom creation
2. Save subdivision only when its present else None
3. Validate magento store on order only if its a magento order