Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
This commit is contained in:
commit
cabd0937d0
3 changed files with 11 additions and 6 deletions
|
|
@ -1469,8 +1469,12 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||
} else {
|
||||
$textwasnotmodified = ($desc == $prodser->description);
|
||||
}
|
||||
if (!empty($prodser->multilangs[$outputlangs->defaultlang]["description"]) && ($textwasnotmodified || $translatealsoifmodified)) {
|
||||
$desc = $prodser->multilangs[$outputlangs->defaultlang]["description"];
|
||||
if (!empty($prodser->multilangs[$outputlangs->defaultlang]["description"])) {
|
||||
if ($textwasnotmodified) {
|
||||
$desc = str_replace($prodser->description, $prodser->multilangs[$outputlangs->defaultlang]["description"], $desc);
|
||||
} elseif ($translatealsoifmodified) {
|
||||
$desc = $prodser->multilangs[$outputlangs->defaultlang]["description"];
|
||||
}
|
||||
}
|
||||
|
||||
// Set note
|
||||
|
|
|
|||
|
|
@ -2706,7 +2706,7 @@ class ExpenseReport extends CommonObject
|
|||
//Clean
|
||||
$qty = price2num($qty);
|
||||
|
||||
$sql = " SELECT r.range_ik, t.ikoffset as offset, t.coef";
|
||||
$sql = " SELECT r.range_ik, t.ikoffset, t.coef";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."expensereport_ik t";
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_exp_tax_range r ON r.rowid = t.fk_range";
|
||||
$sql .= " WHERE t.fk_c_exp_tax_cat = ".(int) $fk_cat;
|
||||
|
|
@ -2733,6 +2733,7 @@ class ExpenseReport extends CommonObject
|
|||
$obj = $this->db->fetch_object($resql);
|
||||
$cumulYearQty = $obj->cumul;
|
||||
}
|
||||
|
||||
$qty = $cumulYearQty + $qty;
|
||||
}
|
||||
|
||||
|
|
@ -2750,12 +2751,12 @@ class ExpenseReport extends CommonObject
|
|||
if ($i < ($num - 1)) {
|
||||
if ($qty > $ranges[$i]->range_ik && $qty < $ranges[$i+1]->range_ik) {
|
||||
$coef = $ranges[$i]->coef;
|
||||
$offset = $ranges[$i]->offset;
|
||||
$offset = $ranges[$i]->ikoffset;
|
||||
}
|
||||
} else {
|
||||
if ($qty > $ranges[$i]->range_ik) {
|
||||
$coef = $ranges[$i]->coef;
|
||||
$offset = $ranges[$i]->offset;
|
||||
$offset = $ranges[$i]->ikoffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
|
||||
|
||||
/**
|
||||
* Class to manage mailman and spip
|
||||
|
|
|
|||
Loading…
Reference in a new issue