Merge pull request #4855 from marcosgdf/account-oop

NEW Created FormBank::getIBANLabel function to get the label of "IBAN" depending on bank account country
This commit is contained in:
Laurent Destailleur
2016-03-25 17:41:39 +01:00
3 changed files with 22 additions and 8 deletions

View File

@@ -447,9 +447,8 @@ if ($action == 'create')
}
}
}
$ibankey="IBANNumber";
$ibankey = FormBank::getIBANLabel($account);
$bickey="BICNumber";
if ($account->getCountryCode() == 'IN') $ibankey="IFSC";
if ($account->getCountryCode() == 'IN') $bickey="SWIFT";
// IBAN
@@ -711,9 +710,8 @@ else
}
}
$ibankey="IBANNumber";
$ibankey = FormBank::getIBANLabel($account);
$bickey="BICNumber";
if ($account->getCountryCode() == 'IN') $ibankey="IFSC";
if ($account->getCountryCode() == 'IN') $bickey="SWIFT";
print '<tr><td>'.$langs->trans($ibankey).'</td>';
@@ -1000,9 +998,8 @@ else
}
}
$ibankey="IBANNumber";
$ibankey = FormBank::getIBANLabel($account);
$bickey="BICNumber";
if ($account->getCountryCode() == 'IN') $ibankey="IFSC";
if ($account->getCountryCode() == 'IN') $bickey="SWIFT";
// IBAN