Exemple #1
0
 public function transaction($in, $out, $model)
 {
     $due_date = DocchequesEav::model()->findByPk(array("doc_id" => $model->doc_id, "line" => $model->line, 'attribute' => 'cheque_date'));
     if ($due_date == NULL) {
         throw new Exception("NO due date was found for transaction", 401);
     }
     $valuedate = date("Y-m-d H:m:s", CDateTimeParser::parse($due_date->value, Yii::app()->locale->getDateFormat('yiishort')));
     $in->valuedate = $valuedate;
     $out->valuedate = $valuedate;
 }
Exemple #2
0
 public function printDetails()
 {
     $model = PaymentType::model()->findByPk($this->type);
     $form = new $model->value();
     $attrs = DocchequesEav::model()->findAllByAttributes(array("doc_id" => $this->doc_id, "line" => $this->line));
     //$text='';
     return $form->line($attrs);
 }