Merge pull request #14606 from bafbes/abb120137

new : option to hide complementary actions on member subscription
This commit is contained in:
Laurent Destailleur 2020-09-02 18:10:30 +02:00 committed by GitHub
commit ab938f2299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -854,7 +854,7 @@ if ($rowid > 0) {
print '"></td></tr>';
// Complementary action
if (!empty($conf->banque->enabled) || !empty($conf->facture->enabled)) {
if ((!empty($conf->banque->enabled) || !empty($conf->facture->enabled)) && empty($conf->global->ADHERENT_SUBSCRIPTION_HIDECOMPLEMENTARYACTIONS)) {
$company = new Societe($db);
if ($object->fk_soc) {
$result = $company->fetch($object->fk_soc);