// 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
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10730 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user