From 1f9bd2538e59698f045f4ab6b229ac5da656dfe7 Mon Sep 17 00:00:00 2001 From: TuxGasy Date: Sun, 2 Jul 2017 22:20:07 +0200 Subject: [PATCH 1/4] new addMoreBoxStatsCustomer hook --- htdocs/comm/card.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index a51ef902eb62b..0a290af150723 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -604,11 +604,17 @@ if ($link) $boxstat.=''; } + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreBoxStatsCustomer', $parameters, $object, $action); + if(empty($reshook)){ + $boxstat.= $hookmanager->resPrint; + } + $boxstat.=''; $boxstat.=''; $boxstat.=''; - print $boxstat; + print $boxstat; $now=dol_now(); From 67f11103a37caf61e5d1b295d44855f4e7b27071 Mon Sep 17 00:00:00 2001 From: TuxGasy Date: Tue, 4 Jul 2017 21:56:47 +0200 Subject: [PATCH 2/4] fix indent --- htdocs/comm/card.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index 0a290af150723..f46d8060f4cc6 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -604,17 +604,17 @@ if ($link) $boxstat.=''; } - $parameters = array(); - $reshook = $hookmanager->executeHooks('addMoreBoxStatsCustomer', $parameters, $object, $action); - if(empty($reshook)){ - $boxstat.= $hookmanager->resPrint; - } + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreBoxStatsCustomer', $parameters, $object, $action); + if(empty($reshook)){ + $boxstat.= $hookmanager->resPrint; + } $boxstat.=''; $boxstat.=''; $boxstat.=''; - print $boxstat; + print $boxstat; $now=dol_now(); From bec5bde363e5ed22c91ea1aa9a26f18b315da2c0 Mon Sep 17 00:00:00 2001 From: TuxGasy Date: Thu, 6 Jul 2017 12:18:54 +0200 Subject: [PATCH 3/4] Move addMoreBoxStatsCustomer after table tag --- htdocs/comm/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index f46d8060f4cc6..e93bddb2e0bcf 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -604,16 +604,16 @@ if ($link) $boxstat.=''; } + $boxstat.=''; + $boxstat.=''; + $boxstat.=''; + $parameters = array(); $reshook = $hookmanager->executeHooks('addMoreBoxStatsCustomer', $parameters, $object, $action); if(empty($reshook)){ $boxstat.= $hookmanager->resPrint; } - $boxstat.=''; - $boxstat.=''; - $boxstat.=''; - print $boxstat; $now=dol_now(); From f4857af7aa854ba0403976ba4b111a8adb590ae3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Jul 2017 20:31:41 +0200 Subject: [PATCH 4/4] Update card.php --- htdocs/comm/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index e93bddb2e0bcf..4c47432ac99fa 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -604,15 +604,15 @@ if ($link) $boxstat.=''; } - $boxstat.=''; - $boxstat.=''; - $boxstat.=''; - $parameters = array(); $reshook = $hookmanager->executeHooks('addMoreBoxStatsCustomer', $parameters, $object, $action); if(empty($reshook)){ $boxstat.= $hookmanager->resPrint; } + + $boxstat.=''; + $boxstat.=''; + $boxstat.=''; print $boxstat;