Bigelow, J.
The principles already applied to the contrac? between these parties, in the action brought to recover of the plaintiff in this suit the balance of freight money alleged to be due from him to the present defendants, (ante, 97,) are decisive of the question presented by the bill of exceptions in this case. The contract of shipment having been entire, and there having been a failure to fulfil it, through the negligence of the defendants or their agent, there was no freight due to the defendants on the arrival of the vessel in San Francisco. The owner or consignee there would have had the right to demand and receive the goods remaining on board the vessel, free of any charge for freight. The carrier has only a special property in goods committed to his charge, as against the general owner or consignee, namely, a right to retain them until his freight is paid. To this extent, and this only, does any right in them accrue to him. If the freight is paid, or if there is no freight due, then the person having the general property in the goods, the shipper or consignee, has a right to their immediate possession. If the goods
Page 110
had all been carried, without the loss of a single article, to a port within a day’s sail of San Francisco, and there left by the master, who failed, from causes not within the exception in the bill of lading, to transport them further, there can be no doubt of the right of the owner or consignee to assert his title to the property, and receive them free from any charge of freight. Nothing but a voluntary acceptance of the goods at a port short of their destination would render him liable
pro rata. This is a familiar application of an elementary principle governing this species of contract. Although in such a case it might be said the owner or consignee had received almost the actual benefit of his contract of shipment, still he would not be liable for freight. The same rule applies for the same reason in case of non-delivery of a part of a cargo, where the contract of affreightment is entire. The contract is to deliver as well as to carry, and a failure to do either destroys the right of the owner of the vessel to claim any freight, or to hold the goods in his possession as against the owner or consignee. In all cases of entire contracts, part performance, however beneficial to the other party, gives no right of compensation. If a man agrees to work for another for a year at a stipulated price, and leaves the employment before the year has expired, he is entitled to no compensation for the time and labor expended in part performance of his contract, however beneficial it may have been to his employer.
Stark v. Parker, 2 Pick. 267. If parties desire to avoid the hardship of this rule of law, they must guard against it by special stipulations in their contracts. It is the duty of courts of law to enforce rules, not to evade them. For the reasons already given in the former action between these same parties, growing out of this contract, we think there was no voluntary acceptance of the goods which arrived in San Francisco; but that a portion of them having been lost in consequence of the negligence of the master in stowing them improperly, there was no freight earned. Consequently the property in the goods which arrived at San Francisco was absolutely in the plaintiff, and the proceeds of the sale belong to him, without any right on the part of the defendants to deduct anything for freight. The goods having been sold in
Page 111
pursuance of the authority contained in the contract, assumpsit is the proper form of action to recover the amount received by the defendants therefor. The net proceeds of the sale, after deducting all necessary charges for the care and storage of the goods in San Francisco, the expenses of wharfage, advertising, commissions and all other costs necessarily incurred in making the sale, belong to the plaintiff. Even if there had been no authority to sell contained in the bill of lading, the plaintiff, by seeking to recover the proceeds of the goods in an action for money had and received, has thereby ratified the sale, and is entitled to recover only the net proceeds in the hands of the defendants.
The fact that the defendants paid the purchaser the value of the missing goods cannot affect the rights of the parties, for the reasons given in the preceding case, ante, 107. The plaintiff is therefore entitled to recover the proceeds of the goods, less the necessary and proper charges attending the sale in San Francisco.
Nor, under the circumstances of this case, do we think any demand on the part of the plaintiff for the amount of the sales requisite, in order to enable him to maintain this action. If such demand had been originally essential, the defendants have rendered it unnecessary by commencing an action against the plaintiff to recover a balance due for freight. This was equivalent to a refusal on their part to account for the money in their hands, and gave to the plaintiff an immediate right of action.
Exceptions sustained.