Updated logic of inventory on male/female parents based on new logic    Ticket: GCP-9127 GCP-9128   Reviewer: To be reviewed by Jai