From 13cdd5bc45223be38159942a5e63654980d3eea9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 17 Jun 2020 15:42:55 +0200 Subject: [PATCH] FIX #14095 --- htdocs/societe/class/societe.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 2f84ab6c795..e80d433e7e0 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -3064,12 +3064,12 @@ class Societe extends CommonObject // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** - * Returns an accounting code, following the accounting code module. - * May be identical to the one entered or generated automatically. - * To date only the automatic generation is implemented + * Assigns a accounting code from the accounting code module. + * Computed value is stored into this->code_compta or this->code_compta_fournisseur according to $type. + * May be identical to the one entered or generated automatically. Currently, only the automatic generation is implemented. * * @param string $type Type of thirdparty ('customer' or 'supplier') - * @return string Code compta si ok, 0 si aucun, <0 si ko + * @return int 0 if OK, <0 if $type is not valid */ public function get_codecompta($type) {