Skip to content

Commit

Permalink
The variable $conf seems to be never defined
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Dec 12, 2019
1 parent 9514155 commit a63caf3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion htdocs/core/modules/societe/mod_codecompta_digitaria.php
Expand Up @@ -2,6 +2,7 @@
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2019 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
*
* 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
Expand Down Expand Up @@ -42,8 +43,16 @@ class mod_codecompta_digitaria extends ModeleAccountancyCode
*/
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'

/**
* Prefix customer accountancy code
* @var string
*/
public $prefixcustomeraccountancycode;

/**
* Prefix supplier accountancy code
* @var string
*/
public $prefixsupplieraccountancycode;

public $position = 30;
Expand Down Expand Up @@ -117,7 +126,7 @@ public function info($langs)
*/
public function getExample($langs, $objsoc = 0, $type = -1)
{
global $mysoc;
global $conf, $mysoc;

$s = $langs->trans("ThirdPartyName").": ".$mysoc->name;
$s .= "<br>\n";
Expand All @@ -142,6 +151,7 @@ public function getExample($langs, $objsoc = 0, $type = -1)
public function get_code($db, $societe, $type = '')
{
// phpcs:enable
global $conf;
$i = 0;
$this->code = '';

Expand Down

0 comments on commit a63caf3

Please sign in to comment.