The losses and profits shall be distributed in conformity with the agreement. If only the share of each partner in the profits has been agreed upon, the share of each in the losses shall be in the same proportion. In the absence of stipulation, the share of each partner in the profits and losses shall be in proportion to what he may have contributed, but the industrial partner shall not be liable for the losses