Hi Nabil,
This SP restrict end user to enter any transaction which having impact in Chart of account if End User enter any previous month transaction or After Current Month transaction.For Better understanding test this store procedure in Test Database and try to post previous month entry and after current moth entry.