Skip to content

Commit

Permalink
Trans
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 13, 2018
1 parent da617f7 commit fe68e8a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion htdocs/langs/en_US/stripe.lang
Expand Up @@ -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
StripePaymentModes=Stripe payment modes
LocalID=Local ID
StripeID=Stripe ID
16 changes: 12 additions & 4 deletions htdocs/societe/paymentmodes.php
Expand Up @@ -626,8 +626,16 @@
}
else print img_warning().' <font class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).'</font>';
print '</td>';
// Default
print '<td align="center">';
print yn($obj->default_rib);
if (empty($obj->default_rib))
{
//print '<a href="' . DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$object->id.'&source='.$src->id.'&action=setassourcedefault">';
print img_picto($langs->trans("Default"),'off');
//print '</a>';
} else {
print img_picto($langs->trans("Default"),'on');
}
print '</td>';
print '<td>';
if (empty($obj->stripe_card_ref)) print $langs->trans("Local");
Expand Down Expand Up @@ -734,9 +742,9 @@
print '<td align="center" width="50">';
if (($customerstripe->default_source != $src->id))
{
print '<a href="' . DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$object->id.'&source='.$src->id.'&action=setassourcedefault">';
print img_picto($langs->trans("Default"),'off');
print '</a>';
print '<a href="' . DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$object->id.'&source='.$src->id.'&action=setassourcedefault">';
print img_picto($langs->trans("Default"),'off');
print '</a>';
} else {
print img_picto($langs->trans("Default"),'on');
}
Expand Down

0 comments on commit fe68e8a

Please sign in to comment.