예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSaleOrders()
 {
     return $this->hasMany(SaleOrder::className(), ['pricelist_id' => 'id']);
 }
예제 #2
0
 public function getSaleOrder()
 {
     return $this->hasOne(SaleOrder::className(), ['id' => 'sale_id'])->via('prepare');
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOrder()
 {
     return $this->hasOne(SaleOrder::className(), ['id' => 'order_id']);
 }
예제 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTerm()
 {
     return $this->hasOne(SaleOrder::className(), ['id' => 'term_id']);
 }
예제 #5
0
 public function getOrders()
 {
     return $this->hasMany(SaleOrder::className(), ['id' => 'order_id'])->via('saleOrderInvoiceRels');
 }
예제 #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSaleOrders()
 {
     return $this->hasMany(SaleOrder::className(), ['payment_term' => 'id']);
 }
예제 #7
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSaleOrders()
 {
     return $this->hasMany(SaleOrder::className(), ['attention' => 'id']);
 }