R35111-2 Party Bank Account - Only One Default Bank Account

Code R35111-2
Entity General.Contacts.PartyBankAccounts Entity
Name OnlyOneDefaultBankAccount
Attribute IsDefault
Layer Back-End
Events Commit
Modify NO
Action If Party != Null and 'PartyBankAccount.IsDefault = True' then Validate that:

There is only one PartyBankAccount for this Party, where 'Is Default' is set to True.
Description The rule prevents having multiple default bank accounts. If more than one 'Party Bank Account' is marked as 'Is Default', an error is thrown upon commit.
Message For party '[PartyBankAccount.Party]' only one default bank account is allowed.

Please mark only one party bank account as default and try again.
Introduced In Version v.24
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.