Add property reception show stock.
This commit is contained in:
@@ -133,7 +133,7 @@ class ContractForm extends Model {
|
||||
],
|
||||
[
|
||||
[
|
||||
'ticket_type'
|
||||
'ticket_type'
|
||||
],
|
||||
'validateTicketType'
|
||||
] ,
|
||||
@@ -154,7 +154,7 @@ class ContractForm extends Model {
|
||||
|
||||
public function validateTicketType($attribute, $params) {
|
||||
$this->ticketType = TicketType::findOne ( $this->ticket_type );
|
||||
if (! isset ( $this->ticketType )) {
|
||||
if (! isset ( $this->ticketType ) ) {
|
||||
$this->addError ( $attribute, "Bérlet típus nem található" );
|
||||
}else{
|
||||
$contracts = Contract::find()
|
||||
|
||||
@@ -203,7 +203,9 @@ class ProductSaleForm extends Model
|
||||
$paid_at = date('Y-m-d H:i:s' ) ;
|
||||
}
|
||||
|
||||
$this->transfer = Transfer::createProductTransfer($this->sale,$this->account, $this->discount, $this->currency, $this->count, $this->product,$status,$customer);
|
||||
$this->transfer = Transfer::createProductTransfer($this->sale, $this->account, $this->discount,
|
||||
$this->currency, $this->count,
|
||||
$this->product,$status,$customer);
|
||||
$this->transfer->payment_method = $this->payment_method;
|
||||
if ( isset($this->comment)){
|
||||
$this->transfer->comment = $this->comment;
|
||||
|
||||
Reference in New Issue
Block a user