Merge pull request #13457 from oscim/patch-30

Update expedition.class.php
This commit is contained in:
Laurent Destailleur 2020-04-02 12:57:24 +02:00 committed by GitHub
commit 79b1a2e191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1396,7 +1396,7 @@ class Expedition extends CommonObject
// 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 = "SELECT cd.rowid, cd.fk_product, cd.label as custom_label, cd.description, cd.qty as qty_asked, cd.product_type, cd.fk_unit";
$sql .= ", cd.total_ht, cd.total_localtax1, cd.total_localtax2, cd.total_ttc, cd.total_tva";
$sql .= ", cd.vat_src_code, cd.tva_tx, cd.localtax1_tx, cd.localtax2_tx, cd.localtax1_type, cd.localtax2_type, cd.info_bits, cd.price, cd.subprice, cd.remise_percent,cd.buy_price_ht as pa_ht";
$sql .= ", cd.fk_multicurrency, cd.multicurrency_code, cd.multicurrency_subprice, cd.multicurrency_total_ht, cd.multicurrency_total_tva, cd.multicurrency_total_ttc, cd.rang";
@ -1477,6 +1477,7 @@ class Expedition extends CommonObject
$line->surface_units = $obj->surface_units;
$line->volume = $obj->volume;
$line->volume_units = $obj->volume_units;
$line->fk_unit = $obj->fk_unit;
$line->pa_ht = $obj->pa_ht;