Fix moved to fetch_line()

Fix moved to fetch_line()
This commit is contained in:
JC Prieto 2019-09-26 20:34:28 +02:00 committed by GitHub
parent 0893926189
commit cdb6e7f9a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -602,9 +602,7 @@ class Expedition extends CommonObject
$this->fk_incoterms = $obj->fk_incoterms;
$this->location_incoterms = $obj->location_incoterms;
$this->libelle_incoterms = $obj->libelle_incoterms;
$this->lines = array();
$this->db->free($result);
if ($this->statut == self::STATUS_DRAFT) $this->brouillon = 1;
@ -1381,6 +1379,7 @@ class Expedition extends CommonObject
// phpcs:enable
global $conf, $mysoc;
// TODO: recuperer les champs du document associe a part
$this->lines=array();
$sql = "SELECT cd.rowid, cd.fk_product, cd.label as custom_label, cd.description, cd.qty as qty_asked, cd.product_type";
$sql.= ", cd.total_ht, cd.total_localtax1, cd.total_localtax2, cd.total_ttc, cd.total_tva";