Fix warning

This commit is contained in:
Laurent Destailleur
2023-08-10 11:45:09 +02:00
parent 4f94f898a3
commit 7c3f8a1dfe
2 changed files with 3 additions and 4 deletions

View File

@@ -734,7 +734,7 @@ class AccountingAccount extends CommonObject
* @param FactureLigne|SupplierInvoiceLine $factureDet Facture Det
* @param array $accountingAccount Array of Accounting account
* @param string $type Customer / Supplier
* @return array|int Accounting accounts suggested or < 0 if technical error.
* @return array|int Array of accounting accounts suggested or < 0 if technical error.
* 'suggestedaccountingaccountbydefaultfor'=>Will be used for the label to show on tooltip for account by default on any product
* 'suggestedaccountingaccountfor'=>Is the account suggested for this product
*/
@@ -941,5 +941,7 @@ class AccountingAccount extends CommonObject
return $hookmanager->resArray;
}
}
return -1;
}
}

View File

@@ -143,9 +143,6 @@ $fieldstosearchall = array(
'd.note_public'=>'NotePublic',
'd.note_private'=>'NotePrivate',
);
if ($db->type == 'pgsql') {
unset($fieldstosearchall['d.rowid']);
}
$arrayfields = array(
'd.ref'=>array('label'=>"Ref", 'checked'=>1),