Fixes 2998

This commit is contained in:
James Cole
2020-01-21 17:58:31 +01:00
parent fd24fe35a6
commit 4f86aaf198

View File

@@ -141,7 +141,7 @@ class UniqueIban implements Rule
// may appear once in revenue accounts
$maxCounts[AccountType::REVENUE] = 1;
}
if ('revenue' === $this->expectedType || AccountType::EXPENSE === $this->expectedType) {
if ('revenue' === $this->expectedType || AccountType::REVENUE === $this->expectedType) {
// IBAN should be unique amongst revenue and asset accounts.
// may appear once in expense accounts
$maxCounts[AccountType::EXPENSE] = 1;