Exemple #1
0
//echo $form->error($model, 'refnum1');
?>

    <?php 
//echo $form->labelEx($model, 'refnum2');
?>
    
    <?php 
//echo $form->error($model, 'refnum2');
?>

    <?php 
//echo $form->labelEx($model, 'currency_id');
?>
    <?php 
echo $form->field($model, 'currency_id')->widget(Select2::className(), ['data' => \yii\helpers\ArrayHelper::map(Currates::GetRateList(), 'currency_id', 'name')]);
?>
    <?php 
//echo $form->error($model, 'currency_id');
?>
</div>
    </div>
<div class="row">
    <div class="col-md-12">   
        <table class="formy">
            <tbody>
                <tr>
                    <th class="header"><?php 
echo Yii::t('app', "Account");
?>
</th>
Exemple #2
0
echo $form->field($model, "[{$i}]doc_id")->hiddenInput();
?>
        <?php 
echo $form->field($model, "[{$i}]line")->hiddenInput();
?>
        <b><?php 
//echo $form->labelEx($model, 'type');
?>
</b>
            
            
            <?php 
//Doctype::getList()
$temp = \app\models\PaymentType::getList();
$temp[0] = Yii::t('app', 'None');
$curr = \yii\helpers\ArrayHelper::map(\app\models\Currates::GetRateList(), 'currency_id', 'name');
echo $form->field($model, "[{$i}]type")->dropDownList($temp);
?>
    </td>
    <td id="Doccheques_<?php 
echo $i;
?>
_text"></td>


    <td><b><?php 
//echo $form->labelEx($model, 'currency_id');
?>
</b><?php 
echo $form->field($model, "[{$i}]currency_id")->dropDownList($curr);
?>
Exemple #3
0
<div class="form">

    <?php 
use yii\helpers\ArrayHelper;
use kartik\select2\Select2;
$form = kartik\form\ActiveForm::begin(array('id' => 'accounts-form' . $model->type, 'options' => array('enctype' => 'multipart/form-data')));
$id6111 = ArrayHelper::map(\app\models\AccId6111::find()->All(), 'id', 'name');
$id6111[0] = Yii::t('app', 'None');
$currncies = ArrayHelper::map(\app\models\Currates::GetRateList(), 'currency_id', 'name');
$accounts = ArrayHelper::map(\app\models\Accounts::find()->all(), 'id', 'name');
$accounts[0] = Yii::t('app', 'None');
$acccat = ArrayHelper::map(\app\models\AccCat::find()->where(["type_id" => $model->type])->all(), 'id', 'name');
?>

    <?php 
echo $form->errorSummary($model);
?>
    <?php 
echo $form->field($model, 'type', ['template' => '{input}'])->hiddenInput();
?>
    <div class="col-md-4 col-sm-6">
        <?php 
app\widgets\TbPanel::begin(array('header' => Yii::t('app', "Account General Details")));
?>
        <?php 
echo $form->field($model, 'name');
?>
        <?php 
echo $form->field($model, 'cat_id')->dropDownList($acccat);
?>
      
Exemple #4
0
                <?php 
echo $form->field($model, 'purchaseprice');
?>
                <?php 
echo $form->field($model, 'profit');
?>
                <?php 
echo $form->field($model, 'itemVatCat_id')->dropDownList(ArrayHelper::map(ItemVatCat::find()->asArray()->all(), 'id', 'name'));
?>
            
                <?php 
echo $form->field($model, 'saleprice');
?>
	
                <?php 
echo $form->field($model, 'currency_id')->dropDownList(ArrayHelper::map(Currates::GetRateList(), 'currency_id', 'name'));
?>
            <?php 
TbPanel::end();
?>
            
        </div>
        <div class="col-md-4 col-sm-6">
            <?php 
TbPanel::begin(array('header' => Yii::t('app', "EAV Fields")));
///*
echo app\widgets\eavProp::Widget(array('model' => $model, 'name' => get_class($model), 'attr' => $model->getEavAttributes()));
//*/
TbPanel::end();
?>
            <?php