add rfid_key to card and key
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user