From 99072b1289bdc94160de61ebca39b4158f191042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4dlich?= Date: Mon, 3 Mar 2014 22:49:26 +0100 Subject: [PATCH] Fixed rule 000900 --- library/IBAN/Rule/DE/Rule000900.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/IBAN/Rule/DE/Rule000900.php b/library/IBAN/Rule/DE/Rule000900.php index e2cf064..fc816a0 100644 --- a/library/IBAN/Rule/DE/Rule000900.php +++ b/library/IBAN/Rule/DE/Rule000900.php @@ -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(); } }