Debug v16
This commit is contained in:
parent
97f50ba364
commit
604855bbc1
@ -48,6 +48,18 @@ class mod_commande_marbre extends ModeleNumRefCommandes
|
||||
public $name = 'Marbre';
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
global $conf, $mysoc;
|
||||
|
||||
if ((float) $conf->global->MAIN_VERSION_LAST_INSTALL >= 16.0 && $mysoc->country_code != 'FR') {
|
||||
$this->prefix = 'SO'; // We use correct standard code "SO = Sale Order"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return description of numbering module
|
||||
*
|
||||
|
||||
@ -55,7 +55,15 @@ class mod_facture_mars extends ModeleNumRefFactures
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
global $conf;
|
||||
global $conf, $mysoc;
|
||||
|
||||
if ((float) $conf->global->MAIN_VERSION_LAST_INSTALL >= 16.0 && $mysoc->country_code != 'FR') {
|
||||
$this->prefixinvoice = 'IN'; // We use correct standard code "IN = Invoice"
|
||||
$this->prefixreplacement = 'IR';
|
||||
$this->prefixdeposit = 'ID';
|
||||
$this->prefixcreditnote = 'IC';
|
||||
}
|
||||
|
||||
if (!empty($conf->global->INVOICE_NUMBERING_MARS_FORCE_PREFIX)) {
|
||||
$this->prefixinvoice = $conf->global->INVOICE_NUMBERING_MARS_FORCE_PREFIX;
|
||||
}
|
||||
|
||||
@ -42,6 +42,12 @@ class mod_facture_terre extends ModeleNumRefFactures
|
||||
*/
|
||||
public $prefixinvoice = 'FA';
|
||||
|
||||
/**
|
||||
* Prefix for replacement invoices
|
||||
* @var string
|
||||
*/
|
||||
public $prefixreplacement = 'FA';
|
||||
|
||||
/**
|
||||
* Prefix for credit note
|
||||
* @var string
|
||||
@ -65,7 +71,15 @@ class mod_facture_terre extends ModeleNumRefFactures
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
global $conf;
|
||||
global $conf, $mysoc;
|
||||
|
||||
if ((float) $conf->global->MAIN_VERSION_LAST_INSTALL >= 16.0 && $mysoc->country_code != 'FR') {
|
||||
$this->prefixinvoice = 'IN'; // We use correct standard code "IN = Invoice"
|
||||
$this->prefixreplacement = 'IR';
|
||||
$this->prefixdeposit = 'ID';
|
||||
$this->prefixcreditnote = 'IC';
|
||||
}
|
||||
|
||||
if (!empty($conf->global->INVOICE_NUMBERING_TERRE_FORCE_PREFIX)) {
|
||||
$this->prefixinvoice = $conf->global->INVOICE_NUMBERING_TERRE_FORCE_PREFIX;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user