// Supply Order : it is now possible to automatically load products, for a given supplier, which physical quantity is equal or less to a given threshold

This commit is contained in:
bMancone
2011-11-29 10:07:51 +00:00
parent cf7301884c
commit 89257f7cce
3 changed files with 123 additions and 5 deletions
+8 -1
View File
@@ -115,6 +115,11 @@ class SupplyOrderCore extends ObjectModel
*/
public $discount_value_te = 0;
/**
* @var int Tells if this order is a template
*/
public $is_template = 0;
protected $fieldsRequired = array(
'id_supplier',
'supplier_name',
@@ -145,7 +150,8 @@ class SupplyOrderCore extends ObjectModel
'total_ti' => 'isPrice',
'total_tax' => 'isPrice',
'discount_rate' => 'isFloat',
'discount_value_te' => 'isPrice'
'discount_value_te' => 'isPrice',
'is_template' => 'isBool',
);
/**
@@ -179,6 +185,7 @@ class SupplyOrderCore extends ObjectModel
$fields['total_tax'] = (float)$this->total_tax;
$fields['discount_rate'] = (float)$this->discount_rate;
$fields['discount_value_te'] = (float)$this->discount_value_te;
$fields['is_template'] = (int)(bool)$this->is_template;
return $fields;
}