2
0
forked from Wavyzz/dolibarr

Maintain origin_id and origin for copy document

Fix any errors.
This commit is contained in:
Sergio Sanchis Climent
2015-11-06 01:53:20 +01:00
parent 41ccfc411a
commit de8e7107ee
3 changed files with 27 additions and 10 deletions

View File

@@ -777,7 +777,9 @@ class Commande extends CommonOrder
$this->lines[$i]->pa_ht,
$this->lines[$i]->label,
$this->lines[$i]->array_options,
$this->lines[$i]->fk_unit
$this->lines[$i]->fk_unit,
$this->element,
$this->lines[$i]->id
);
if ($result < 0)
{
@@ -2321,6 +2323,7 @@ class Commande extends CommonOrder
function classifyBilled()
{
global $conf, $user, $langs;
$error = 0;
$this->db->begin();
@@ -2635,6 +2638,7 @@ class Commande extends CommonOrder
global $hookmanager, $conf;
$action='create';
$error = 0;
// Actions on extra fields (by external module or standard code)
// TODO le hook fait double emploi avec le trigger !!
@@ -2871,7 +2875,7 @@ class Commande extends CommonOrder
*/
function LibStatut($statut,$billed,$mode)
{
global $langs;
global $langs, $conf;
//print 'x'.$statut.'-'.$billed;
if ($mode == 0)
{