?> <?php echo Html::hiddenInput('', '', ['id' => 'total-sales']); ?> <?php echo Html::submitButton('Close', ['class' => 'btn btn-danger', 'disabled' => true, 'id' => 'btn-drawer-close']); ?> </p> <?php ActiveForm::end(); ?> <div id="pending-post"> <p>Pending:</p> <table id="list-pos" style="width: 100%"> <thead> <tr> <th>No</th> <th>Time</th> <th>Jumlah Item</th> <th>Total Item</th> <th>Total Nilai</th> </tr> </thead> <tbody></tbody> </table> </div> </div> <?php $biz = ['id_drawer' => $model->id_cashdrawer, 'config' => ['pushUrl' => Url::toRoute(['save-pos']), 'delay' => 1000, 'pushInterval' => 10000, 'showInterval' => 10000, 'totalCashDrawerUrl' => Url::toRoute(['total-cash'])]]; BizDataAsset::register($this, $biz); DrawerAsset::register($this);
</div> </div> </div> <div class="col-lg-8"> <?php echo $this->render('_detail'); ?> <div> <?php Html::a('Save', '', ['class' => 'btn btn-primary', 'id' => 'btn-save']); ?> <?php Html::a('New Session', '', ['class' => 'btn btn-success', 'id' => 'new-session']); ?> </div> </div> <?php echo $this->render('_dialog', ['form' => $form]); ?> <?php ActiveForm::end(); ?> </div> <?php PosAsset::register($this); BizDataAsset::register($this, ['master' => [], 'config' => ['pushUrl' => Url::toRoute(['save-pos']), 'newDrawerUrl' => Url::toRoute(['open-new-drawer']), 'checkDrawerUrl' => Url::toRoute(['check-drawer']), 'pullMasterUrl' => Url::toRoute(['masters']), 'delay' => 1000, 'pushInterval' => 10000]]); $js_ready = '$("#product").data("ui-autocomplete")._renderItem = yii.global.renderItemPos;'; $this->registerJs($js_ready);
$field->hiddenInput(['id' => 'id_supplier']); $field->parts['{text}'] = AutoComplete::widget(['model' => $model, 'attribute' => 'idSupplier[nm_supplier]', 'options' => ['class' => 'form-control', 'id' => $el_id], 'clientOptions' => ['source' => new JsExpression("yii.purchase.sourceSupplier"), 'select' => new JsExpression("yii.purchase.onSupplierSelect"), 'open' => new JsExpression("yii.purchase.onSupplierOpen")]]); echo $field; ?> <?php echo $form->field($model, 'id_warehouse')->dropDownList(Helper::getWarehouseList()); ?> <?php echo $form->field($model, 'purchaseDate')->widget('yii\\jui\\DatePicker', ['options' => ['class' => 'form-control', 'style' => 'width:50%'], 'clientOptions' => ['dateFormat' => 'dd-mm-yy']]); ?> </div> <div class="panel-footer" style="text-align: right;"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> </div> <?php echo $this->render('_detail', ['model' => $model, 'details' => $details]); ?> <?php ActiveForm::end(); ?> </div> <?php PurchaseAsset::register($this); BizDataAsset::register($this, ['master' => $masters]); $js_ready = '$("#product").data("ui-autocomplete")._renderItem = yii.global.renderItem;'; $this->registerJs($js_ready);