mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for pp cc
This commit is contained in:
parent
3b9f1e55fd
commit
f45c476d5b
@ -185,13 +185,6 @@ class PaymentMethod
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (($this->client->getSetting('use_credits_payment') == 'option' || $this->client->getSetting('use_credits_payment') == 'always') && $this->client->service()->getCreditBalance() > 0) {
|
if (($this->client->getSetting('use_credits_payment') == 'option' || $this->client->getSetting('use_credits_payment') == 'always') && $this->client->service()->getCreditBalance() > 0) {
|
||||||
// Show credits as only payment option if both statements are true. //?this does not really make sense as it does nothing....
|
|
||||||
// if (
|
|
||||||
// $this->client->service()->getCreditBalance() > $this->amount
|
|
||||||
// && $this->client->getSetting('use_credits_payment') == 'always') {
|
|
||||||
// $payment_urls = [];
|
|
||||||
// }
|
|
||||||
|
|
||||||
$this->payment_urls[] = [
|
$this->payment_urls[] = [
|
||||||
'label' => ctrans('texts.apply_credit'),
|
'label' => ctrans('texts.apply_credit'),
|
||||||
'company_gateway_id' => CompanyGateway::GATEWAY_CREDIT,
|
'company_gateway_id' => CompanyGateway::GATEWAY_CREDIT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user