Debug v24
This commit is contained in:
parent
adec349442
commit
fd71ba3fec
1 changed files with 3 additions and 2 deletions
|
|
@ -1233,7 +1233,7 @@ class BonPrelevement extends CommonObject
|
|||
while ($i < $num) {
|
||||
$row = $this->db->fetch_row($resql); // TODO Replace with fetch_object()
|
||||
'@phan-var-force array<int<0,12>,string> $row';
|
||||
/** @var array{0:int|string,1:int,2:int,3:string,4:string,5:string,6,string,7:float,8:string,9:string,10:string,11:string,12:string,13:string,14:string,15:int} $row */
|
||||
/** @var array{0:int|string,1:int,2:int,3:string,4:string,5:string,6:string,7:float,8:string,9:string,10:string,11:string,12:string,13:string,14:string,15:int} $row */
|
||||
|
||||
// All fields:
|
||||
// 0=rowid, 1=pfdrowid, 2=$socOrUser, 3=code_banque, 4=code_guichet, 5=number, 6=key,
|
||||
|
|
@ -1406,7 +1406,8 @@ class BonPrelevement extends CommonObject
|
|||
$sql .= " FROM " . MAIN_DB_PREFIX . "prelevement_bons";
|
||||
$sql .= " WHERE ref LIKE '" . $prefixt . $this->db->escape($ref) . "%'";
|
||||
$sql .= " AND entity = " . ((int) $conf->entity);
|
||||
$sql .= " ORDER BY LENGTH(ref) DESC, ref DESC LIMIT 1";
|
||||
$sql .= " ORDER BY LENGTH(ref) DESC, ref DESC";
|
||||
$sql .= " LIMIT 1";
|
||||
|
||||
dol_syslog(get_class($this) . " get next free number", LOG_DEBUG);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue