Notwithstanding any other provision of law, in the distribution of state funds provided on a per pupil basis in the State Annual General Appropriation Act, no pupil shall be counted as enrolled, or as having been enrolled, in any primary or secondary school who has not attended such school at least thirty-five days during the school year on which the allocation of such funds is based. A pupil shall be counted as enrolled only in the first school district, or operating unit, such pupil legally attended.
S.C. Code § 59-63-540