[-] BO : #PSTEST-263 - Add attribute multilang to Tax class definition
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12020 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8e5a548826
commit
a745ed89f4
1 file changed
+6
-5
+6
-5
@@ -29,19 +29,19 @@
|
|||||||
class TaxCore extends ObjectModel
|
class TaxCore extends ObjectModel
|
||||||
{
|
{
|
||||||
/** @var string Name */
|
/** @var string Name */
|
||||||
public $name;
|
public $name;
|
||||||
|
|
||||||
/** @var float Rate (%) */
|
/** @var float Rate (%) */
|
||||||
public $rate;
|
public $rate;
|
||||||
|
|
||||||
/** @var bool active state */
|
/** @var bool active state */
|
||||||
public $active;
|
public $active;
|
||||||
|
|
||||||
/** @var boolean true if the tax has been historized */
|
/** @var boolean true if the tax has been historized */
|
||||||
public $deleted = 0;
|
public $deleted = 0;
|
||||||
|
|
||||||
/** @var string Account Number */
|
/** @var string Account Number */
|
||||||
public $account_number;
|
public $account_number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see ObjectModel::$definition
|
* @see ObjectModel::$definition
|
||||||
@@ -49,6 +49,7 @@ class TaxCore extends ObjectModel
|
|||||||
public static $definition = array(
|
public static $definition = array(
|
||||||
'table' => 'tax',
|
'table' => 'tax',
|
||||||
'primary' => 'id_tax',
|
'primary' => 'id_tax',
|
||||||
|
'multilang' => true,
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true),
|
'rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true),
|
||||||
'account_number' => array('type' => self::TYPE_STRING),
|
'account_number' => array('type' => self::TYPE_STRING),
|
||||||
|
|||||||
Reference in new issue
Block a user