commit
4b1d333637
@ -14,7 +14,7 @@
|
|||||||
* Copyright (C) 2014 Ion agorria <ion@agorria.com>
|
* Copyright (C) 2014 Ion agorria <ion@agorria.com>
|
||||||
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* Copyright (C) 2017 Gustavo Novaro
|
* Copyright (C) 2017 Gustavo Novaro
|
||||||
* Copyright (C) 2019-2021 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2019-2022 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -255,6 +255,14 @@ class Product extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $status = 0;
|
public $status = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Status indicates whether the product is on sale '1' or not '0'
|
||||||
|
* @var int
|
||||||
|
* @deprecated
|
||||||
|
* @see $status
|
||||||
|
*/
|
||||||
|
public $tosell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Status indicate whether the product is available for purchase '1' or not '0'
|
* Status indicate whether the product is available for purchase '1' or not '0'
|
||||||
*
|
*
|
||||||
@ -262,6 +270,14 @@ class Product extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $status_buy = 0;
|
public $status_buy = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Status indicate whether the product is available for purchase '1' or not '0'
|
||||||
|
* @var int
|
||||||
|
* @deprecated
|
||||||
|
* @see $status_buy
|
||||||
|
*/
|
||||||
|
public $tobuy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Status indicates whether the product is a finished product '1' or a raw material '0'
|
* Status indicates whether the product is a finished product '1' or a raw material '0'
|
||||||
*
|
*
|
||||||
@ -5255,7 +5271,7 @@ class Product extends CommonObject
|
|||||||
* @param string $origin_element Origin element type
|
* @param string $origin_element Origin element type
|
||||||
* @param int $origin_id Origin id of element
|
* @param int $origin_id Origin id of element
|
||||||
* @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct)
|
* @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct)
|
||||||
* @param array $extrafields Array of extrafields
|
* @param Extrafields $extrafields Array of extrafields
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function correct_stock($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null)
|
public function correct_stock($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null)
|
||||||
@ -5315,7 +5331,7 @@ class Product extends CommonObject
|
|||||||
* @param string $origin_element Origin element type
|
* @param string $origin_element Origin element type
|
||||||
* @param int $origin_id Origin id of element
|
* @param int $origin_id Origin id of element
|
||||||
* @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct)
|
* @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct)
|
||||||
* @param array $extrafields Array of extrafields
|
* @param Extrafields $extrafields Array of extrafields
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function correct_stock_batch($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $dlc = '', $dluo = '', $lot = '', $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null)
|
public function correct_stock_batch($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $dlc = '', $dluo = '', $lot = '', $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null)
|
||||||
@ -5921,10 +5937,11 @@ class Product extends CommonObject
|
|||||||
$this->description = 'This is description of this product specimen that was created the '.dol_print_date($now, 'dayhourlog').'.';
|
$this->description = 'This is description of this product specimen that was created the '.dol_print_date($now, 'dayhourlog').'.';
|
||||||
$this->specimen = 1;
|
$this->specimen = 1;
|
||||||
$this->country_id = 1;
|
$this->country_id = 1;
|
||||||
$this->tosell = 1;
|
$this->status = 1;
|
||||||
$this->tobuy = 1;
|
$this->status_buy = 1;
|
||||||
$this->tobatch = 0;
|
$this->tobatch = 0;
|
||||||
$this->note = 'This is a comment (private)';
|
$this->note_private = 'This is a comment (private)';
|
||||||
|
$this->note_public = 'This is a comment (public)';
|
||||||
$this->date_creation = $now;
|
$this->date_creation = $now;
|
||||||
$this->date_modification = $now;
|
$this->date_modification = $now;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user