In the Add Product page, I attempted to add a product Book with the commodities Leather, Wood Pulp and Ink. All three of these commodities already existed in the database.
I received the confirmation that the product was successfully added as well as the confirmation that Ink, Leather and Wood Pulp had not been updated. I also received the following error messages when the page reloaded.
This was the state of the three database tables immediately after adding the product and receiving the error messages. The important takeaway here is that the item was NOT added to Composition.
I'm just glad that didn't happen in the demo 👍
(Also don't mind me, seeing how this works on github! Let me know if you need me to look at this, otherwise I'll most likely work on security and such)
In the Add Product page, I attempted to add a product Book with the commodities Leather, Wood Pulp and Ink. All three of these commodities already existed in the database. I received the confirmation that the product was successfully added as well as the confirmation that Ink, Leather and Wood Pulp had not been updated. I also received the following error messages when the page reloaded.
This was the state of the three database tables immediately after adding the product and receiving the error messages. The important takeaway here is that the item was NOT added to Composition.
Composition:
Products:
Commodities: