Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tha07's avatar
Level 2

Editing an already happened transaction

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?

0 likes
1 reply
Tray2's avatar

Show us what you got so far and it will be easier for us to help you.

Please or to participate in this conversation.