[-] BO : #PSTEST-263 - Add attribute multilang to Tax class definition
This commit is contained in:
+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