Nobody decides who leads
If both the ERP and the website can change stock, sooner or later one overwrites the other. You need one source that leads and the others that follow.
For exampleThe warehouse books in 20 pieces at 10:00, the website sells 3 at 10:05, at 10:30 an old update arrives: the website goes back to 20 instead of 17.