LH appears to have a "customer number" for each person. The different cards/numbers are linked to that customer number. So the miles credit correctly.
I remeber a few years ago, there was somw *A promotion and you could get miles by regisering for FF number. None of the card numbers worked. You actually had to use your customer number which is on your statement.