Cannot delete Serialized No-s and the corresponding Stock Entries

Hello all,

I am having the following problem:

I have created test Serial No-s for a serialized item. Then I have created stock entries with them (Material Issues and Receipts for those Serial No-s). The problem that I am having is that I cannot delete the test Serial No-s because of the existing stock entries. At the same time the problematic test Serial No-s are shown without a warehouse. The Material Issues have been deleted successfully, but the Material Receipts are the ones that cannot be erased, because they are giving an error that the corresponding Serial No-s do not belong to the specified warehouse in the Material Receipts. I will be happy to try out any advice.

Thank you in advance!