In settling the accounts of a firm after dissolution, the following rules shall, subject to agreement by the partners, be observed:- (a) Losses, including deficiencies of capital, shall be paid first out of profits, next out of capital, and, lastly, if necessary, by the partners individually in the proportions in which they were entitled to s...