This commit is contained in:
Laurent Destailleur 2022-07-10 18:35:23 +02:00
parent 7e79cf2f0d
commit 8f819abd61
3 changed files with 5 additions and 0 deletions

View File

@ -898,6 +898,7 @@ class Expedition extends CommonObject
* Add an expedition line.
* If STOCK_WAREHOUSE_NOT_REQUIRED_FOR_SHIPMENTS is set, you can add a shipment line, with no stock source defined
* If STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT is not set, you can add a shipment line, even if not enough into stock
* Note: For product that need a batch number, you must use addline_batch()
*
* @param int $entrepot_id Id of warehouse
* @param int $id Id of source line (order line)

View File

@ -79,6 +79,9 @@ class CommandeFournisseurDispatch extends CommonObjectLine
*/
public $fk_commandefourndet;
public $fk_reception;
public $qty;
public $qty_asked;

View File

@ -864,6 +864,7 @@ class Reception extends CommonObject
$line->status = 1;
$line->cost_price = $cost_price;
$line->fk_reception = $this->id;
$this->lines[$num] = $line;
return $num;