We need to get all group items' cost price in total.And that total added to the Main Group Product Cost price in the admin.