// Stock : add enclosed state at state management on supplier orders

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9778 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-11-02 09:37:42 +00:00
parent 1d4b035272
commit fe0775f4a8
3 changed files with 15 additions and 7 deletions
+7
View File
@@ -55,6 +55,11 @@ class SupplierOrderStateCore extends ObjectModel
*/
public $pending_receipt;
/**
* @var bool Tells if the the order is in an enclosed state
*/
public $enclosed;
/**
* @var string Display state in the specified color (Ex. #FFFF00)
*/
@@ -65,6 +70,7 @@ class SupplierOrderStateCore extends ObjectModel
'editable' => 'isBool',
'receipt_state' => 'isBool',
'pending_receipt' => 'isBool',
'enclosed' => 'isBool',
'color' => 'isColor'
);
@@ -92,6 +98,7 @@ class SupplierOrderStateCore extends ObjectModel
$fields['editable'] = (bool)$this->editable;
$fields['receipt_state'] = (bool)$this->receipt_state;
$fields['pending_receipt'] = (bool)$this->pending_receipt;
$fields['enclosed'] = (bool)$this->enclosed;
$fields['color'] = pSQL($this->color);
return $fields;