Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
ff1af7d09a
@ -410,7 +410,7 @@ else if ($id || $ref)
|
|||||||
// Ref
|
// Ref
|
||||||
print '<tr><td width="20%">'.$langs->trans("Ref").'</td>';
|
print '<tr><td width="20%">'.$langs->trans("Ref").'</td>';
|
||||||
print '<td class="valeur">';
|
print '<td class="valeur">';
|
||||||
print $form->showrefnav($member,'rowid');
|
print $form->showrefnav($member,'id');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Login
|
// Login
|
||||||
|
|||||||
@ -716,7 +716,7 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
|
|||||||
//print "masktri=".$masktri." maskcounter=".$maskcounter." maskraz=".$maskraz." maskoffset=".$maskoffset."<br>\n";
|
//print "masktri=".$masktri." maskcounter=".$maskcounter." maskraz=".$maskraz." maskoffset=".$maskoffset."<br>\n";
|
||||||
|
|
||||||
// Define $sqlstring
|
// Define $sqlstring
|
||||||
$posnumstart=strpos($maskwithnocode,$maskcounter); // Pos of counter in final string (from 0 to ...)
|
$posnumstart=strrpos($maskwithnocode,$maskcounter); // Pos of counter in final string (from 0 to ...)
|
||||||
if ($posnumstart < 0) return 'ErrorBadMaskFailedToLocatePosOfSequence';
|
if ($posnumstart < 0) return 'ErrorBadMaskFailedToLocatePosOfSequence';
|
||||||
$sqlstring='SUBSTRING('.$field.', '.($posnumstart+1).', '.dol_strlen($maskcounter).')';
|
$sqlstring='SUBSTRING('.$field.', '.($posnumstart+1).', '.dol_strlen($maskcounter).')';
|
||||||
|
|
||||||
|
|||||||
@ -560,7 +560,7 @@ class Product extends CommonObject
|
|||||||
if (empty($this->localtax2_tx)) $this->localtax2_tx = 0;
|
if (empty($this->localtax2_tx)) $this->localtax2_tx = 0;
|
||||||
if (empty($this->status)) $this->status = 0;
|
if (empty($this->status)) $this->status = 0;
|
||||||
if (empty($this->status_buy)) $this->status_buy = 0;
|
if (empty($this->status_buy)) $this->status_buy = 0;
|
||||||
|
|
||||||
if (empty($this->country_id)) $this->country_id = 0;
|
if (empty($this->country_id)) $this->country_id = 0;
|
||||||
|
|
||||||
//Gencod
|
//Gencod
|
||||||
@ -610,7 +610,7 @@ class Product extends CommonObject
|
|||||||
$sql.= ", volume_units = " . ($this->volume_units!='' ? "'".$this->volume_units."'" : 'null');
|
$sql.= ", volume_units = " . ($this->volume_units!='' ? "'".$this->volume_units."'" : 'null');
|
||||||
$sql.= ", seuil_stock_alerte = " . ((isset($this->seuil_stock_alerte) && $this->seuil_stock_alerte != '') ? "'".$this->seuil_stock_alerte."'" : "null");
|
$sql.= ", seuil_stock_alerte = " . ((isset($this->seuil_stock_alerte) && $this->seuil_stock_alerte != '') ? "'".$this->seuil_stock_alerte."'" : "null");
|
||||||
$sql.= ", description = '" . $this->db->escape($this->description) ."'";
|
$sql.= ", description = '" . $this->db->escape($this->description) ."'";
|
||||||
$sql.= ", url = " . ($this->url?"'".$this->db->escape($this->url)."'":'');
|
$sql.= ", url = " . ($this->url?"'".$this->db->escape($this->url)."'":'null');
|
||||||
$sql.= ", customcode = '" . $this->db->escape($this->customcode) ."'";
|
$sql.= ", customcode = '" . $this->db->escape($this->customcode) ."'";
|
||||||
$sql.= ", fk_country = " . ($this->country_id > 0 ? $this->country_id : 'null');
|
$sql.= ", fk_country = " . ($this->country_id > 0 ? $this->country_id : 'null');
|
||||||
$sql.= ", note = '" . $this->db->escape($this->note) ."'";
|
$sql.= ", note = '" . $this->db->escape($this->note) ."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user