Add translation for IBAN Valid or not

This commit is contained in:
frederic34
2015-02-17 17:02:38 +01:00
parent 376eadd22c
commit f652cf4e97
3 changed files with 13 additions and 3 deletions

View File

@@ -245,7 +245,15 @@ if (($_GET["id"] || $_GET["ref"]) && $action != 'edit')
if ($account->getCountryCode() == 'IN') $bickey="SWIFT";
print '<tr><td valign="top">'.$langs->trans($ibankey).'</td>';
print '<td colspan="3">'.$account->iban.'</td></tr>';
print '<td colspan="3">'.$account->iban.'&nbsp;';
if (! empty($account->iban)) {
if (! checkIbanForAccount($account)) {
print img_picto($langs->trans("IbanNotValid"),'warning');
} else {
print img_picto($langs->trans("IbanValid"),'info');
}
}
print '</td></tr>';
print '<tr><td valign="top">'.$langs->trans($bickey).'</td>';
print '<td colspan="3">'.$account->bic.'</td></tr>';

View File

@@ -33,6 +33,8 @@ AllTime=From start
Reconciliation=Reconciliation
RIB=Bank Account Number
IBAN=IBAN number
IbanValid=Valid IBAN
IbanNotValid=Not Valid IBAN
BIC=BIC/SWIFT number
StandingOrders=Standing orders
StandingOrder=Standing order

View File

@@ -296,9 +296,9 @@ if ($socid && $action != 'edit' && $action != "create")
print '<td colspan="4">'.$account->iban . '&nbsp;';
if (! empty($account->iban)) {
if (! checkIbanForAccount($account)) {
print img_picto($langs->trans("NotValid"),'warning');
print img_picto($langs->trans("IbanNotValid"),'warning');
} else {
print img_picto($langs->trans("IsValid"),'info');
print img_picto($langs->trans("IbanValid"),'info');
}
}
print '</td></tr>';