diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 3e72c33c142..5f0cdb4d4c0 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -833,7 +833,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '
'.$langs->trans('Note').' | ';
print ''.$langs->trans('DateModification').' | ';
// Hook fields
- $parameters=array('arrayfields'=>array(),'param'=>'','sortfield'=>'','sortorder'=>'');
+ $parameters=array('arrayfields'=>array(),'param'=>'','sortfield'=>'','sortorder'=>'', 'linetype'=>'stripetitle');
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Action column
@@ -851,7 +851,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
$companypaymentmodetemp = new CompanyPaymentMode($db);
$sql='SELECT rowid FROM '.MAIN_DB_PREFIX."societe_rib";
- $sql.=" WHERE type in ('card', 'paypal')";
+ $sql.=" WHERE type in ('card')";
$sql.=" AND fk_soc = ".$object->id;
$sql.=" AND status = ".$servicestatus;
@@ -923,7 +923,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print dol_print_date($companypaymentmodetemp->tms, 'dayhour');
print '';
// Fields from hook
- $parameters=array('arrayfields'=>array(), 'obj'=>$obj);
+ $parameters=array('arrayfields'=>array(), 'obj'=>$obj, 'linetype'=>'stripecard');
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Action column
@@ -1052,6 +1052,11 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
//var_dump($src);
print '';
print '';
+ // Fields from hook
+ $parameters=array('arrayfields'=>array(), 'stripesource'=>$src, 'linetype'=>'stripecardremoteonly');
+ $reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $object); // Note that $action and $object may have been modified by hook
+ print $hookmanager->resPrint;
+ // Action column
print '';
if ($user->rights->societe->creer)
{
|