From 7c29b2421d7541f4ca041fe5b901dc48d4e7f6be Mon Sep 17 00:00:00 2001 From: Thomas Negre Date: Thu, 24 Feb 2022 09:52:41 +0100 Subject: [PATCH] only display SEPA XML option at account creation if module payment by bank transfer is enabled --- htdocs/compta/bank/card.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php index 40d3cab3616..f8cc88e1be4 100644 --- a/htdocs/compta/bank/card.php +++ b/htdocs/compta/bank/card.php @@ -539,10 +539,12 @@ if ($action == 'create') { print ''.$langs->trans($bickey).''; print ''; - print ''.$langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformation").''; - print ' '; - print img_picto($langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformationHelp"), 'info'); - print ''; + if ($conf->paymentbybanktransfer->enabled) { + print ''.$langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformation").''; + print ' '; + print img_picto($langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformationHelp"), 'info'); + print ''; + } print ''.$langs->trans("BankAccountDomiciliation").''; print '