The discount code that the parent registration uses will apply toward the registration total even if discount codes were not specified for the secondary registrations.