|
- <?php
-
-
-
- namespace common\models;
-
- use common\components\ActiveRecordCommon;
- use Yii;
-
-
- class Invoice extends Document
- {
-
- public $deliveryNotes ;
-
-
-
- public static function tableName()
- {
- return 'invoice';
- }
-
-
-
-
- public function getOrders()
- {
- return $this->relationOrders('id_invoice') ;
- }
-
-
-
- public static function defaultOptionsSearch()
- {
- return [
- 'with' => [],
- 'join_with' => ['user AS user_invoice', 'orders', 'producer'],
- 'orderby' => 'date ASC',
- 'attribute_id_producer' => 'invoice.id_producer'
- ];
- }
-
- }
|