Deductions & credits

Let's say a group collects donations in cash, they are given to a member of the group, and one person makes the collective donation to the charity on behalf of the group. (Ex: Sunday School class collects money for a local charity, gives to a member of the class, they write a check to the charity for the total amount of the donations). On the check, it indicates that this donation is on behalf of a group, but it does not clarify anything other than the group's name. How does that work?