Add unpaid tickets display
Add unpaid tickets display to reception
This commit is contained in:
@@ -26,6 +26,7 @@ class ReceptionForm extends Model
|
||||
public $card;
|
||||
public $customer;
|
||||
public $tickets;
|
||||
public $unpaidTickets;
|
||||
public $defaultAccount;
|
||||
public $cardSearchModel;
|
||||
public $lastCassaState;
|
||||
@@ -77,6 +78,7 @@ class ReceptionForm extends Model
|
||||
if ( $this->card != null ){
|
||||
$this->customer = $this->card->customer;
|
||||
$this->readValidTickets();
|
||||
$this->readUnpaidTicket();
|
||||
$this->readAssignedKeys();
|
||||
$this->readContract();
|
||||
}
|
||||
@@ -183,6 +185,10 @@ class ReceptionForm extends Model
|
||||
$this->tickets = Ticket::readActive($this->card);
|
||||
}
|
||||
|
||||
public function readUnpaidTicket(){
|
||||
$this->unpaidTickets = Ticket::readUnpaid($this->card);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true , if card found without customer
|
||||
* */
|
||||
|
||||
Reference in New Issue
Block a user