Level 73
Show us what you got so far and it will be easier for us to help you.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm building an online grocery app which records the inventories and sales.
I want to include the update sales transaction feature.
when recording sales transaction I create a sales record with the products that purchased., and also deduct the product available count in the database.
But in the update transaction, the counts needed to be changed again? I'm a bit confused. How to handle this? Or my approach wrong?
Please or to participate in this conversation.