If one gave to craftsmen to repair and they spoiled it, they are obligated to pay the entire value of the vessel. And it is not only necessary to say if he gave a vessel to a craftsman to repair something, such as if he gave a carpenter a chest, a box, or a cabinet to fix a nail in them and he broke them, that he is obligated to pay everything the vessel was worth before he spoiled it; but even if he gave a carpenter wood to make from them a chest, a box, or a cabinet, and they were broken after they were made, he pays him the value of a chest, box, or cabinet according to their value before the breakage, with the deduction of the value of his labor. This is because we establish that a craftsman does not acquire through the improvement of the vessel. And its explanation is that when the craftsman makes a vessel from the wood of the homeowner, we do not say that the improvement by which the vessel was improved belongs to the craftsman and that he has a portion in the body of the vessel until he is paid his wage—which would be like an acquisition in a collateral not at the time of the loan—rather, the improvement belongs to the homeowner since it was made from his wood, and to the craftsman reaches only wages. And if so, he has spoiled the vessel of his fellow and is obligated to pay. And so ruled the Rif and the Rambam in the tenth chapter of Hiring, and so ruled our teachers, the authors of the Shulchan Aruch. And although in Even HaEzer siman 28 they wrote two opinions on this, this is because of the stringency of a married woman [Bach]. And in Yoreh Deah siman 121, where it appears they are in doubt regarding this law, there is another reason there, and it is explained there in the Tur, and so it appears from what will be explained in siman 339. However, there is one who wrote that it is a legal doubt, for from the Yerushalmi Bava Kamma chapter 9 [halacha 4] it appears explicitly that a craftsman acquires through the improvement of the vessel [Shach]. However, there is one who says that even according to the one who holds a craftsman acquires through the improvement of the vessel, it is only regarding a contractor and not a day laborer [Ma'aneh Mi-Yitzchak]. And it is a logical reason, for a day laborer's eye and heart are only upon his daily wage and not upon the completion of the vessel [and what the Shach wrote, why the Gemara there did not establish it so, is not a difficulty at all, for there it is explicit "make for me bracelets and earrings," behold he hired him for the making of the vessel, and a standard craftsman is through contracting as I wrote; and what the Rashba wrote in Bava Kamma 98b, that he acquires through the improvement only regarding spoiling, requires great study from that case of "make for me bracelets," and in siman 339 it will be further explained].
נתן לאומנים לתקן וקלקלו חייבים לשלם כל שווי הכלי ולא מיבעיא אם נתן כלי לאומן לתקן דבר מה כגון שנתן לחרש שידה תיבה ומגדל לקבוע בהן מסמר ושברו דחייב לשלם כל מה שהכלי היה שוה קודם שקלקלה אלא אפילו נתן לחרש עצים לעשות מהן שידה תיבה ומגדל ונשברו אחרי שנעשו משלם לו דמי שידה תיבה ומגדל כפי שויים קודם השבירה בניכוי דמי מלאכתו משום דקיי"ל אין אומן קונה בשבח כלי ופירושו דהאומן כשעושה כלי מעציו של בעה"ב לא אמרינן דשבח שנשתבחה הכלי הוי של האומן ויש לו בגוף הכלי עד שישלם לו שכרו וזהו כקנין במשכון שלא בשעת הלואה אלא השבח הוא של בעה"ב כיון שמעציו נעשה ולהאומן אינו מגיע רק שכירות וא"כ הרי קלקל כלי של חבירו וחייב לשלם וכן פסקו הרי"ף והרמב"ם בפ"י משכירות וכן פסקו רבותינו בעלי הש"ע והגם שבאה"ע סי' כ"ח כתבו שני דעות בזה זהו מפני חומרא דא"א [ב"ח] וביו"ד סי' קכ"א שנראה כמסתפקים בדין זה יש בשם טעם אחר ומבואר שם בטור וכן נראה ממה שיתבאר בסי' של"ט אמנם יש מי שכתב דהוה ספיקא דדינא דמירושלמי ב"ק פ"ט [ה"ד] נראה להדיא דאומן קונה בשבח כלי [ש"ך] מיהו יש מי שאומר דאפילו מאן דס"ל אומן קונה בשבח כלי אינו אלא בקבלן ולא בשכיר יום [מע"מ] וטעמא דמסתבר הוא דשכיר יום אין עינו ולבו רק לשכירת יומו ולא לעשיית הכלי בשלימות [ומ"ש הש"ך למה לא מוקי הש"ס שם כן ל"ק כלל דהא שם מפורש עשה לי שירים ונזמים הרי שכרו לעשיית הכלי וסתם אומן הוא בקבלנות כמ"ש ומ"ש הרשב"א בב"ק צ"ח. דקונה בשבח הוא רק לענין קלקול צע"ג מהך דעשה לי שירים ובסי' של"ט יתבאר עוד]: