From 33a2be35fbcb28fdd2595abcd56a7a5f003419e8 Mon Sep 17 00:00:00 2001
From: sonikf <93765174+sonikf@users.noreply.github.com>
Date: Wed, 11 Dec 2024 10:16:05 +0200
Subject: [PATCH 01/17] Fix trans
---
htdocs/langs/en_US/admin.lang | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index 90e30555733..3a7196da08f 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -2144,10 +2144,10 @@ MAIN_PDF_NO_RECIPENT_FRAME=Hide borders on recipient address frame
MAIN_PDF_HIDE_CUSTOMER_CODE=Hide customer code
MAIN_PDF_HIDE_CUSTOMER_ACCOUNTING_CODE=Hide customer accounting code
MAIN_PDF_HIDE_SENDER_NAME=Hide sender/company name in address block
-TERMSOFSALE=Conditions de vente
-MAIN_PDF_ADD_TERMSOFSALE_PROPAL=Add the conditions of sale after the proposal
-MAIN_PDF_ADD_TERMSOFSALE_ORDER=Add the conditions of sale after the order
-MAIN_PDF_ADD_TERMSOFSALE_INVOICE=Add the conditions of sale after the invoice
+TERMSOFSALE=Terms and conditions of sale
+MAIN_PDF_ADD_TERMSOFSALE_PROPAL=Add the terms and conditions of sale after the proposal
+MAIN_PDF_ADD_TERMSOFSALE_ORDER=Add the terms and conditions of sale after the order
+MAIN_PDF_ADD_TERMSOFSALE_INVOICE=Add the terms and conditions of sale after the invoice
PROPOSAL_PDF_HIDE_PAYMENTTERM=Hide payments conditions
PROPOSAL_PDF_HIDE_PAYMENTMODE=Hide payment mode
MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING=Add a hidden markup into the signature area to allow electronic signature tool to reuse it. May be used by external tools or in the future by the online signature feature.
@@ -2582,7 +2582,7 @@ DolibarrStandardCaptcha=A native captcha generated by Dolibarr
SALES_ORDER_SHOW_SHIPPING_ADDRESS=Show shipping address
SALES_ORDER_SHOW_SHIPPING_ADDRESSMore=Compulsory indication in some countries (France, ...)
PDF_INVOICE_SHOW_VAT_ANALYSIS=Show vat analysis per rate
-MaxNbOfRecordOnListIsOk=You have a max size for lists is set to %s lines. This is a good value.
+MaxNbOfRecordOnListIsOk=You have a max size for lists set to %s lines. This is a good value.
YouHaveALargeAmountOfRecordOnLists=You have a default max size for lists set to %s lines. This is a large value that need scrolling to see all answers. It is better to have a value lower than %s and use pagination to see record over this number. Change this in menu Home - Setup - Display.
RoundBorders=Round borders
CheckIfModuleIsNotBlackListed=Block install for modules found into the Remote blacklist
@@ -2593,7 +2593,7 @@ SensitiveData=Sensitive data
ToolToDecryptAString=Tool to decrypt a string
Decrypt=Decrypt
FilesIntegrityDesc=If you want to check the integrity of files instead of database, you can do it by using this tool.
-AttributeCodeHelp=A code of your choice (without special char and space) to identify the property. Note that if an object B is created from an existing object A that has a different type (for example creation of an invoice from an order), the value of the complementary attributes of A are also copied into the complementary attributes of B when the code of the attribute is the same.
+AttributeCodeHelp=A code of your choice (without special chars and spaces) to identify the property. Note that if an object B is created from an existing object A that has a different type (for example creation of an invoice from an order), the value of the complementary attributes of A are also copied into the complementary attributes of B when the code of the attribute is the same.
ThereIsMoreThanXAnswers=There is more than %s answers with your filter. Please add more filters...
-PdfAddTermOfSaleHelp=Upload the condition of sales from file input at the bottom of this setup page
-WarningOnlineSignature=Please note that this function allows a person (customer, supplier...) to insert, online, the image of his signature in the PDF document. As for a handwritten signature, such a signature can be made by anyone and does not have the same legal value as a legal electronic signature system going through a paying trusted third party. If you need this level of security, you can contact an integrator for more information or check for addons on www.dolistore.org.
+PdfAddTermOfSaleHelp=You can upload the terms and conditions of sale file at the bottom of this setup page
+WarningOnlineSignature=Please note that this function allows a person (customer, supplier...) to insert, online, the image of his signature in the PDF document. As for a handwritten signature, such a signature can be made by anyone and might not have the same legal value as a legal electronic signature system going through an authorized trusted third party. If you need this level of security, you can contact an integrator for more information or check for addons on www.dolistore.org.
From 5591e3a8c0e3c3c91dacac139e4c6dbd3c381b01 Mon Sep 17 00:00:00 2001
From: sonikf <93765174+sonikf@users.noreply.github.com>
Date: Wed, 11 Dec 2024 14:19:22 +0200
Subject: [PATCH 02/17] Fix trans
---
htdocs/langs/en_US/errors.lang | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang
index 0e6576f3176..485917e7d86 100644
--- a/htdocs/langs/en_US/errors.lang
+++ b/htdocs/langs/en_US/errors.lang
@@ -344,8 +344,8 @@ ErrorStartHourIsNull=Start date field cannot be empty
ErrorTooManyLinesToProcessPleaseUseAMoreSelectiveFilter=Too many lines to process. Please use a more selective filter.
ErrorEmptyValueForQty=Quantity cannot be zero.
ErrorNoCloneWithoutName=The new user must have a name
-ErrorNoCloneWithoutEmail=The new user must have a email
-ErrorUserClone=Error when clone categories user
+ErrorNoCloneWithoutEmail=The new user must have an email
+ErrorUserClone=Error in user clone categories
ErrorQtyOrderedLessQtyShipped = The quantity ordered cannot be less than the quantity shipped.
ErrorVariousPaymentOnBankAccountWithADifferentCurrencyNotYetSupported=Error, creating a various payment on a bank account with a currency different than the currency of the company is not yet supported.
ErrorStreamMustBeEnabled=The PHP stream %s is not available. Check your PHP modules and Dolibarr parameter $dolibarr_main_stream_to_disable.
From f2430b0d7f31945fc1abcc203e2070957aa900ee Mon Sep 17 00:00:00 2001
From: sonikf <93765174+sonikf@users.noreply.github.com>
Date: Thu, 12 Dec 2024 10:42:03 +0200
Subject: [PATCH 03/17] Fix space
---
htdocs/langs/en_US/mails.lang | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/langs/en_US/mails.lang b/htdocs/langs/en_US/mails.lang
index c2a7d07b030..b7ca6c62f19 100644
--- a/htdocs/langs/en_US/mails.lang
+++ b/htdocs/langs/en_US/mails.lang
@@ -32,7 +32,7 @@ NewMailing=New mass Email
NewSMSing=New smsing
EditMailing=Edit mass Email
ResetMailing=Resend mass Email
-ConfirmResetMailingTargetMassaction=Confirmation of the reset of targets statusin error
+ConfirmResetMailingTargetMassaction=Confirmation of the reset of targets status in error
ResetMailingTargetMassaction=Reset status in error
DeleteMailing=Delete mass Email
PreviewMailing=Preview mass Email
From c2c3f2ff45687e0e9ecdf7ce1d723c59d81bba08 Mon Sep 17 00:00:00 2001
From: Christophe Battarel
Date: Thu, 12 Dec 2024 16:47:31 +0100
Subject: [PATCH 04/17] FIX to have two lists with total on same screen
---
htdocs/core/tpl/list_print_total.tpl.php | 77 ++++++++++++------------
1 file changed, 40 insertions(+), 37 deletions(-)
diff --git a/htdocs/core/tpl/list_print_total.tpl.php b/htdocs/core/tpl/list_print_total.tpl.php
index 3e6af0c8a20..d79d844484c 100644
--- a/htdocs/core/tpl/list_print_total.tpl.php
+++ b/htdocs/core/tpl/list_print_total.tpl.php
@@ -23,6 +23,46 @@
*/
'@phan-var-force array{nbfield:int,type?:array,pos?:array,val?:array} $totalarray';
+if (!function_exists('printTotalValCell')) { // allow two list with total on same screen
+
+ /** print a total cell value according to its type
+ *
+ * @param string $type of field (duration, string..)
+ * @param string $val the value to display
+ *
+ * @return void (direct print)
+ */
+ function printTotalValCell($type, $val)
+ {
+ // if $totalarray['type'] not present we consider it as number
+ if (empty($type)) {
+ $type = 'real';
+ }
+ switch ($type) {
+ case 'duration':
+ print '
';
+ break;
+ }
+ }
+}
+
// Move fields of totalizable into the common array pos and val
if (!empty($totalarray['totalizable']) && is_array($totalarray['totalizable'])) {
foreach ($totalarray['totalizable'] as $keytotalizable => $valtotalizable) {
@@ -107,40 +147,3 @@ if (isset($totalarray['pos'])) {
}
//print '';
}
-
-/** print a total cell value according to its type
- *
- * @param string $type of field (duration, string..)
- * @param string $val the value to display
- *
- * @return void (direct print)
- */
-function printTotalValCell($type, $val)
-{
- // if $totalarray['type'] not present we consider it as number
- if (empty($type)) {
- $type = 'real';
- }
- switch ($type) {
- case 'duration':
- print '
';
diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php
index 00a158952f0..dda8647e791 100644
--- a/htdocs/blockedlog/class/blockedlog.class.php
+++ b/htdocs/blockedlog/class/blockedlog.class.php
@@ -902,12 +902,10 @@ class BlockedLog
*/
public function create($user, $forcesignature = '')
{
- global $conf, $langs, $hookmanager;
+ global $conf, $langs;
$langs->load('blockedlog');
- $error = 0;
-
// Clean data
$this->amounts = (float) $this->amounts;
@@ -942,9 +940,9 @@ class BlockedLog
$this->db->begin();
- $previoushash = $this->getPreviousHash(1, 0); // This get last record and lock database until insert is done
+ $previoushash = $this->getPreviousHash(1, 0); // This get last record and lock database until insert is done and transaction closed
- $keyforsignature = $this->buildKeyForSignature();
+ $keyforsignature = $this->buildKeyForSignature(); // All the information for the has (meta data + data saved)
include_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
diff --git a/htdocs/langs/en_US/blockedlog.lang b/htdocs/langs/en_US/blockedlog.lang
index 75ab23f6b73..9b74b8a787c 100644
--- a/htdocs/langs/en_US/blockedlog.lang
+++ b/htdocs/langs/en_US/blockedlog.lang
@@ -7,7 +7,7 @@ BrowseBlockedLog=Unalterable logs
ShowAllFingerPrintsMightBeTooLong=Show all archived logs (might be long)
ShowAllFingerPrintsErrorsMightBeTooLong=Show all non-valid archive logs (might be long)
DownloadBlockChain=Download fingerprints
-KoCheckFingerprintValidity=Archived log entry is not valid. It means someone (a hacker?) has modified some data of this record after it was recorded, or has erased the previous archived record (check that line with previous # exists) or has modified checksum of the previous record.
+KoCheckFingerprintValidity=Archived log entry is not valid. It means someone (a hacker?) has modified some data of this record after it was recorded, OR has erased the previous archived record (check that the line with previous # exists) OR has modified the checksum of the previous record.
OkCheckFingerprintValidity=Archived log record is valid. The data on this line was not modified and the entry follows the previous one.
OkCheckFingerprintValidityButChainIsKo=Archived log seems valid compared to previous one but the chain was corrupted previously.
AddedByAuthority=Stored into remote authority
From 837fadcc7a23d83c2f1662b4ceb81a4bdfe56cad Mon Sep 17 00:00:00 2001
From: "Laurent Destailleur (aka Eldy)"
Date: Fri, 13 Dec 2024 12:53:55 +0100
Subject: [PATCH 13/17] Fix filter on event type
---
htdocs/blockedlog/admin/blockedlog_list.php | 7 +++--
htdocs/blockedlog/class/blockedlog.class.php | 32 ++++++++++++--------
2 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php
index 71178aff819..376120d7981 100644
--- a/htdocs/blockedlog/admin/blockedlog_list.php
+++ b/htdocs/blockedlog/admin/blockedlog_list.php
@@ -80,7 +80,7 @@ $search_end = -1;
if (GETPOST('search_endyear') != '') {
$search_end = dol_mktime(23, 59, 59, $search_endmonth, $search_endday, $search_endyear);
}
-$search_code = GETPOST('search_code', 'alpha');
+$search_code = GETPOST('search_code', 'array:alpha');
$search_ref = GETPOST('search_ref', 'alpha');
$search_amount = GETPOST('search_amount', 'alpha');
@@ -138,7 +138,7 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
$search_fk_user = '';
$search_start = -1;
$search_end = -1;
- $search_code = '';
+ $search_code = array();
$search_ref = '';
$search_amount = '';
$search_showonlyerrors = 0;
@@ -496,7 +496,8 @@ print '
';
// Ref
diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php
index dda8647e791..b970612e1c5 100644
--- a/htdocs/blockedlog/class/blockedlog.class.php
+++ b/htdocs/blockedlog/class/blockedlog.class.php
@@ -1141,17 +1141,17 @@ class BlockedLog
/**
* Return array of log objects (with criteria)
*
- * @param string $element element to search
- * @param int $fk_object id of object to search
- * @param int<0,max> $limit max number of element, 0 for all
- * @param string $sortfield sort field
- * @param string $sortorder sort order
- * @param int $search_fk_user id of user(s)
- * @param int $search_start start time limit
- * @param int $search_end end time limit
- * @param string $search_ref search ref
- * @param string $search_amount search amount
- * @param string $search_code search code
+ * @param string $element element to search
+ * @param int $fk_object id of object to search
+ * @param int<0,max> $limit max number of element, 0 for all
+ * @param string $sortfield sort field
+ * @param string $sortorder sort order
+ * @param int $search_fk_user id of user(s)
+ * @param int $search_start start time limit
+ * @param int $search_end end time limit
+ * @param string $search_ref search ref
+ * @param string $search_amount search amount
+ * @param string|array $search_code search code
* @return BlockedLog[]|int<-2,-1> Array of object log or <0 if error
*/
public function getLog($element, $fk_object, $limit = 0, $sortfield = '', $sortorder = '', $search_fk_user = -1, $search_start = -1, $search_end = -1, $search_ref = '', $search_amount = '', $search_code = '')
@@ -1194,8 +1194,14 @@ class BlockedLog
if ($search_amount != '') {
$sql .= natural_search("amounts", $search_amount, 1);
}
- if ($search_code != '' && $search_code != '-1') {
- $sql .= natural_search("action", $search_code, 3);
+ if (is_array($search_code)) {
+ if (!empty($search_code)) {
+ $sql .= natural_search("action", implode(',', $search_code), 3);
+ }
+ } else {
+ if ($search_code != '' && $search_code != '-1') {
+ $sql .= natural_search("action", $search_code, 3);
+ }
}
$sql .= $this->db->order($sortfield, $sortorder);
From 738abd9d5cb2ec7e1a1efc4bae8a1f25167533c8 Mon Sep 17 00:00:00 2001
From: "Laurent Destailleur (aka Eldy)"
Date: Fri, 13 Dec 2024 13:03:26 +0100
Subject: [PATCH 14/17] Fix missing unit price in the unalterable log
---
htdocs/blockedlog/class/blockedlog.class.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php
index b970612e1c5..eafe04365f7 100644
--- a/htdocs/blockedlog/class/blockedlog.class.php
+++ b/htdocs/blockedlog/class/blockedlog.class.php
@@ -543,7 +543,13 @@ class BlockedLog
$lineid++;
foreach ($tmpline as $keyline => $valueline) {
if (!in_array($keyline, array(
- 'ref', 'multicurrency_code', 'multicurrency_total_ht', 'multicurrency_total_tva', 'multicurrency_total_ttc', 'qty', 'product_type', 'product_label', 'vat_src_code', 'tva_tx', 'info_bits', 'localtax1_tx', 'localtax2_tx', 'total_ht', 'total_tva', 'total_ttc', 'total_localtax1', 'total_localtax2'
+ 'ref', 'product_type', 'product_label',
+ 'qty',
+ 'subprice',
+ 'vat_src_code', 'tva_tx', 'localtax1_tx', 'localtax2_tx',
+ 'total_ht', 'total_tva', 'total_ttc', 'total_localtax1', 'total_localtax2',
+ 'multicurrency_code', 'multicurrency_total_ht', 'multicurrency_total_tva', 'multicurrency_total_ttc',
+ 'info_bits', 'special_code',
))) {
continue; // Discard if not into a dedicated list
}
From 5da555e7eb1764bf11cb4fb3935a4d8ecb8f702c Mon Sep 17 00:00:00 2001
From: "Laurent Destailleur (aka Eldy)"
Date: Fri, 13 Dec 2024 13:05:42 +0100
Subject: [PATCH 15/17] Trans
---
htdocs/blockedlog/admin/blockedlog_list.php | 6 ++++--
htdocs/langs/en_US/blockedlog.lang | 6 +++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php
index 376120d7981..01cb2c58f1c 100644
--- a/htdocs/blockedlog/admin/blockedlog_list.php
+++ b/htdocs/blockedlog/admin/blockedlog_list.php
@@ -545,9 +545,9 @@ print getTitleFieldOfList($langs->trans('Author'), 0, $_SERVER["PHP_SELF"], 'use
print getTitleFieldOfList($langs->trans('Action'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, '')."\n";
print getTitleFieldOfList($langs->trans('Ref'), 0, $_SERVER["PHP_SELF"], 'ref_object', '', $param, '', $sortfield, $sortorder, '')."\n";
print getTitleFieldOfList($langs->trans('Amount'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'right ')."\n";
-print getTitleFieldOfList($langs->trans('DataOfArchivedEvent'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ', 0, $langs->trans('DataOfArchivedEventHelp').' '.$langs->trans('DataOfArchivedEventHelp2'), 1)."\n";
+print getTitleFieldOfList($langs->trans('DataOfArchivedEvent'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ', 0, $langs->trans('DataOfArchivedEventHelp'), 1)."\n";
print getTitleFieldOfList($langs->trans('Fingerprint'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, '')."\n";
-print getTitleFieldOfList($langs->trans('Status'), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
+print getTitleFieldOfList($form->textwithpicto($langs->trans('Status'), $langs->trans('DataOfArchivedEventHelp2')), 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
//print getTitleFieldOfList('', 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
print getTitleFieldOfList('', 0, $_SERVER["PHP_SELF"], '', '', $param, '', $sortfield, $sortorder, '')."\n";
// Action column
@@ -671,6 +671,8 @@ if (is_array($blocks)) {
} else {
//print $form->textwithpicto('', $langs->trans('KoCheckFingerprintValidity'));
}
+ } else {
+ //print $form->textwithpicto('', $langs->trans('DataOfArchivedEventHelp2'));
}
if (getDolGlobalString('BLOCKEDLOG_USE_REMOTE_AUTHORITY') && getDolGlobalString('BLOCKEDLOG_AUTHORITY_URL')) {
diff --git a/htdocs/langs/en_US/blockedlog.lang b/htdocs/langs/en_US/blockedlog.lang
index 9b74b8a787c..3b399063ad2 100644
--- a/htdocs/langs/en_US/blockedlog.lang
+++ b/htdocs/langs/en_US/blockedlog.lang
@@ -18,9 +18,9 @@ BlockedlogInfoDialog=Log Details
ListOfTrackedEvents=List of tracked events
Fingerprint=Fingerprint
DownloadLogCSV=Export archived logs (CSV)
-DataOfArchivedEvent=Full data of archived event
-DataOfArchivedEventHelp=This field contains the unalterable and structured data that was archived on real time. Even if some parent business event could have been purged or modified, the data archived here is the original data, and it can't be modified.
-DataOfArchivedEventHelp2=Its integrity is guaranteed if the status of the line is OK
+DataOfArchivedEvent=Complementary data of archived event
+DataOfArchivedEventHelp=This field contains the complementary data that was archived on real time. Even if some parent business event could have been purged or modified, the data archived here is the original data, and it can't be modified.
+DataOfArchivedEventHelp2=The integrity of data on each lines is guaranteed if the status of the line is OK
ImpossibleToReloadObject=Original object (type %s, id %s) not linked (see 'Full datas' column to get unalterable saved data)
BlockedLogAreRequiredByYourCountryLegislation=Unalterable Logs module may be required by the legislation of your country. Disabling this module may render any future transactions invalid with respect to the law and the use of legal software as they can not be validated by a tax audit.
BlockedLogActivatedBecauseRequiredByYourCountryLegislation=Unalterable Logs module was activated because of the legislation of your country. Disabling this module may render any future transactions invalid with respect to the law and the use of legal software as they cannot be validated by a tax audit.
From 10698ebf2a49e6b88685dc3c0f2186caf62e5309 Mon Sep 17 00:00:00 2001
From: "Laurent Destailleur (aka Eldy)"
Date: Fri, 13 Dec 2024 14:13:17 +0100
Subject: [PATCH 16/17] Doc
---
htdocs/adherents/class/adherent.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php
index ffe840e9483..26833536fee 100644
--- a/htdocs/adherents/class/adherent.class.php
+++ b/htdocs/adherents/class/adherent.class.php
@@ -374,7 +374,7 @@ class Adherent extends CommonObject
*/
const STATUS_VALIDATED = 1;
/**
- * Resiliated
+ * Resiliated (membership end and was not renew)
*/
const STATUS_RESILIATED = 0;
/**
From 3bb56e6dd11e87e63d3c8be8da50e39f9cd378af Mon Sep 17 00:00:00 2001
From: "Laurent Destailleur (aka Eldy)"
Date: Fri, 13 Dec 2024 14:25:44 +0100
Subject: [PATCH 17/17] Fix phpunit
---
htdocs/blockedlog/class/blockedlog.class.php | 24 ++++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php
index eafe04365f7..f5b1f9ce64d 100644
--- a/htdocs/blockedlog/class/blockedlog.class.php
+++ b/htdocs/blockedlog/class/blockedlog.class.php
@@ -1147,18 +1147,18 @@ class BlockedLog
/**
* Return array of log objects (with criteria)
*
- * @param string $element element to search
- * @param int $fk_object id of object to search
- * @param int<0,max> $limit max number of element, 0 for all
- * @param string $sortfield sort field
- * @param string $sortorder sort order
- * @param int $search_fk_user id of user(s)
- * @param int $search_start start time limit
- * @param int $search_end end time limit
- * @param string $search_ref search ref
- * @param string $search_amount search amount
- * @param string|array $search_code search code
- * @return BlockedLog[]|int<-2,-1> Array of object log or <0 if error
+ * @param string $element element to search
+ * @param int $fk_object id of object to search
+ * @param int<0,max> $limit max number of element, 0 for all
+ * @param string $sortfield sort field
+ * @param string $sortorder sort order
+ * @param int $search_fk_user id of user(s)
+ * @param int $search_start start time limit
+ * @param int $search_end end time limit
+ * @param string $search_ref search ref
+ * @param string $search_amount search amount
+ * @param string|array $search_code search code
+ * @return BlockedLog[]|int<-2,-1> Array of object log or <0 if error
*/
public function getLog($element, $fk_object, $limit = 0, $sortfield = '', $sortorder = '', $search_fk_user = -1, $search_start = -1, $search_end = -1, $search_ref = '', $search_amount = '', $search_code = '')
{