The department may, within two years of the granting of any refund or credit, or within the period in which an assessment could have been filed by the department with respect to the transaction pertaining to which the refund was granted, whichever period shall last occur, file an assessment to recover any refund or part thereof or credit or part thereof which was erroneously made or allowed.
72 P.S. § 7233