From fe68e8acddef8cdaeb6fb082dbf0c4d204bbcc1d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Mar 2018 22:54:28 +0100 Subject: [PATCH] Trans --- htdocs/langs/en_US/stripe.lang | 4 +++- htdocs/societe/paymentmodes.php | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/htdocs/langs/en_US/stripe.lang b/htdocs/langs/en_US/stripe.lang index b1169eb776d..51aaad35165 100644 --- a/htdocs/langs/en_US/stripe.lang +++ b/htdocs/langs/en_US/stripe.lang @@ -50,4 +50,6 @@ BankAccountForBankTransfer=Bank account for fund payouts StripeAccount=Stripe account StripeChargeList=List of Stripe charges StripeCustomerId=Stripe customer id -StripePaymentModes=Stripe payment modes \ No newline at end of file +StripePaymentModes=Stripe payment modes +LocalID=Local ID +StripeID=Stripe ID \ No newline at end of file diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 845bc3e4c1e..ae446a047d3 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -626,8 +626,16 @@ if ($socid && $action != 'edit' && $action != "create") } else print img_warning().' '.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).''; print ''; + // Default print ''; - print yn($obj->default_rib); + if (empty($obj->default_rib)) + { + //print ''; + print img_picto($langs->trans("Default"),'off'); + //print ''; + } else { + print img_picto($langs->trans("Default"),'on'); + } print ''; print ''; if (empty($obj->stripe_card_ref)) print $langs->trans("Local"); @@ -734,9 +742,9 @@ if ($socid && $action != 'edit' && $action != "create") print ''; if (($customerstripe->default_source != $src->id)) { - print ''; - print img_picto($langs->trans("Default"),'off'); - print ''; + print ''; + print img_picto($langs->trans("Default"),'off'); + print ''; } else { print img_picto($langs->trans("Default"),'on'); }