add reception key changes, add money movent storno, status display
This commit is contained in:
@@ -5,6 +5,7 @@ namespace common\models;
|
||||
use Yii;
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\behaviors\TimestampBehavior;
|
||||
use common\components\Helper;
|
||||
|
||||
/**
|
||||
* This is the model class for table "ticket_installment_request".
|
||||
@@ -25,6 +26,9 @@ use yii\behaviors\TimestampBehavior;
|
||||
* @property string $request_target_time_at
|
||||
* @property string $created_at
|
||||
* @property string $updated_at
|
||||
* @property string $detsta_answer
|
||||
* @property string $comment
|
||||
* @property string $updated_at
|
||||
* @property common\components\giro\GiroDETSTATetel $detstaTetel GiroDetstaTetel record a DetSta fájlból
|
||||
*/
|
||||
class TicketInstallmentRequest extends \yii\db\ActiveRecord
|
||||
@@ -144,6 +148,7 @@ class TicketInstallmentRequest extends \yii\db\ActiveRecord
|
||||
$this->status = $status;
|
||||
$tranfer = $this->addTransfer();
|
||||
$this->id_transfer = $tranfer->id_transfer;
|
||||
$this->request_processed_at = Helper::getDateTimeString();
|
||||
$this->save(false);
|
||||
$this->applyNewTicketState($partRequired);
|
||||
return true;
|
||||
@@ -152,6 +157,9 @@ class TicketInstallmentRequest extends \yii\db\ActiveRecord
|
||||
}
|
||||
}else{
|
||||
$this->status = $status;
|
||||
$this->detsta_answer = $visszajelzes;
|
||||
$this->comment = $comment;
|
||||
$this->request_processed_at = Helper::getDateTimeString();
|
||||
$this->save(false);
|
||||
$this->applyNewTicketState($partRequired);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user