sale_can_edit_price = data.sale_can_edit_price; sale_can_add_sub_price = data.sale_can_add_sub_price; sale_out_of_stock = data.sale_out_of_stock; if (data.sale_can_edit_price == 'no') { $('.price').attr('readonly', 'readonly'); } } } }); } </script> <?php $sumTotalPrice = BillSale::sumTotalPrice(); $branchList = Branch::getOptions(); ?> <?php if (count($branchList) == 0) { ?> <script> $(function () { alert("<?php echo Yii::t('lang', 'sinceyou_have_not_yet_entered_the_field_Please_branches_before'); ?> "; window.location = 'index.php?r=Config/BranchIndex'; }); </script> <?php
echo $form->textField($model, 'bill_import_code', array('class' => 'form-control', 'style' => 'width: 200px')); ?> <!-- bill_import_created_date --> <label for=""><?php echo Yii::t('lang', 'date_received'); ?> </label> <?php echo $form->textField($model, 'bill_import_created_date', array('class' => 'form-control datepicker', 'style' => 'width: 200px')); ?> </div> <div> <?php $branchOptions = Branch::getOptions(); ?> <!-- branch_id --> <label for=""><?php echo Yii::t('lang', 'get_into_the_field'); ?> </label> <?php echo $form->dropdownList($model, 'branch_id', $branchOptions, array('class' => 'form-control', 'style' => 'width: 200px')); ?> <!-- from_branch_id --> <label for=""><?php echo Yii::t('lang', 'input_from_the_field'); ?>
<div> <?php echo $form->labelEx($model, 'member_address'); ?> <?php echo $form->textField($model, 'member_address', array('class' => 'form-control', 'style' => 'width: 700px')); ?> </div> <div> <?php echo $form->labelEx($model, 'branch_id'); ?> <?php echo $form->dropdownList($model, 'branch_id', Branch::getOptions(true), array('class' => 'form-control', 'style' => 'width: 300px')); ?> <font color="red"> * <?php echo Yii::t('lang', 'if_your_branch_is_based_on_the_employee_s_login_id_field'); ?> </font> </div> <div> <label><?php echo Yii::t('lang', 'more_details'); ?> </label> <?php echo $form->textField($model, 'remark', array('class' => 'form-control', 'style' => 'width: 500px'));
</div> <div class="panel-body"> <form name="form1" method="post"> <?php $date_find = Util::nowThai(); if (!empty($_POST)) { $date_find = $_POST['date_find']; } ?> <div> <label style="width: 80px"><?php echo Yii::t('lang', 'select_store'); ?> </label> <?php echo CHtml::dropdownList('branch_id', @$branch_id, Branch::getOptions(), array('class' => 'form-control', 'style' => 'width: 200px')); ?> </div> <div> <label style="width: 80px"><?php echo Yii::t('lang', 'choose_the_date'); ?> </label> <input type="text" name="date_find" class="form-control datepicker" style="width: 200px" value="<?php echo $date_find; ?> " /> ถึง <input type="text" name="date_end" class="form-control datepicker" style="width: 200px" value="<?php echo $date_end; ?>