When the proceeds of sale are sufficient to pay the costs and disbursements and the entire debt adjudged to be due, the officer or person making the sale, or the clerk of the court, shall cancel the note, bond, mortgage, or other evidences of the debt upon which the judgment is founded, by a plain and legible notation on the face thereof, and such note or evidences shall be attached to and filed with the return upon the execution; when the proceeds are insufficient for that purpose, the amount applied on the debt shall be endorsed on such note or other evidences, with the date of the application, by the officer or person making the sale, or by the clerk of the court, and such note or other evidences, so endorsed, shall be attached to and made a part of the return on the execution.
SDCL 21-47-19