Please enable JavaScript.
Coggle requires JavaScript to display documents.
Create cash journal, Operation = Debit, Balance CrDr indicator is Dr,…
Create cash journal
1
1.1
Begin a DB transaction
2.1
2.1.1
3
3.1
1
1.1
1.1.1
1 more item...
1.1.2
2 more items...
1.2
1.2.1
1 more item...
1.2.2
2 more items...
2
2.1
2.1.1
1 more item...
2.1.2
2 more items...
2.2
2.2.1
1 more item...
2.2.2
2 more items...
3.2
3.2.3
Wait and retry
3.3
2.1.2
2.1.3
2.2
1.2
Operation = Debit
Balance CrDr
indicator is Dr
balance >= amount
Operation = Credit
check account setting
balance < amount
NB is Debit
can be overdrawn
Operation = Credit
Get write lock on the latest
balances for source and target
Both accounts exist
balance >= amount
Balance CrDr
indicator is Cr
Error getting
lock for target balance
Check target and
source accounts exist
Operation = Debit
Connect to DB
Return source account
not exists error
balance < amount
Error getting lock
for source balance
Return transaction failure
Return an error
if the connection fails
Operation = Credit
Return target account
not exists error
Balance CrDr
indicator is Cr
balance >= amount
NB is Credit
Operation = Debit
balance < amount
check account setting
can be overdrawn
Operation = Debit
balance >= amount
Balance CrDr
indicator is Dr
Operation = Credit
balance < amount