Skip to content

Commit

Permalink
Fixed rule 000900
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaedl committed Mar 3, 2014
1 parent b3561e8 commit 99072b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/IBAN/Rule/DE/Rule000900.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ class Rule000900 extends \IBAN\Rule\DE\Rule000000
{
public function generateIban()
{
if (strlen($this->bankAccountNumber) == 10) {
if (strlen($this->bankAccountNumber) == 10 && $this->instituteIdentification == '68351976') {
if (substr($this->bankAccountNumber, 0, 4) == '1116') {
$this->bankAccountNumber = '3047' . substr($this->bankAccountNumber, 4);
}
}

$this->instituteIdentification = '68351557';

return parent::generateIban();
}
}

0 comments on commit 99072b1

Please sign in to comment.