Edit an entry and exit in an inventory management application

Hello everyone, I am a beginner and I am developing a stock management application but I have a small problem. In the event that the user has incorrectly entered an entry or an exit, a modification must be made. I have three tables Arr for Arrival, Sort for Exit and Product for the products. The link in the database is made on the Product side
Let’s take the example of Arr/Arrival as part of the modification