-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: customer accounts have credit balances
- Loading branch information
1 parent
96cbcb2
commit 8841f2e
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/exercises/012_debits_credits.sh b/exercises/012_debits_credits.sh | ||
index 0cfa945..01c7fbf 100755 | ||
index 7568bd6..a239020 100755 | ||
--- a/exercises/012_debits_credits.sh | ||
+++ b/exercises/012_debits_credits.sh | ||
@@ -26,7 +26,7 @@ tb "create_transfers id=12000 debit_account_id=$CUSTOMER credit_account_id=$BANK | ||
@@ -26,7 +26,7 @@ tb "create_transfers id=12000 debit_account_id=$BANK credit_account_id=$CUSTOMER | ||
|
||
# Now, the customer wants to withdraw $20 from the bank. | ||
# Which account should be debited and which should be credited? | ||
-tb "create_transfers id=12001 debit_account_id=${???} credit_account_id=${???} amount=20 ledger=120 code=10;" | ||
+tb "create_transfers id=12001 debit_account_id=$BANK credit_account_id=$CUSTOMER amount=20 ledger=120 code=10;" | ||
+tb "create_transfers id=12001 debit_account_id=${CUSTOMER} credit_account_id=${BANK} amount=20 ledger=120 code=10;" | ||
|
||
# For developers who are new to accounting, debits and credits can be a bit confusing. | ||
# You can read more debits and credits in our primer on financial accounting: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
diff --git a/exercises/016_balance_limits.sh b/exercises/016_balance_limits.sh | ||
index a5d695c..5805d01 100755 | ||
index 03a1d5a..f345426 100755 | ||
--- a/exercises/016_balance_limits.sh | ||
+++ b/exercises/016_balance_limits.sh | ||
@@ -22,4 +22,4 @@ tb "create_transfers id=16000 debit_account_id=$CUSTOMER credit_account_id=$BANK | ||
@@ -22,4 +22,4 @@ tb "create_transfers id=16000 debit_account_id=$BANK credit_account_id=$CUSTOMER | ||
|
||
# Now, the customer wants to withdraw money fromt the bank. | ||
# But they're trying to withdraw too much! Can you fix the amount so this transfer succeeds? | ||
-tb "create_transfers id=16001 debit_account_id=$BANK credit_account_id=$CUSTOMER amount=200 ledger=160 code=10;" | ||
+tb "create_transfers id=16001 debit_account_id=$BANK credit_account_id=$CUSTOMER amount=100 ledger=160 code=10;" | ||
-tb "create_transfers id=16001 debit_account_id=$CUSTOMER credit_account_id=$BANK amount=200 ledger=160 code=10;" | ||
+tb "create_transfers id=16001 debit_account_id=$CUSTOMER credit_account_id=$BANK amount=100 ledger=160 code=10;" |