Standardize code of the fetch_lines()

This commit is contained in:
Laurent Destailleur
2022-03-28 13:50:47 +02:00
parent 35c57988a0
commit 95dc25587c
15 changed files with 67 additions and 40 deletions

View File

@@ -2031,8 +2031,9 @@ class Commande extends CommonOrder
*/
public function fetch_lines($only_product = 0, $loadalsotranslation = 0)
{
global $langs, $conf;
// phpcs:enable
global $langs, $conf;
$this->lines = array();
$sql = 'SELECT l.rowid, l.fk_product, l.fk_parent_line, l.product_type, l.fk_commande, l.label as custom_label, l.description, l.price, l.qty, l.vat_src_code, l.tva_tx, l.ref_ext,';