Skip to content

Commit

Permalink
fix(db, UI): make transfer account not required
Browse files Browse the repository at this point in the history
Update the db to make transfer account null by default and update the UI
  • Loading branch information
DedrickEnc committed Dec 7, 2017
1 parent 907a0b9 commit 52a25ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

<bh-account-select
id="transfer-account-id"
required="false"
account-id="CashboxModalCtrl.data.transfer_account_id"
label="FORM.LABELS.TRANSFER_ACCOUNT"
name="transfer_account_id"
Expand Down
2 changes: 1 addition & 1 deletion server/models/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ CREATE TABLE `cash_box_account_currency` (
`currency_id` TINYINT UNSIGNED NOT NULL,
`cash_box_id` MEDIUMINT UNSIGNED NOT NULL,
`account_id` INT UNSIGNED NOT NULL,
`transfer_account_id` INT UNSIGNED NOT NULL,
`transfer_account_id` INT UNSIGNED DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `cash_box_account_currency_1` (`currency_id`, `cash_box_id`, `account_id`),
UNIQUE KEY `cash_box_account_currency_2` (`currency_id`, `cash_box_id`, `transfer_account_id`),
Expand Down

0 comments on commit 52a25ce

Please sign in to comment.