Accounts Module v7.9.5 error in Pay drawl

Error occurred while drawing a monthly pay bill show in below.
Solution received from CEPT for the above problem
  1. Take backup of DB
  2. Download the attached exl and run it through Script tool
Click below link to download the attached script