예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getJournals()
 {
     return $this->hasMany(GlHeader::className(), ['reff_id' => 'id'])->where(['reff_type' => GlHeader::REFF_INVOICE])->andFilterWhere(['<>', 'status', GlHeader::STATUS_CANCELED]);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGlHeaders()
 {
     return $this->hasMany(GlHeader::className(), ['periode_id' => 'id']);
 }
예제 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getHeader()
 {
     return $this->hasOne(GlHeader::className(), ['id' => 'header_id']);
 }