I am trying to code an accounting software.
Here is my problem, I'm trying to subtract values between two tables but with same ID's. Let me show an example.
I mean, I want to subtract table2 from table1 like; CHAIR quantity is "10" i want to subtract "2" and i want to update table1's quantity as "8" as you can see in the tables they are not in order they are mixed.
So table2 products need to find their pair then subtract the quantity from their value.