(a) Effect of partnership agreement. A partner’s distributive share of any item or class of items of income, gain, loss, deduction, or credit of the partnership shall be determined by the partnership agreement, unless otherwise provided by section 704 and paragraphs (b) through (e) of this section. For definition of partnership agreement see section 761(c).