Please enable JavaScript.
Coggle requires JavaScript to display documents.
Create cash journal, Connect to DB, Return an error if the connection…
Create cash journal
1
1.2
1.1
Begin a DB transaction
2.1
2.1.2
2.1.1
3
3.1
1
1.1
Operation is Debit
increase balance
by amount
1.2
1.2.1
2 more items...
1.2.2
2 more items...
NB is debit
2
NB is Credit
2.1
increase balance
by amount
Operation is Credit
2.2
2.2.1
2 more items...
2.2.2
2 more items...
Operation is Debit
3.2
3.2.3
Wait and retry
3.3
2.1.3
2.2
Connect to DB
Return an error
if the connection fails
Check target and
source accounts exist
Return transaction failure
Return source account
not exists error
Return target account
not exists error
Both accounts exist
Get write lock on the latest
balances for source and target
Error getting
lock for target balance
Error getting lock
for source balance