mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hide pre payments
This commit is contained in:
parent
2024ea0df8
commit
f5e582f75b
@ -138,9 +138,9 @@ class PortalComposer
|
|||||||
$data[] = ['title' => ctrans('texts.subscriptions'), 'url' => 'client.subscriptions.index', 'icon' => 'calendar'];
|
$data[] = ['title' => ctrans('texts.subscriptions'), 'url' => 'client.subscriptions.index', 'icon' => 'calendar'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(property_exists($this->settings, 'client_initiated_payments') && $this->settings->client_initiated_payments) {
|
if(property_exists($this->settings, 'client_initiated_payments') && $this->settings->client_initiated_payments) {
|
||||||
$data[] = ['title' => ctrans('texts.pre_payment'), 'url' => 'client.pre_payments.index', 'icon' => 'dollar-sign'];
|
$data[] = ['title' => ctrans('texts.pre_payment'), 'url' => 'client.pre_payments.index', 'icon' => 'dollar-sign'];
|
||||||
// }
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ class GoCardlessPaymentDriver extends BaseDriver
|
|||||||
$types[] = GatewayType::DIRECT_DEBIT;
|
$types[] = GatewayType::DIRECT_DEBIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->client->currency()->code === 'EUR') {
|
if (in_array($this->client->currency()->code, ['EUR'])) {
|
||||||
$types[] = GatewayType::SEPA;
|
$types[] = GatewayType::SEPA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user