Show owner of card in list
This commit is contained in:
parent
4b1dd27c5f
commit
c66f9476a8
@ -1095,6 +1095,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
print img_credit_card($companypaymentmodetemp->type);
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
if ($companypaymentmodetemp->proprio) print '<span class="opacitymedium">'.$companypaymentmodetemp->proprio.'</span><br>';
|
||||
if ($companypaymentmodetemp->last_four) print '....'.$companypaymentmodetemp->last_four;
|
||||
if ($companypaymentmodetemp->exp_date_month || $companypaymentmodetemp->exp_date_year) print ' - '.sprintf("%02d", $companypaymentmodetemp->exp_date_month).'/'.$companypaymentmodetemp->exp_date_year.'';
|
||||
print '</td><td>';
|
||||
@ -1210,6 +1211,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
print '<span class="fa fa-university fa-2x fa-fw"></span>';
|
||||
}
|
||||
print'</td>';
|
||||
// Information
|
||||
print '<td valign="middle">';
|
||||
if ($src->object == 'card')
|
||||
{
|
||||
@ -1225,7 +1227,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
}
|
||||
elseif ($src->object == 'source' && $src->type == 'card')
|
||||
{
|
||||
print $src->owner->name.'<br>....'.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
||||
print '<span class="opacitymedium">'.$src->owner->name.'</span><br>....'.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
||||
print '</td><td>';
|
||||
|
||||
if ($src->card->country)
|
||||
@ -1238,7 +1240,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
}
|
||||
elseif ($src->object == 'source' && $src->type == 'sepa_debit')
|
||||
{
|
||||
print 'info sepa';
|
||||
print 'SEPA debit';
|
||||
print '</td><td>';
|
||||
if ($src->sepa_debit->country)
|
||||
{
|
||||
@ -1250,7 +1252,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
}
|
||||
elseif ($src->object == 'payment_method' && $src->type == 'card')
|
||||
{
|
||||
print $src->billing_details->name.'<br>....'.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
||||
print '<span class="opacitymedium">'.$src->billing_details->name.'</span><br>....'.$src->card->last4.' - '.$src->card->exp_month.'/'.$src->card->exp_year.'';
|
||||
print '</td><td>';
|
||||
|
||||
if ($src->card->country)
|
||||
@ -1263,7 +1265,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
}
|
||||
elseif ($src->object == 'payment_method' && $src->type == 'sepa_debit')
|
||||
{
|
||||
print 'info sepa';
|
||||
print 'SEPA debit';
|
||||
print '</td><td>';
|
||||
if ($src->sepa_debit->country)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user