mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix finished can be null && defautl fk is 0
This commit is contained in:
parent
cc5207a531
commit
3e49424f2f
|
|
@ -807,7 +807,7 @@ if (empty($reshook)) {
|
|||
if ($fk_default_bom >= 0) {
|
||||
$object->fk_default_bom = $fk_default_bom;
|
||||
} else {
|
||||
$object->fk_default_bom = null;
|
||||
$object->fk_default_bom = 0;
|
||||
}
|
||||
|
||||
$units = GETPOSTINT('units');
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ class Product extends CommonObject
|
|||
/**
|
||||
* Status indicates whether the product is on sale '1' or not '0'
|
||||
* @var int
|
||||
* @deprecated
|
||||
* @deprecated Use $status instead
|
||||
* @see $status
|
||||
*/
|
||||
public $tosell;
|
||||
|
|
@ -325,7 +325,7 @@ class Product extends CommonObject
|
|||
/**
|
||||
* Status indicate whether the product is available for purchase '1' or not '0'
|
||||
* @var int
|
||||
* @deprecated
|
||||
* @deprecated Use $status_buy instead
|
||||
* @see $status_buy
|
||||
*/
|
||||
public $tobuy;
|
||||
|
|
@ -333,7 +333,7 @@ class Product extends CommonObject
|
|||
/**
|
||||
* Status indicates whether the product is a finished product '1' or a raw material '0'
|
||||
*
|
||||
* @var int
|
||||
* @var ?int
|
||||
*/
|
||||
public $finished;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user