mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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: Signature was not added for email sent from thirdparty page.
|
||||
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.* *****
|
||||
For users:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/* 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
|
||||
* 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
|
||||
* \brief Classe permettant la gestion leopard des codes tiers
|
||||
* Class to manage numbering of thirdparties code
|
||||
*/
|
||||
class mod_codeclient_leopard extends ModeleThirdPartyCode
|
||||
{
|
||||
|
|
@ -104,7 +103,7 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode
|
|||
global $conf;
|
||||
|
||||
$result=0;
|
||||
$code = strtoupper(trim($code));
|
||||
$code = trim($code);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
dol_syslog("mod_codeclient_leopard::verif type=".$type." result=".$result);
|
||||
dol_syslog(get_class($this)."::verif type=".$type." result=".$result);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user