Generate an ID using Multiple Properties
I want to generate a Policy ID in the following format.
The Policy Number should be in ABxxxx-yyy format, where digits stand as below,
A – F/T based on Full/ Third Party
B – C/B/V/M based on Car/Bus/Van/Motorcycle
xxxx – Current Year
yyy – A 3-digit number that increments based on the key given by the previous digits (digits 1 to 6)
Eg:- FV2019-012 means 12th Full cover Van insurance issued for year 2019
Can anyone suggest a proper method to do this?