Add ContractForm, Add contract pdf, Add Display all Transfer option
This commit is contained in:
@@ -17,7 +17,7 @@ class KeyToggleForm extends Model
|
||||
public $card;
|
||||
public $customer;
|
||||
public $keyModel;
|
||||
|
||||
public $action;
|
||||
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ class KeyToggleForm extends Model
|
||||
$assignments = CardKeyAssignment::find()->andWhere(['id_key' => $this->keyModel->id_key])->all();
|
||||
if ( count($assignments) > 0){
|
||||
$this->unassign();
|
||||
$this->action = 'unassign';
|
||||
}else{
|
||||
$this->assign();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user