add rfid_key to card and key

This commit is contained in:
2015-12-28 21:03:52 +01:00
parent f6b483a9f9
commit 3b2f19b909
18 changed files with 108 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ class ReceptionForm extends Model
public function readCard(){
$this->card = Card::findOne(['number' => $this->number]);
$this->card = Card::find()->andWhere(['or',[ 'in','number' , [$this->number]],['in','rfid_key' ,[ $this->number]]])->one();
if ( $this->card != null ){
$this->customer = $this->card->customer;
$this->readValidTickets();