Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. run balance solution:
  2. updating status of order( success -> fail or fail -> success)
  3. there 3 steps :
  4. 1. change order status
  5. 2. update running balance
  6. When we change the order to fail, something goes wrong. for example: the merchant balance is zero.
  7. 3. insert into account history.
  8. We have to keep track of every change in the amount.
  9. for this mode: success -> fail
  10. So we must insert a record into the history table.
  11. due to the same order. we can't insert successfully.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement