Print Page - [Fixed] Strange registrations for Chinese aircraft
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: SomedayTrijet on April 26, 2011, 06:51:34 pm
Title: [Fixed] Strange registrations for Chinese aircraft
Post by: SomedayTrijet on April 26, 2011, 06:51:34 pm
I'm a member of PW1924. I'm based in China (ID:49372), so my planes naturally have chinese registations.
I've recently ordered by 10th and 1th aircraft. Now I noticed the registrations are strange. My planes before has been registrated with B-1111/2/3/4/5/6/7/8/9. Instead of having registrations B-1120 and B-1121 as they probably would have, my planes have been registered with "B-111:" The other plane have been registered with "B-111;"
This seems very strange to me!
Title: Re: Strange registrations for Chinese aircraft
Post by: SomedayTrijet on May 01, 2011, 05:45:05 pm
It keeps going with registrations like:
B-111? B-111@ B-111A B-111D etc
Can it be solved some way?
Title: Re: Strange registrations for Chinese aircraft
Post by: StephenM on May 01, 2011, 06:44:21 pm
We did have a check built in to skip those characters. Originally the function we used to increment the registrations simply went through a group of letters which included those characters. I'll take a look at the code and see what's gone wrong.
Title: Re: Strange registrations for Chinese aircraft
Post by: StephenM on May 01, 2011, 09:14:35 pm
Okay, I've now fixed the problem and re-registered all aircraft that were causing an issue.
Basically China use the structure B - #### each # signifying a number. We store this structure as 1111 in the database, but our logic was looking for 0000. Because there wasn't a match, the checks in place to prevent special characters and letters being used failed and you got the strange registrations. I have fixed the logic and it now operates in sequence from 0 to 9 reverting back to 0 when it reaches 9.
Thanks for the report.
Title: Re: [Fixed] Strange registrations for Chinese aircraft
Post by: SomedayTrijet on May 02, 2011, 07:36:06 am