Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
Conflicts: htdocs/core/tpl/extrafields_list_print_fields.tpl.php
This commit is contained in:
commit
f3b7bc53bd
@ -3930,7 +3930,7 @@ class PropaleLigne extends CommonObjectLine
|
|||||||
$sql.= " ".price2num($this->localtax2_tx).",";
|
$sql.= " ".price2num($this->localtax2_tx).",";
|
||||||
$sql.= " '".$this->db->escape($this->localtax1_type)."',";
|
$sql.= " '".$this->db->escape($this->localtax1_type)."',";
|
||||||
$sql.= " '".$this->db->escape($this->localtax2_type)."',";
|
$sql.= " '".$this->db->escape($this->localtax2_type)."',";
|
||||||
$sql.= " ".($this->subprice?price2num($this->subprice):"null").",";
|
$sql.= " ".(price2num($this->subprice)!==''?price2num($this->subprice):"null").",";
|
||||||
$sql.= " ".price2num($this->remise_percent).",";
|
$sql.= " ".price2num($this->remise_percent).",";
|
||||||
$sql.= " ".(isset($this->info_bits)?"'".$this->db->escape($this->info_bits)."'":"null").",";
|
$sql.= " ".(isset($this->info_bits)?"'".$this->db->escape($this->info_bits)."'":"null").",";
|
||||||
$sql.= " ".price2num($this->total_ht).",";
|
$sql.= " ".price2num($this->total_ht).",";
|
||||||
|
|||||||
@ -4042,7 +4042,7 @@ class OrderLine extends CommonOrderLine
|
|||||||
$sql.= ' '.(! empty($this->fk_product)?$this->fk_product:"null").',';
|
$sql.= ' '.(! empty($this->fk_product)?$this->fk_product:"null").',';
|
||||||
$sql.= " '".$this->db->escape($this->product_type)."',";
|
$sql.= " '".$this->db->escape($this->product_type)."',";
|
||||||
$sql.= " '".price2num($this->remise_percent)."',";
|
$sql.= " '".price2num($this->remise_percent)."',";
|
||||||
$sql.= " ".($this->subprice!=''?"'".price2num($this->subprice)."'":"null").",";
|
$sql.= " ".(price2num($this->subprice)!==''?price2num($this->subprice):"null").",";
|
||||||
$sql.= " ".($this->price!=''?"'".price2num($this->price)."'":"null").",";
|
$sql.= " ".($this->price!=''?"'".price2num($this->price)."'":"null").",";
|
||||||
$sql.= " '".price2num($this->remise)."',";
|
$sql.= " '".price2num($this->remise)."',";
|
||||||
$sql.= ' '.(! empty($this->fk_remise_except)?$this->fk_remise_except:"null").',';
|
$sql.= ' '.(! empty($this->fk_remise_except)?$this->fk_remise_except:"null").',';
|
||||||
@ -4051,11 +4051,11 @@ class OrderLine extends CommonOrderLine
|
|||||||
$sql.= ' '.(! empty($this->fk_fournprice)?$this->fk_fournprice:"null").',';
|
$sql.= ' '.(! empty($this->fk_fournprice)?$this->fk_fournprice:"null").',';
|
||||||
$sql.= ' '.price2num($this->pa_ht).',';
|
$sql.= ' '.price2num($this->pa_ht).',';
|
||||||
$sql.= " '".$this->db->escape($this->info_bits)."',";
|
$sql.= " '".$this->db->escape($this->info_bits)."',";
|
||||||
$sql.= " '".price2num($this->total_ht)."',";
|
$sql.= " ".price2num($this->total_ht).",";
|
||||||
$sql.= " '".price2num($this->total_tva)."',";
|
$sql.= " ".price2num($this->total_tva).",";
|
||||||
$sql.= " '".price2num($this->total_localtax1)."',";
|
$sql.= " ".price2num($this->total_localtax1).",";
|
||||||
$sql.= " '".price2num($this->total_localtax2)."',";
|
$sql.= " ".price2num($this->total_localtax2).",";
|
||||||
$sql.= " '".price2num($this->total_ttc)."',";
|
$sql.= " ".price2num($this->total_ttc).",";
|
||||||
$sql.= " ".(! empty($this->date_start)?"'".$this->db->idate($this->date_start)."'":"null").',';
|
$sql.= " ".(! empty($this->date_start)?"'".$this->db->idate($this->date_start)."'":"null").',';
|
||||||
$sql.= " ".(! empty($this->date_end)?"'".$this->db->idate($this->date_end)."'":"null").',';
|
$sql.= " ".(! empty($this->date_end)?"'".$this->db->idate($this->date_end)."'":"null").',';
|
||||||
$sql.= ' '.(!$this->fk_unit ? 'NULL' : $this->fk_unit);
|
$sql.= ' '.(!$this->fk_unit ? 'NULL' : $this->fk_unit);
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2013-2014 Jean-François Ferry <jfefe@aternatik.fr>
|
/* Copyright (C) 2013-2014 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
|
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -241,14 +242,14 @@ print "</tr>\n";
|
|||||||
|
|
||||||
if ($ret)
|
if ($ret)
|
||||||
{
|
{
|
||||||
foreach ($object->lines as $resource)
|
foreach ($object->lines as $obj)
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
|
||||||
if (! empty($arrayfields['t.ref']['checked']))
|
if (! empty($arrayfields['t.ref']['checked']))
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $resource->getNomUrl(5);
|
print $obj->getNomUrl(5);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
@ -256,7 +257,7 @@ if ($ret)
|
|||||||
if (! empty($arrayfields['ty.label']['checked']))
|
if (! empty($arrayfields['ty.label']['checked']))
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $resource->type_label;
|
print $obj->type_label;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
@ -265,11 +266,11 @@ if ($ret)
|
|||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
print '<a href="./card.php?action=edit&id='.$resource->id.'">';
|
print '<a href="./card.php?action=edit&id='.$obj->id.'">';
|
||||||
print img_edit();
|
print img_edit();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<a href="./card.php?action=delete&id='.$resource->id.'">';
|
print '<a href="./card.php?action=delete&id='.$obj->id.'">';
|
||||||
print img_delete();
|
print img_delete();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -802,7 +802,8 @@ class User extends CommonObject
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(empty($this->rights->$module->$perms)) $this->nb_rights++;
|
if(empty($this->rights->$module->$perms)) $this->nb_rights++;
|
||||||
$this->rights->$module->$perms = 1;
|
// if we have already define a subperm like this $this->rights->$module->level1->level2 with llx_user_rights, we don't want override level1 because the level2 can be not define on user group
|
||||||
|
if (!is_object($this->rights->$module->$perms)) $this->rights->$module->$perms = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user