Better test

This commit is contained in:
Laurent Destailleur 2023-03-08 03:19:15 +01:00
parent b682fe728c
commit 0bf62c6426

View File

@ -889,7 +889,7 @@ abstract class CommonInvoice extends CommonObject
{ {
global $conf, $mysoc, $user, $langs; global $conf, $mysoc, $user, $langs;
if ($type != 'bank-transfer' && empty($conf->global->STRIPE_SEPA_DIRECT_DEBIT)) { if ($type != 'bank-transfer' && $type != 'credit-transfer' && empty($conf->global->STRIPE_SEPA_DIRECT_DEBIT)) {
return 0; return 0;
} }
if ($type != 'direct-debit' && empty($conf->global->STRIPE_SEPA_CREDIT_TRANSFER)) { if ($type != 'direct-debit' && empty($conf->global->STRIPE_SEPA_CREDIT_TRANSFER)) {