2
0
forked from Wavyzz/dolibarr

NEW Created FormBank::getIBANLabel function to get the label of "IBAN" depending on bank account country

This commit is contained in:
Marcos García de La Fuente
2016-03-19 19:39:18 +01:00
parent ba4f5c8648
commit 1be9c53b6c
3 changed files with 20 additions and 8 deletions

View File

@@ -749,8 +749,8 @@ function pdf_bank(&$pdf,$outputlangs,$curx,$cury,$account,$onlynumber=0,$default
else if (! $usedetailedbban) $cury+=1;
// Use correct name of bank id according to country
$ibankey="IBANNumber";
if ($account->getCountryCode() == 'IN') $ibankey="IFSC";
$ibankey = FormBank::getIBANLabel($account);
if (! empty($account->iban))
{
//Remove whitespaces to ensure we are dealing with the format we expect