Translation:Shulchan Aruch/Orach Chaim/245
245: A Jew and a Heathen are Partners, How Should They Act on Shabbat.
1 A Jew and a heathen that have a field or oven or bathhouse or millstone of water in a partnership, or that they are partners in a store in a business: if they stipulated in the beginning at the time they came into the partnership that the profit of the Shabbat would go to the heathen alone, whether a little or a lot, and the profit of another day, corresponding to the the day of the Shabbat, to the Jew alone, it is permissible. And if they didn't stipulate from the beginning, when they will come to distribute, the heathen takes the profit of all the Shabbats and they split the rest. And if the profit of Shabbat was not known, the heathen should take a seventh of the profit and they split the rest. Gloss: And there are those that permit the profit after-the-fact, even if he did not stipulate and they just split [Rabbi Asher, First Chapter of Avodat Elilim; and Rabbi Yerucham, Section 12]. And it appears to me that in a situation of great loss there is what to rely on them. And some say that all of this is only applicable to a partnership in which each one works on his day [Beit Yosef], but when both are working together all the weekdays, and on Shabbat the heathen works alone, it is permissible to split with him all the profit because the heathen is working for his own benefit and the Jew is not benefiting from his work on Shabbat since the work isn't obligated for him to do. And nevertheless, he shouldn't take the profit of Shabbat unless they are swallowed up with the other days [Rabbi Nissim, first chapter of Shabbat; end of Chapter "All Writings"; and first chapter of Avodat Elilim].
2 Where they stipulated in the beginning: if afterwards, during the time of splitting, the heathen was willing to split equally, it is permissible.
3
Where they didn't stipulate in the beginning, there is a fix by the seller returning to them the money of the land or they sell it to a different person and they return and they buy it as a partnership and they stipulate at the time of the buying. And if they were partners in a shop and did not stipulate, everybody should return and take their share and they should nullify the partnership. And afterwards they should return to partner and they should stipulate at the beginning. And if he received the land to do work in it as a partnership, they should nullify the partnership and forgive each other. And afterwards they should return to form a partnership and should stipulate at the beginning.
Gloss: And if he will want to rent to a heathen his share on Shabbat or to rent in a way where they share the profit, it is permissible, and like it is clarified above, end of siman 244, regarding tax and coins, that it's permissible, and all the more so here, that it's permissible in a partnership with a heathen.
4
A Jew is able to give to a heathen money to do business with it, and even though the heathen does business with it on Shabbat, he splits with him all the profit equally since the Jew is not obligated to do this work that we should say that the heathen is doing it as his agent, and also the work isn't recognizable, from whom it is.
Gloss: And this is specifically in such a case where the heathen does work by himself with the money. But if each one works on his day and the Jew needs to work corresponding to what the heathen did on Shabbat, it's prohibited [Beit Yosef in the name of a gaon]. And a Jew that has collateral from the heathen – see below, siman 325, seif 2 and 3.
5 It is permissible for a Jew to give merchandise to a heathen to sell if he set his wages. But only as long as he won't say to him: "sell on Shabbat". An oven that was taken by a Jew as collateral from a heathen and the heathen took upon himself that he will give the profits of the oven to the Jew with the interest of his money: it is permissible to take the profit of Shabbat because it is in the property of the heathen and the Jew has no part in it, and also, the Jew isn't saying to him to work on Shabbat, and the heathen is laboring for the sake of himself, to fulfill his stipulation.
6 If heathens baked in an oven of a Jew on Shabbat against his will and they gave him bread as rent of the oven, it is forbidden to benefit from it.