System can not generate two accounting entries as you expected.As Dev said above you can follow the process.
Or if you want to tract the transit then create separate location for dummy receipt one location then once you received the goods do transfer to actual location.
Your requirement is not possible to generate two accounting entries in both the cases.