diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index de2c45381cb..7714c02630e 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -1116,14 +1116,14 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
}
print ''.img_picto($langs->trans('ShowInStripe').' - Customer and Publishable key = '.$companypaymentmodetemp->stripe_account, 'globe').' ';
}
- print $companypaymentmodetemp->stripe_card_ref;
+ print dol_escape_htmltag($companypaymentmodetemp->stripe_card_ref);
print '';
// Type
print '
';
print img_credit_card($companypaymentmodetemp->type);
print ' | ';
// Information (Owner, ...)
- print '';
+ print ' | ';
if ($companypaymentmodetemp->proprio) {
print ''.$companypaymentmodetemp->proprio.' ';
}
@@ -1133,7 +1133,9 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
if ($companypaymentmodetemp->exp_date_month || $companypaymentmodetemp->exp_date_year) {
print ' - '.sprintf("%02d", $companypaymentmodetemp->exp_date_month).'/'.$companypaymentmodetemp->exp_date_year.'';
}
- print ' | ';
+ print ' | ';
+ // Country
+ print '';
if ($companypaymentmodetemp->country_code) {
$img = picto_from_langcode($companypaymentmodetemp->country_code);
print $img ? $img.' ' : '';
@@ -1152,12 +1154,13 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print img_picto($langs->trans("Default"), 'on');
}
print ' | ';
- print '';
if (empty($companypaymentmodetemp->stripe_card_ref)) {
- print $langs->trans("Local");
+ $s = $langs->trans("Local");
} else {
- print $langs->trans("LocalAndRemote");
+ $s = $langs->trans("LocalAndRemote");
}
+ print ' | ';
+ print $s;
print ' | ';
print '';
print dol_print_date($companypaymentmodetemp->tms, 'dayhour');
@@ -1167,7 +1170,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
$reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Action column
- print ' | ';
+ print ' | ';
if ($permissiontoaddupdatepaymentinformation) {
if ($stripecu && empty($companypaymentmodetemp->stripe_card_ref)) {
print ''.$langs->trans("CreateCardOnStripe").'';
@@ -1452,7 +1455,6 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
// Bank name
print ' | '.dol_escape_htmltag($rib->bank).' | ';
// Account number
- print '';
$string = '';
foreach ($rib->getFieldsToShow() as $val) {
if ($val == 'BankCode') {
@@ -1478,7 +1480,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
$string .= ' '.img_picto($langs->trans("ValueIsValid"), 'info');
}
}
-
+ print ' | ';
print $string;
print ' | ';
// IBAN