forked from Wavyzz/dolibarr
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop Conflicts: htdocs/user/perms.php
This commit is contained in:
@@ -1018,12 +1018,12 @@ class Commande extends CommonOrder
|
||||
$vatrate = $line->tva_tx;
|
||||
if ($line->vat_src_code && !preg_match('/\(.*\)/', $vatrate)) $vatrate .= ' ('.$line->vat_src_code.')';
|
||||
|
||||
if(!empty($conf->global->MAIN_CREATEFROM_KEEP_LINE_ORIGIN_INFORMATION)) {
|
||||
$originid=$line->origin_id;
|
||||
$origintype=$line->origin;
|
||||
if (!empty($conf->global->MAIN_CREATEFROM_KEEP_LINE_ORIGIN_INFORMATION)) {
|
||||
$originid = $line->origin_id;
|
||||
$origintype = $line->origin;
|
||||
} else {
|
||||
$originid=$line->id;
|
||||
$origintype=$this->element;
|
||||
$originid = $line->id;
|
||||
$origintype = $this->element;
|
||||
}
|
||||
|
||||
$result = $this->addline(
|
||||
@@ -1415,7 +1415,7 @@ class Commande extends CommonOrder
|
||||
if (!$error)
|
||||
{
|
||||
// Validate immediatly the order
|
||||
if (! empty($conf->global->ORDER_VALID_AFTER_CLOSE_PROPAL))
|
||||
if (!empty($conf->global->ORDER_VALID_AFTER_CLOSE_PROPAL))
|
||||
{
|
||||
$this->fetch($ret);
|
||||
$this->valid($user);
|
||||
|
||||
Reference in New Issue
Block a user