add hidden account, cart insert/delete
add hidden account support add delete/payout buttons to carts add backend product sales with pdf export add frontend product sales with pdf export add frontend ticket sales with pdf export
This commit is contained in:
@@ -67,10 +67,13 @@ use common\models\Account;
|
||||
<?= $form->field($model, 'comment')->textarea(['maxlength' => true]) ?>
|
||||
|
||||
<div class="row">
|
||||
<div class='col-md-6'>
|
||||
<div class='col-md-4'>
|
||||
<?php echo Html::a(Yii::t("frontend/ticket","Sell"),null,['class' => 'btn btn-danger btn-block', 'id' => 'btn_sell'] );?>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<?php echo Html::a(Yii::t("frontend/ticket","To cart"),null,['class' => 'btn btn-success btn-block', 'id' => 'btn_add_to_user_cart'] );?>
|
||||
</div>
|
||||
<div class='col-md-6'>
|
||||
<div class='col-md-4'>
|
||||
<?php
|
||||
if ( $receptionForm->isCardWithCustomer() ){
|
||||
echo Html::a(Yii::t("frontend/ticket","Write up"),null,['class' => 'btn btn-success btn-block', 'id' => 'btn_add_to_customer_cart'] );
|
||||
|
||||
@@ -31,6 +31,8 @@ $options['types'] = TicketType::modelsToArray($ticketTypes);
|
||||
$options['user_cart'] = $model->userCart;
|
||||
$options['customer_cart'] = $model->customerCart;
|
||||
$options['selected_type'] = count($ticketTypes) > 0 ? $ticketTypes[0]->id_ticket_type : 0;
|
||||
$options['url_delete_transaction'] = Url::toRoute(['transfer/delete']);
|
||||
$options['url_pay_transaction'] = Url::toRoute(['transfer/payout']);
|
||||
|
||||
$this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user