The information is drawn from your Patrols and Careers save game files. SH3Cmdr trawls through each one to build your history.
The fact you have two different u-boat types with the same number in the same career suggests some user tinkering of these files. SH3Cmdr is fairly spot on when reading SH3 generated data, but all bets are off if the user intervenes.