mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Qual: Fix ci, PHPdoc fk_website needs to match default value
# Qual: Fix ci, PHPdoc fk_website needs to match default value Correct doctype for new $fk_website in getCustomerAccount. Also made definition of type for $status more strict.
This commit is contained in:
parent
23f2af1bce
commit
89f040c69e
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (C) 2015 Florian Henry <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* 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<string,mixed> $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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user