Fix: The customer code was set to uppercase when using numbering module
leopard. We must keep data safe of any change.
This commit is contained in:
parent
7511f626b3
commit
e5136487bd
@ -30,6 +30,8 @@ Fix: [ bug #1250 ] "Supplier Ref. product" sidebar search box does not work
|
|||||||
Fix: Bad space in predefined messages.
|
Fix: Bad space in predefined messages.
|
||||||
Fix: Signature was not added for email sent from thirdparty page.
|
Fix: Signature was not added for email sent from thirdparty page.
|
||||||
Fix: Action event SHIPPING_VALIDATE is not implemented
|
Fix: Action event SHIPPING_VALIDATE is not implemented
|
||||||
|
Fix: The customer code was set to uppercase when using numbering module leopard. We
|
||||||
|
must keep data safe of any change.
|
||||||
|
|
||||||
***** ChangeLog for 3.5 compared to 3.4.* *****
|
***** ChangeLog for 3.5 compared to 3.4.* *****
|
||||||
For users:
|
For users:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2006-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2006-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -27,8 +27,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/societe/modules_societe.class.php'
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class mod_codeclient_leopard
|
* Class to manage numbering of thirdparties code
|
||||||
* \brief Classe permettant la gestion leopard des codes tiers
|
|
||||||
*/
|
*/
|
||||||
class mod_codeclient_leopard extends ModeleThirdPartyCode
|
class mod_codeclient_leopard extends ModeleThirdPartyCode
|
||||||
{
|
{
|
||||||
@ -104,7 +103,7 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
|
|||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$result=0;
|
$result=0;
|
||||||
$code = strtoupper(trim($code));
|
$code = trim($code);
|
||||||
|
|
||||||
if (empty($code) && $this->code_null && empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED))
|
if (empty($code) && $this->code_null && empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED))
|
||||||
{
|
{
|
||||||
@ -115,9 +114,9 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
|
|||||||
$result=-2;
|
$result=-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_syslog("mod_codeclient_leopard::verif type=".$type." result=".$result);
|
dol_syslog(get_class($this)."::verif type=".$type." result=".$result);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user