¶1The receiver of the Atlanta, Birmingham & Atlantic Railroad Company brought suit in the city court of Moultrie against Battle for tire recovery of $387 and interest on an account for freight charges on two cars of live stock shipped from a point in Illinois to Moultrie, Ga.; it being alleged that at the time of the arrival of the live stock at destination it was important for them to be unloaded promptly, that for that reason the defendant was allowed to- take possession without first paying the freight bill *489and other charges, that the shipment was delivered upon the defendant’s promise to pay these amounts as soon as they could be ascertained, and that he had failed and refused to do so. The defendant’s answer admitted that the acount sued on was prima facie correct, that it represented correctly the amount of freight charges due upon the shipment, and that the shipment had been delivered to him without these things being paid for. He denied that he had made any express promise to pay them, but admitted that he would be liable therefor, were it not for the other matters which he pleaded, namely, that the shipment 'was delivered in bad condition, having been damaged in transit, and that he accepted the shipment from the agent of the railroad company ou the understanding that the damages would be adjusted and paid within a few days, which had not been done; that the damage caused to the shipment in the course of transportation amounted to $1,225, for which amount he pleaded recoupment against the plaintiff’s claim, and a judgment for the excess. The plaintiff demurred to this answer, contending first that it was an effort to set off a cause of action ex delicto against a cause of action ex contractu, which is not permissible in this State, and then that to allow the defendant to maintain this defense against the suit for freight charges would be in violation of the act of Congress of June 29, 1906, which provides: “No carrier shall refund or remit, in any manner or by any device, any portion of the rates, fares, and charges so specified.” The court sustained the general demurrer to the defendant’s answer and struck the defense.
¶2
¶3
¶4Here we have a case where the carrier did not receive cash for transportation, and where it did not pay cash in settlement for the damages it had done to the shipment; and it brings its action against the shipper, asking the court to lend the aid of its processes the collecting of the money due for the freight charges, and the defendant merely asks the court, while it has both parties thus before it, also to collect for him the money due by the carrier for its delinquency in executing the same contract. The amount due to the one party is liquidated, and the amount due to the other is unliquidated; but the court has the means and the power to liquidate the latter claim, and to place it upon the same footing as the for-*492met. The very object of allowing pleas of recoupment and set-off and 'all similar pleas is to prevent a multiplicity of suits, and to enable the court, when it has all the necessary parties before it, to adjudge all their respective rights, and to render a judgment which will finally end the controversies pending between them. Now, if the shipper had sued the carrier in a separate action and had recovered judgment, say for the $1,200 he alleged to be the amount of the damage done to the shipment, and the carrier had paid over to him twelve $100 bills, there would certainly be nothing in the spirit or the letter of the act of Congress to prevent the shipper from taking four of these bills and paying to the carrier its claim for the freight charges. The effect of the plea in the present case is simply a prayer on the defendant’s part that he be allowed to consummate this same end through the offices of the court, which the plaintiff has first invoked. It is true that the court, in rendering its judgment, will dispense with the necessity of the plaintiff’s paying over the full amount of the damages, and of requiring the defendant to hand back the amount due the plaintiff, and will strike a balance, and will merely render a judgment requiring the losing party to pay the difference; but it is not with mere incidentals such as these that the act of Congress deals, or which it was intended to prohibit. It is the substance of the thing at which the act of Congress aims, and the form which the transaction assumes is immaterial. No matter how plausible or ingenious may- be the form of the transaction, if the spirit or the letter of the act is violated, the transaction is illegal. And, on the other hand, any form may be adopted which does not violate the letter or the spirit of the law; and for the court to proceed to adjust the respective rights of the parties in a transaction such as this is in no sense a device for the remitting or the refunding of any portion of the 'rates and charges with which the act of Congress deals. It is not a means by which a particular shipper can pay anywise differently from what other shippers may pay,# for every shipper standing in a similar situation may-pay the same way; that is to say, the rule which we are now announcing is that the damages due to the shipper may be recouped against a suit for the freight charges in any and all cases where the carrier sues for such charges, and it appears that the carrier did not perform his contract of shipment, but damaged the goods in the course of *493the transportation. We think, therefore, that the court erred in striking the defense. 1 Judgment reversed.