forked from Wavyzz/dolibarr
Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/modulebuilder/template/core/modules/mymodule/mod_myobject_standard.php
This commit is contained in:
@@ -68,7 +68,7 @@ class mod_reception_beryl extends ModelNumRefReception
|
||||
|
||||
$coyymm = ''; $max = '';
|
||||
|
||||
$posindice = 8;
|
||||
$posindice = strlen($this->prefix) + 6;
|
||||
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."reception";
|
||||
$sql .= " WHERE ref LIKE '".$db->escape($this->prefix)."____-%'";
|
||||
@@ -101,7 +101,7 @@ class mod_reception_beryl extends ModelNumRefReception
|
||||
{
|
||||
global $db, $conf;
|
||||
|
||||
$posindice = 9;
|
||||
$posindice = strlen($this->prefix) + 6;
|
||||
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."reception";
|
||||
$sql .= " WHERE ref like '".$db->escape($this->prefix)."____-%'";
|
||||
|
||||
Reference in New Issue
Block a user