Income, gain, loss, deduction or credit of a limited partnership shall be allocated among the partners, and among classes of partners, in the manner provided in the partnership agreement. To the extent the partnership agreement does not provide for the allocation of items of income, gain, loss, deduction, or credit, then those items shall be allocated on the basis of the agreed value of the contributions made by each partner to the extent they have been received by the partnership and have not been returned. As used in this section, the term "agreed value" means an amount or other measure of value as (i) is provided in the partnership agreement, or (ii) if not provided in the partnership agreement, is required to be set forth in the written records required pursuant to G.S. 59-106.
N.C. Gen. Stat. § 59-503