This commit is contained in:
Laurent Destailleur 2020-06-17 15:42:55 +02:00
parent 8f4a181380
commit 13cdd5bc45

View File

@ -3064,12 +3064,12 @@ class Societe extends CommonObject
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Returns an accounting code, following the accounting code module. * Assigns a accounting code from the accounting code module.
* May be identical to the one entered or generated automatically. * Computed value is stored into this->code_compta or this->code_compta_fournisseur according to $type.
* To date only the automatic generation is implemented * 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') * @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) public function get_codecompta($type)
{ {