Skip to content

Commit

Permalink
Банкови сметки: показване на хинт за държавата и в сингъла
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin1012 committed May 27, 2016
1 parent 5885cf5 commit b681805
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions bank/Accounts.class.php
Expand Up @@ -248,16 +248,18 @@ protected static function on_AfterRecToVerbal($mvc, $row, $rec, $fields = array(
{
$row->contragent = cls::get($rec->contragentCls)->getHyperLink($rec->contragentId, TRUE);

if(isset($fields['-list'])){
if($rec->iban) {
$verbalIban = $mvc->getVerbal($rec, 'iban');
if(strpos($rec->iban, '#') === FALSE){
if($rec->iban) {
$verbalIban = $mvc->getVerbal($rec, 'iban');
if(strpos($rec->iban, '#') === FALSE){

$countryCode = iban_Type::getCountryPart($rec->iban);
if ($countryCode) {
$countryCode = iban_Type::getCountryPart($rec->iban);
if ($countryCode) {
$hint = 'Държава|*: ' . drdata_Countries::getCountryName($countryCode, core_Lg::getCurrent());

if(isset($fields['-single'])){
$row->iban = ht::createHint($row->iban, $hint);
} else {
$singleUrl = $mvc->getSingleUrlArray($rec->id);

$hint = 'Държава|*: ' . drdata_Countries::getCountryName($countryCode, core_Lg::getCurrent());
$row->iban = ht::createLink($verbalIban, $singleUrl, NULL, "ef_icon={$mvc->getIcon($rec->id)},title={$hint}");
}
}
Expand Down

0 comments on commit b681805

Please sign in to comment.