declaring the propreties product_tosell & product_tobuy
This commit is contained in:
parent
267a6f908d
commit
22152dd254
@ -2060,7 +2060,7 @@ class Commande extends CommonOrder
|
||||
$sql .= ' l.total_ht, l.total_ttc, l.total_tva, l.total_localtax1, l.total_localtax2, l.date_start, l.date_end,';
|
||||
$sql .= ' l.fk_unit,';
|
||||
$sql .= ' l.fk_multicurrency, l.multicurrency_code, l.multicurrency_subprice, l.multicurrency_total_ht, l.multicurrency_total_tva, l.multicurrency_total_ttc,';
|
||||
$sql .= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label, p.tobatch as product_tobatch, p.barcode as product_barcode,';
|
||||
$sql .= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label, p.tosell as product_tosell, p.tobuy as product_tobuy, p.tobatch as product_tobatch, p.barcode as product_barcode,';
|
||||
$sql .= ' p.weight, p.weight_units, p.volume, p.volume_units';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'commandedet as l';
|
||||
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON (p.rowid = l.fk_product)';
|
||||
@ -2123,6 +2123,8 @@ class Commande extends CommonOrder
|
||||
|
||||
$line->product_ref = $objp->product_ref;
|
||||
$line->product_label = $objp->product_label;
|
||||
$line->product_tosell = $objp->product_tosell;
|
||||
$line->product_tobuy = $objp->product_tobuy;
|
||||
$line->product_desc = $objp->product_desc;
|
||||
$line->product_tobatch = $objp->product_tobatch;
|
||||
$line->product_barcode = $objp->product_barcode;
|
||||
|
||||
@ -72,11 +72,23 @@ abstract class CommonOrderLine extends CommonObjectLine
|
||||
*/
|
||||
public $product_label;
|
||||
|
||||
/**
|
||||
* Boolean that indicates whether the product is available for sale '1' or not '0'
|
||||
* @var int
|
||||
*/
|
||||
public $product_tosell=0;
|
||||
|
||||
/**
|
||||
* Boolean that indicates whether the product is available for purchase '1' or not '0'
|
||||
* @var int
|
||||
*/
|
||||
public $product_tobuy=0;
|
||||
|
||||
/**
|
||||
* Product description
|
||||
* @var string
|
||||
*/
|
||||
public $product_desc;
|
||||
public $product_desc;
|
||||
|
||||
/**
|
||||
* Product use lot
|
||||
|
||||
Loading…
Reference in New Issue
Block a user