Fix finished can be null && defautl fk is 0

This commit is contained in:
MDW 2024-03-13 20:29:05 +01:00
parent cc5207a531
commit 3e49424f2f
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -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');

View File

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