Sales Tax Exemption Expiration Logic

Hello all.  I'm new here, so I'm stumbling my way through some of this...it has been enlightening to say the least!

Here in Oklahoma, agricultural sales tax exemptions expire periodically.  For audit purposes, we must maintain records of our customers' valid sales tax exemption permit. 

Some time ago, a UDF was built for "Sales Tax Expiration Exemption Date" but there is not logic behind that UDF to "enforce it" (that is, to override the exemption after the expiration date and begin charging tax.)

Has anyone ever done anything like this before?  It sure would be a nice feature...and keep us out of hot water with the State! :-)

Thanks!

Dan in Oklahoma