Skip to content

Commit

Permalink
Merge branch '6.0' of github.com:Dolibarr/dolibarr into fix_order_lin…
Browse files Browse the repository at this point in the history
…e_fk_multicurrency
  • Loading branch information
ATM-Nicolas committed Mar 5, 2018
2 parents 27100df + 57d6417 commit 60f8ca1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions htdocs/accountancy/bookkeeping/balance.php
Expand Up @@ -28,7 +28,9 @@

// Class
require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT . '/accountancy/class/bookkeeping.class.php';
require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountancyexport.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaccounting.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';

Expand Down
10 changes: 6 additions & 4 deletions htdocs/compta/facture/class/facture.class.php
Expand Up @@ -2283,9 +2283,12 @@ function validate($user, $force_number='', $idwarehouse=0, $notrigger=0)
$final = ($this->lines[$i]->situation_percent == 100);
$i++;
}
if ($final) {
$this->setFinal($user);
}

if (empty($final)) $this->situation_final = 0;
else $this->situation_final = 1;

$this->setFinal($user);

}
}
}
Expand Down Expand Up @@ -4106,7 +4109,6 @@ function setFinal(User $user, $notrigger=0)

$this->db->begin();

$this->situation_final = 1;
$sql = 'UPDATE ' . MAIN_DB_PREFIX . 'facture SET situation_final = ' . $this->situation_final . ' where rowid = ' . $this->id;

dol_syslog(__METHOD__, LOG_DEBUG);
Expand Down
1 change: 1 addition & 0 deletions scripts/product/migrate_picture_path.php
Expand Up @@ -104,6 +104,7 @@ function migrate_product_photospath($product)
global $conf;

$dir = $conf->product->multidir_output[$product->entity];
$conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO = 1;
$origin = $dir .'/'. get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos";
$destin = $dir.'/'.dol_sanitizeFileName($product->ref);

Expand Down

0 comments on commit 60f8ca1

Please sign in to comment.