#1: Log Card Read In Botond
This commit is contained in:
@@ -2,10 +2,8 @@
|
||||
|
||||
namespace frontend\models;
|
||||
|
||||
use Yii;
|
||||
use yii\base\Model;
|
||||
use common\models\Card;
|
||||
use common\models\Customer;
|
||||
use common\models\Ticket;
|
||||
use common\models\Account;
|
||||
use common\models\CardSearch;
|
||||
@@ -21,6 +19,8 @@ use common\models\DoorLog;
|
||||
* ContactForm is the model behind the contact form.
|
||||
*
|
||||
* @property \common\models\Card $card
|
||||
* @property \common\models\Account $defaultAccount
|
||||
* @property \common\models\AccountState $lastCassaState
|
||||
*/
|
||||
class ReceptionForm extends Model
|
||||
{
|
||||
@@ -74,10 +74,6 @@ class ReceptionForm extends Model
|
||||
|
||||
$this->card = $query->one();
|
||||
|
||||
if ( $this->card == null ){
|
||||
|
||||
}
|
||||
|
||||
if ( $this->card != null ){
|
||||
$this->customer = $this->card->customer;
|
||||
$this->readValidTickets();
|
||||
@@ -85,6 +81,7 @@ class ReceptionForm extends Model
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function readCard(){
|
||||
|
||||
$this->number = Helper::fixAsciiChars( $this->number );
|
||||
@@ -121,9 +118,12 @@ class ReceptionForm extends Model
|
||||
$this->cardSearchModel = new CardSearch();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function mkDoorLog(){
|
||||
|
||||
|
||||
|
||||
if ( !isset($this->card)){
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user