Skip to content

Extension 5: Overdraft

Compare
Choose a tag to compare
@jeffreybakker jeffreybakker released this 05 Aug 17:36
· 35 commits to master since this release

By default the balance of a bank account could never be lower than 0.00 euros and therefore any action that attempts to lower this balance under this level should be rejected. However, there are cases where a customer might want to overdraft his or her account to make some necessary payments. Therefore this extension required us to make the over-drafting of bank accounts possible.

The task for this extension was to make a per account overdraft limit and limit transactions to never let the account balance fall below that limit. And whenever the balance of an account was less than 0.00 we would have to calculate interest over the overdrafted amount.