|
@@ -184,7 +184,6 @@ class Mo extends CommonObject
|
|
|
*/
|
|
|
public $date_end_planned;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @var int ID bom
|
|
|
*/
|
|
@@ -200,6 +199,13 @@ class Mo extends CommonObject
|
|
|
*/
|
|
|
public $fk_project;
|
|
|
|
|
|
+ /**
|
|
|
+ * @var double New quantity. When we update the quantity to produce, we set this to save old value before calling the ->update that call the updateProduction that need this
|
|
|
+ * to recalculate all the quantities in lines to consume and produce.
|
|
|
+ */
|
|
|
+ public $oldQty;
|
|
|
+
|
|
|
+
|
|
|
// If this object has a subtable with lines
|
|
|
|
|
|
/**
|
|
@@ -247,6 +253,7 @@ class Mo extends CommonObject
|
|
|
*/
|
|
|
public $tpl = array();
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* Constructor
|
|
|
*
|
|
@@ -634,8 +641,6 @@ class Mo extends CommonObject
|
|
|
*/
|
|
|
public function update(User $user, $notrigger = false)
|
|
|
{
|
|
|
- global $langs;
|
|
|
-
|
|
|
$error = 0;
|
|
|
|
|
|
$this->db->begin();
|