Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
1ae708ae9a
@ -647,11 +647,9 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Empty line is the first line of $object->linesmvt
|
// Add an empty line
|
||||||
// So we must get the first line (the empty one) and put it at the end of the array
|
$line = new BookKeepingLine();
|
||||||
// in order to display it correctly to the user
|
$object->linesmvt[] = $line;
|
||||||
$empty_line = array_shift($object->linesmvt);
|
|
||||||
$object->linesmvt[]= $empty_line;
|
|
||||||
|
|
||||||
foreach ($object->linesmvt as $line) {
|
foreach ($object->linesmvt as $line) {
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
|||||||
@ -942,8 +942,8 @@ class Societe extends CommonObject
|
|||||||
$sql .= ", accountancy_code_sell";
|
$sql .= ", accountancy_code_sell";
|
||||||
}
|
}
|
||||||
$sql .= ") VALUES ('".$this->db->escape($this->name)."', '".$this->db->escape($this->name_alias)."', ".((int) $this->entity).", '".$this->db->idate($now)."'";
|
$sql .= ") VALUES ('".$this->db->escape($this->name)."', '".$this->db->escape($this->name_alias)."', ".((int) $this->entity).", '".$this->db->idate($now)."'";
|
||||||
$sql .= ", ".(!empty($this->typent_id) ? ((int) $this->typent_id) : "null");
|
|
||||||
$sql .= ", ".(!empty($user->id) ? ((int) $user->id) : "null");
|
$sql .= ", ".(!empty($user->id) ? ((int) $user->id) : "null");
|
||||||
|
$sql .= ", ".(!empty($this->typent_id) ? ((int) $this->typent_id) : "null");
|
||||||
$sql .= ", ".(!empty($this->canvas) ? "'".$this->db->escape($this->canvas)."'" : "null");
|
$sql .= ", ".(!empty($this->canvas) ? "'".$this->db->escape($this->canvas)."'" : "null");
|
||||||
$sql .= ", ".((int) $this->status);
|
$sql .= ", ".((int) $this->status);
|
||||||
$sql .= ", ".(!empty($this->ref_ext) ? "'".$this->db->escape($this->ref_ext)."'" : "null");
|
$sql .= ", ".(!empty($this->ref_ext) ? "'".$this->db->escape($this->ref_ext)."'" : "null");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user