I also second that the earning should be based on the spend; KLM should be able to determine how much of the original spend was assigned to these flights.
Last year, I was travelling on a CI ticket that included CI's codeshares on the AF flights between Paris and Taipei in both directions. As reported in the thread:
AF launches Taipei (TPE)-Taiwan, China Airlines dropped their codeshares on these AF flights back in January of last year, prior to my trip.
After contacting CI in response to the receipt of these "cancellation" emails, and in order to restore my ticket to a flyable condition, they reissued the ticket with the flight CI9238 (CDG-TPE) rebadged as AF552, and with the flight CI9237 (TPE-CDG) rebadged as AF557.
The flights earned based on spend...despite CI having a more distant relationship than KQ to AFKL, AFKL could still see the amount of the fare for their flights.