How to bar-code serial numbers annually reset [on hold]

Please give me solution for this i’m fresher in drupal.

Using drupal 7.38 version

At each new year the first Bar-code should have the 2 digits of the new year value followed by 6 zeros and should then start the new serial numbering from that value.