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