Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into 7.0
Conflicts: htdocs/accountancy/journal/sellsjournal.php
This commit is contained in:
commit
afdd504e16
@ -171,7 +171,8 @@ if ($result) {
|
|||||||
$line->fetch($obj->fdid);
|
$line->fetch($obj->fdid);
|
||||||
|
|
||||||
// Situation invoices handling
|
// Situation invoices handling
|
||||||
$prev_progress = $line->get_prev_progress($obj->fdid);
|
$prev_progress = $line->get_prev_progress($obj->rowid);
|
||||||
|
|
||||||
if ($obj->type == Facture::TYPE_SITUATION) {
|
if ($obj->type == Facture::TYPE_SITUATION) {
|
||||||
// Avoid divide by 0
|
// Avoid divide by 0
|
||||||
if ($obj->situation_percent == 0) {
|
if ($obj->situation_percent == 0) {
|
||||||
|
|||||||
@ -1044,6 +1044,10 @@ class ExtraFields
|
|||||||
$sql.= ' FROM '.MAIN_DB_PREFIX .$InfoFieldList[0];
|
$sql.= ' FROM '.MAIN_DB_PREFIX .$InfoFieldList[0];
|
||||||
if (!empty($InfoFieldList[4]))
|
if (!empty($InfoFieldList[4]))
|
||||||
{
|
{
|
||||||
|
// can use curent entity filter
|
||||||
|
if (strpos($InfoFieldList[4], '$ENTITY$')!==false) {
|
||||||
|
$InfoFieldList[4]=str_replace('$ENTITY$',$conf->entity,$InfoFieldList[4]);
|
||||||
|
}
|
||||||
// can use SELECT request
|
// can use SELECT request
|
||||||
if (strpos($InfoFieldList[4], '$SEL$')!==false) {
|
if (strpos($InfoFieldList[4], '$SEL$')!==false) {
|
||||||
$InfoFieldList[4]=str_replace('$SEL$','SELECT',$InfoFieldList[4]);
|
$InfoFieldList[4]=str_replace('$SEL$','SELECT',$InfoFieldList[4]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user