add reception global word listener,allow delete transactions, allow delete account_state

This commit is contained in:
2015-12-31 15:42:28 +01:00
parent f59eadd8cc
commit 0b58f628ed
13 changed files with 178 additions and 9 deletions

View File

@@ -42,7 +42,9 @@ class ReceptionForm extends Model
public function readCard(){
$this->card = Card::find()->andWhere(['or',[ 'in','number' , [$this->number]],['in','rfid_key' ,[ $this->number]]])->one();
$this->number = str_replace("ö", "0", $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();