[-] BO : Delete accounting
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15153 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -40,9 +40,6 @@ class TaxCore extends ObjectModel
|
||||
/** @var boolean true if the tax has been historized */
|
||||
public $deleted = 0;
|
||||
|
||||
/** @var string Account Number */
|
||||
public $account_number;
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
@@ -52,7 +49,6 @@ class TaxCore extends ObjectModel
|
||||
'multilang' => true,
|
||||
'fields' => array(
|
||||
'rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'required' => true),
|
||||
'account_number' => array('type' => self::TYPE_STRING),
|
||||
'active' => array('type' => self::TYPE_BOOL),
|
||||
'deleted' => array('type' => self::TYPE_BOOL),
|
||||
|
||||
@@ -260,18 +256,5 @@ class TaxCore extends ObjectModel
|
||||
|
||||
return $tax_calculator->getTotalRate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Account number of a Tax
|
||||
*
|
||||
* @param integer $id_tax
|
||||
* @return string Account Number
|
||||
*/
|
||||
public static function getAccountNumberByIdTax($id_tax)
|
||||
{
|
||||
return Db::getInstance()->getValue('
|
||||
SELECT account_number FROM `'._DB_PREFIX_.'tax`
|
||||
WHERE id_tax = '.(int)$id_tax);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user