Fix display only stripe sources for customer

This commit is contained in:
ptibogxiv 2019-08-03 21:17:12 +02:00 committed by GitHub
parent f210e286bd
commit 4ed1ff5b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -822,7 +822,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '<br>'; print '<br>';
// List of Stripe payment modes // List of Stripe payment modes
if (! (empty($conf->stripe->enabled))) if (! (empty($conf->stripe->enabled)) && $object->client)
{ {
$morehtmlright=''; $morehtmlright='';
if (! empty($conf->global->STRIPE_ALLOW_LOCAL_CARD)) if (! empty($conf->global->STRIPE_ALLOW_LOCAL_CARD))
@ -1184,11 +1184,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
} }
print "</table>"; print "</table>";
print "</div>"; print "</div>";
print '<br>';
} }
// List of bank accounts // List of bank accounts
print '<br>';
$morehtmlright= dolGetButtonTitle($langs->trans('Add'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?socid='.$object->id.'&amp;action=create'); $morehtmlright= dolGetButtonTitle($langs->trans('Add'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?socid='.$object->id.'&amp;action=create');