Merge pull request #10999 from ptibogxiv/patch-149

Fix: only display stripe customer if customer
This commit is contained in:
Laurent Destailleur 2019-04-11 16:35:21 +02:00 committed by GitHub
commit d975522659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -750,7 +750,6 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
if ($conf->commande->enabled && $user->rights->commande->lire) $elementTypeArray['order']=$langs->transnoentitiesnoconv('Orders');
if ($conf->facture->enabled && $user->rights->facture->lire) $elementTypeArray['invoice']=$langs->transnoentitiesnoconv('Invoices');
if ($conf->contrat->enabled && $user->rights->contrat->lire) $elementTypeArray['contract']=$langs->transnoentitiesnoconv('Contracts');
}
if (! empty($conf->stripe->enabled))
{
@ -786,6 +785,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
}
print '</td></tr>';
}
}
print '</table>';
print '</div>';