mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:44:32 -04:00
Support relabeling 'Credit Card'
This commit is contained in:
parent
c5cac623a7
commit
acc6a13126
@ -224,6 +224,7 @@ class Account extends Eloquent
|
|||||||
|
|
||||||
public static $customLabels = [
|
public static $customLabels = [
|
||||||
'balance_due',
|
'balance_due',
|
||||||
|
'credit_card',
|
||||||
'description',
|
'description',
|
||||||
'discount',
|
'discount',
|
||||||
'due_date',
|
'due_date',
|
||||||
|
@ -938,8 +938,12 @@ class BasePaymentDriver
|
|||||||
$label = e($this->accountGateway->getConfigField('name'));
|
$label = e($this->accountGateway->getConfigField('name'));
|
||||||
} else {
|
} else {
|
||||||
$url = $this->paymentUrl($gatewayTypeAlias);
|
$url = $this->paymentUrl($gatewayTypeAlias);
|
||||||
|
if ($custom = $this->account()->getLabel($gatewayTypeAlias)) {
|
||||||
|
$label = $custom;
|
||||||
|
} else {
|
||||||
$label = trans("texts.{$gatewayTypeAlias}");
|
$label = trans("texts.{$gatewayTypeAlias}");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$label .= $this->invoice()->present()->gatewayFee($gatewayTypeId);
|
$label .= $this->invoice()->present()->gatewayFee($gatewayTypeId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user