A court or referee in any action heretofore or hereafter brought may at any time award a money judgment in favor of any party. This shall not preclude the rendition of other judgments in the action. Any payment made on account of either judgment in favor of a party shall be credited on the other judgment.
N.Y. Lien Law § 64