Thus, at the time the motion for summary judgment was heard, the trial court had no alternative but to grant summary judgment because the only plaintiff before it, having already been made whole, had no damages and therefore no cause of action. See Dollar Systems, Inc. v. Detto, 688 So.2d 470 (Fla. 3d DCA 1997) (granting summary judgment where there was no evidence that the plaintiff had incurred damages and the complaint did not show that the plaintiff was proceeding in a representative capacity). A party may, with leave of court, amend a pleading at or even after a hearing and ruling on a motion for summary judgment.