Little fix
This commit is contained in:
parent
996977a4a8
commit
f62e7d6043
@ -919,6 +919,7 @@ class Expedition extends CommonObject
|
|||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
if ($conf->productbatch->enabled) {
|
if ($conf->productbatch->enabled) {
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/expedition/class/expeditionbatch.class.php';
|
||||||
if ( ExpeditionLigneBatch::deletefromexp($this->db,$this->id)<0)
|
if ( ExpeditionLigneBatch::deletefromexp($this->db,$this->id)<0)
|
||||||
{$error++;$this->errors[]="Error ".$this->db->lasterror();}
|
{$error++;$this->errors[]="Error ".$this->db->lasterror();}
|
||||||
}
|
}
|
||||||
@ -1096,6 +1097,7 @@ class Expedition extends CommonObject
|
|||||||
$line = new ExpeditionLigne($this->db);
|
$line = new ExpeditionLigne($this->db);
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
|
|
||||||
|
$line->line_id = $obj->line_id;
|
||||||
$line->fk_origin_line = $obj->fk_origin_line;
|
$line->fk_origin_line = $obj->fk_origin_line;
|
||||||
$line->origin_line_id = $obj->fk_origin_line; // TODO deprecated
|
$line->origin_line_id = $obj->fk_origin_line; // TODO deprecated
|
||||||
$line->entrepot_id = $obj->fk_entrepot;
|
$line->entrepot_id = $obj->fk_entrepot;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user