Inventory does not seem to be associated with the tables v3

I can show you a tutorial for refund button but it is written for version 4 and I am not sure it would work fully with v3. but it might…

You are really limiting what you can do by using v3.