diff --git a/htdocs/societe/class/societeaccount.class.php b/htdocs/societe/class/societeaccount.class.php index 2a6447d6ca1..e97ec89d8fa 100644 --- a/htdocs/societe/class/societeaccount.class.php +++ b/htdocs/societe/class/societeaccount.class.php @@ -4,7 +4,7 @@ * Copyright (C) 2015 Florian Henry * Copyright (C) 2015 Raphaël Doursenaud * Copyright (C) 2024 Frédéric France - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2025 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -261,7 +261,7 @@ class SocieteAccount extends CommonObject } /** - * Clone and object into another one + * Clone an object into another one * * @param User $user User that creates * @param int $fromid Id of object to clone @@ -340,14 +340,14 @@ class SocieteAccount extends CommonObject } /** - * Try to find the external customer id of a thirdparty for another site/system. + * Try to find the external customer id of a third party for another site/system. * - * @param int $id Id of third party - * @param string $site Site (example: 'stripe', '...') - * @param int $status Status (0=test, 1=live, -1=we don't mind) - * @param string $site_account Value to use to identify with account to use on site when site can offer several accounts. For example: 'pk_live_123456' when using Stripe service. - * @param string $fk_website Id website - * @return string Stripe customer ref 'cu_xxxxxxxxxxxxx' or '' + * @param int $id Id of third party + * @param string $site Site (example: 'stripe', '...') + * @param int<-1,1> $status Status (0=test, 1=live, -1=we don't mind) + * @param string $site_account Value to use to identify with account to use on site when site can offer several accounts. For example: 'pk_live_123456' when using Stripe service. + * @param int $fk_website Id website + * @return string Stripe customer ref 'cu_xxxxxxxxxxxxx' or '' * @see getThirdPartyID() */ public function getCustomerAccount($id, $site, $status = 0, $site_account = '', $fk_website = 0) @@ -442,6 +442,7 @@ class SocieteAccount extends CommonObject /** * getTooltipContentArray + * * @param array $params params to construct tooltip data * @since v18 * @return array{picto?:string,ref?:string,refsupplier?:string,label?:string,date?:string,date_echeance?:string,amountht?:string,total_ht?:string,totaltva?:string,amountlt1?:string,amountlt2?:string,amountrevenustamp?:string,totalttc?:string}|array{optimize:string}