Merge pull request #21276 from badre-agtaib/scru4

FIX bug :The properties product_tosell & product_tobuy do not exist on OrderLine
This commit is contained in:
Laurent Destailleur 2022-06-15 11:05:34 +02:00 committed by GitHub
commit 28234c6f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -2123,9 +2123,9 @@ class Commande extends CommonOrder
$line->product_ref = $objp->product_ref;
$line->product_label = $objp->product_label;
$line->product_desc = $objp->product_desc;
$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;

View File

@ -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