@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use yii\db\ActiveRecord; | |||
use common\models\User; | |||
use common\models\Order; | |||
@@ -56,7 +57,7 @@ use yii\helpers\Html; | |||
* @property integer $id_producer | |||
* @property string $mean_payement | |||
*/ | |||
class CreditHistory extends ActiveRecord | |||
class CreditHistory extends ActiveRecordCommon | |||
{ | |||
const TYPE_INITIAL_CREDIT = 'initial-credit'; |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\models\DeveloppementPriorite; | |||
/** | |||
@@ -52,7 +53,7 @@ use common\models\DeveloppementPriorite; | |||
* @property string $status | |||
* @property double $time_estimate | |||
*/ | |||
class Development extends \yii\db\ActiveRecord | |||
class Development extends ActiveRecordCommon | |||
{ | |||
const STATUS_OPEN = 'open'; | |||
const STATUS_CLOSED = 'closed'; |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\models\Producer; | |||
/** | |||
@@ -47,7 +48,7 @@ use common\models\Producer; | |||
* @property integer $id_user | |||
* @property integer $id_development | |||
*/ | |||
class DevelopmentPriority extends \yii\db\ActiveRecord | |||
class DevelopmentPriority extends ActiveRecordCommon | |||
{ | |||
const PRIORITY_HIGH = 'high'; |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\models\Order; | |||
use common\models\Distribution; | |||
@@ -49,7 +50,7 @@ use common\models\Distribution; | |||
* @property string $date | |||
* @property integer $actif | |||
*/ | |||
class Distribution extends \yii\db\ActiveRecord | |||
class Distribution extends ActiveRecordCommon | |||
{ | |||
/** | |||
* @inheritdoc |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
/** | |||
* This is the model class for table "facture". | |||
@@ -54,7 +55,7 @@ use Yii; | |||
* @property string $date_payment | |||
* @property string $mean_payment | |||
*/ | |||
class Invoice extends \yii\db\ActiveRecord | |||
class Invoice extends ActiveRecordCommon | |||
{ | |||
/** |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\models\PointVente; | |||
use common\models\Production; | |||
@@ -49,7 +50,7 @@ use common\models\Production; | |||
* @property integer $id_point_vente | |||
* @property integer $livraison | |||
*/ | |||
class PointSaleDistribution extends \yii\db\ActiveRecord | |||
class PointSaleDistribution extends ActiveRecordCommon | |||
{ | |||
var $points_sale_distribution; |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\helpers\Departments; | |||
use yii\helpers\Html; | |||
@@ -54,7 +55,7 @@ use yii\helpers\Html; | |||
* @property string $postcode | |||
* @property string $city | |||
*/ | |||
class Producer extends \yii\db\ActiveRecord | |||
class Producer extends ActiveRecordCommon | |||
{ | |||
/** | |||
* @inheritdoc |
@@ -38,8 +38,9 @@ termes. | |||
namespace common\models; | |||
use Yii ; | |||
use yii\base\Object; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
/** | |||
* This is the model class for table "production_produit". | |||
@@ -49,7 +50,7 @@ use Yii; | |||
* @property integer $id_product | |||
* @property integer $actif | |||
*/ | |||
class ProductDistribution extends \yii\db\ActiveRecord | |||
class ProductDistribution extends ActiveRecordCommon | |||
{ | |||
/** |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
use common\models\Producer; | |||
use common\models\PointSale; | |||
use common\models\PointSaleUser; |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
/** | |||
* This is the model class for table "point_vente_user". | |||
@@ -46,7 +47,7 @@ use Yii; | |||
* @property integer $id_point_vente | |||
* @property integer $id_user | |||
*/ | |||
class UserPointSale extends \yii\db\ActiveRecord | |||
class UserPointSale extends ActiveRecordCommon | |||
{ | |||
/** |
@@ -39,6 +39,7 @@ termes. | |||
namespace common\models; | |||
use Yii; | |||
use common\components\ActiveRecordCommon ; | |||
/** | |||
* This is the model class for table "user_etablissement". | |||
@@ -48,7 +49,7 @@ use Yii; | |||
* @property boolean $actif | |||
* @property boolean $favoris | |||
*/ | |||
class UserProducer extends \yii\db\ActiveRecord | |||
class UserProducer extends ActiveRecordCommon | |||
{ | |||
/** |