This commit is contained in:
Laurent Destailleur 2018-03-13 22:54:28 +01:00
parent da617f7d32
commit fe68e8acdd
2 changed files with 15 additions and 5 deletions

View File

@ -50,4 +50,6 @@ BankAccountForBankTransfer=Bank account for fund payouts
StripeAccount=Stripe account StripeAccount=Stripe account
StripeChargeList=List of Stripe charges StripeChargeList=List of Stripe charges
StripeCustomerId=Stripe customer id StripeCustomerId=Stripe customer id
StripePaymentModes=Stripe payment modes StripePaymentModes=Stripe payment modes
LocalID=Local ID
StripeID=Stripe ID

View File

@ -626,8 +626,16 @@ if ($socid && $action != 'edit' && $action != "create")
} }
else print img_warning().' <font class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).'</font>'; else print img_warning().' <font class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("CompanyCountry")).'</font>';
print '</td>'; print '</td>';
// Default
print '<td align="center">'; 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>';
print '<td>'; print '<td>';
if (empty($obj->stripe_card_ref)) print $langs->trans("Local"); if (empty($obj->stripe_card_ref)) print $langs->trans("Local");
@ -734,9 +742,9 @@ if ($socid && $action != 'edit' && $action != "create")
print '<td align="center" width="50">'; print '<td align="center" width="50">';
if (($customerstripe->default_source != $src->id)) if (($customerstripe->default_source != $src->id))
{ {
print '<a href="' . DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$object->id.'&source='.$src->id.'&action=setassourcedefault">'; 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 img_picto($langs->trans("Default"),'off');
print '</a>'; print '</a>';
} else { } else {
print img_picto($langs->trans("Default"),'on'); print img_picto($langs->trans("Default"),'on');
} }