forked from Wavyzz/dolibarr
Maintain origin_id and origin for copy document
Fix any errors.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user