The rights and duties of the partners in relation to the partnership shall be determined, subject to any agreement between them, by the following rules:
- Each partner shall be repaid his contributions, whether by way of capital or advances to the partnership property and share equally in the profits and surplus remaining after all liabilities, including those to partners, are satisfied; and must contribute towards the losses, whether of capital or otherwise, sustained by the partnership according to his share in the profits.
. . . .