Right, thank you! I understand that I need to apply a class to each invoice. My problem was in trying to divide income from a single invoice between two partners. I figured out that I could create two separate line items on the invoice, each representing one partner's income, and assign each line item the appropriate class. So I believe the issue is resolved.
Thank you so much for your assistance!