Cancel Purchase Receipt with connected Stock LEdger Entry

Hello,

have to cancel a purchase receipt with a mass of serial numbers and multiple items.
When cancelled the serial numbers are still in the erp next system and can be reconcilitated.

We consider this as a bug. The stock ledger entry should be cancelled with the purchase receipt or the serial no should be delete from stock.

With kind regards