335. The principle of restitution is founded on the ideal of doing complete justice at the end of litigation, and parties have to be placed in the same position but for the litigation and interim order, if any, passed in the matter. In South Eastern Coalfields Ltd. v. State of M.P. [ (2003) 8 SCC 648] , it was held that no party could take advantage of litigation. It has to disgorge the advantage gained due to delay in case lis is lost. The interim order passed by the court merges into a final decision. The validity of an interim order, passed in favour of a party, stands reversed in the event of a final order going against the party successful at the interim stage. Section 144 of the Code of Civil Procedure is not the fountain source of restitution. It is rather a statutory recognition of the rule of justice, equity and fair play. The court has inherent jurisdiction to order restitution so as to do complete justice. This is also on the principle that a wrong order should not be perpetuated by keeping it alive and respecting it. In exercise of such power, the courts have applied the principle of restitution to myriad situations not falling within the terms of Section 144 CPC. What attracts applicability of restitution is not the act of the court being wrongful or mistake or an error