<?php /* Smarty version Smarty-3.1.11, created on 2025-02-19 23:47:14
         compiled from "../views/default/billsettingsview/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:150157902467b651623dd733-85664578%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '04931115f097af321a53c65aadf76eb5ce1a4a1e' => 
    array (
      0 => '../views/default/billsettingsview/edit.html',
      1 => 1740000156,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '150157902467b651623dd733-85664578',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'data' => 0,
    'Billsettingdata' => 0,
    'myBillproperty' => 0,
    'programSettingData' => 0,
    'j' => 0,
    'bankAccounts' => 0,
    'acc' => 0,
    'countallBillproperty' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67b65162745488_65229260',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67b65162745488_65229260')) {function content_67b65162745488_65229260($_smarty_tpl) {?><script>
    $(document).ready(function (e) {

    });

</script>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">إدارة الفواتير</a></li>
            <li><a href="#">الفاتورة</a></li>
            <li class="active">تعديل فاتورة</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تعديل فاتورة</h3>
            </div>
            <div class="panel-body"> 
                <form class="nameToBeChecked form-horizontal" action="billsettingsController.php?do=update"
                    method="post">
                    <!--validate the form before checking name-->
                    

                    <!---


                    -->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم الفاتورة</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input type="text" name="name" id="name" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
"
                                    placeholder="اسم الفاتورة" />
                                <span class="textfieldRequiredMsg">ادخل اسم الفاتورة</span></span>
                            <div id="nameError" class="alert alert-block alert-danger fade in" style="display:none">
                                <button type="button" class="close pull-left" data-dismiss="alert"
                                    aria-hidden="true">&times;</button>
                                <h4>رسالة خطأ</h4>
                                <p>هذا الإسم مستخدم من قبل</p>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>

                    <!--==============================-->


                    <div class="form-group">
                        <label class="col-lg-2 control-label">مشتريات/ مبيعات </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="billType" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->billtype;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?> checked="checked"
                                    <?php }?> value="0" />مبيعات
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="billType" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->billtype;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1){?> checked="checked"
                                    <?php }?> value="1" />مشتريات
                                </label>
                            </div>
                        </div>
                    </div>

                    <!--==============================-->


                    <div class="form-group">
                        <label class="col-lg-2 control-label">امر شراء او امر بيع <br />(لا توجد بها مردودات)</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="ordertype" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->ordertype;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0){?> checked="checked"
                                    <?php }?> value="0" />لا
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="ordertype" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->ordertype;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?> checked="checked"
                                    <?php }?> value="1" />نعم
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اظهار منتجات وكميات فقط <br />(لا تنطبق الا على امر
                            الشراء)</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="productAndQuantityOnly" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->productAndQuantityOnly;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==0){?> checked="checked" <?php }?> value="0" />لا
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="productAndQuantityOnly" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->productAndQuantityOnly;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==1){?> checked="checked" <?php }?> value="1" />نعم
                                </label>
                            </div>
                        </div>
                    </div>

                    <!--==============================-->



                    <div class="form-group">
                        <label class="col-lg-2 control-label">يؤثر فى الخزنة<br />(لا تنطبق الا على امر الشراء) </label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="saveeffect" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->saveeffect;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==0){?>
                                    checked="checked" <?php }?> value="0" />نعم
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="saveeffect" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->saveeffect;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==1){?>
                                    checked="checked" <?php }?> value="1" />لا
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">نوع الفاتورة</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="billType2" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->billtype2;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==0){?> checked="checked"
                                    <?php }?> value="0" />عادى
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="billType2" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->billtype2;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==1){?> checked="checked"
                                    <?php }?> value="1" />بصريات
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->


                    <div class="form-group">
                        <label class="col-lg-2 control-label">الباركود المستخدم فى الفاتورة</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="parcodeType" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->parcodeType;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11==0){?>
                                    checked="checked" <?php }?> value="0" />باركود
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="parcodeType" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->parcodeType;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==1){?>
                                    checked="checked" <?php }?> value="1" />باركود مخصص
                                </label>
                            </div>
                        </div>
                    </div>

                    <!--==============================-->

                    <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable(1, null, 0);?>
                    <?php  $_smarty_tpl->tpl_vars['myBillproperty'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myBillproperty']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['Billsettingdata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myBillproperty']->key => $_smarty_tpl->tpl_vars['myBillproperty']->value){
$_smarty_tpl->tpl_vars['myBillproperty']->_loop = true;
?>



                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13=='نوع السعر'){?>


                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showpriceall==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==0){?>checked="checked" <?php }?> type="radio" checked="checked"
                                value="0" />جمله</label>
                        </div>
                        <?php }?>
                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showpricehalf==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==2){?>checked="checked" <?php }?> type="radio" value="2" />نصف
                                جمله</label>
                        </div>
                        <?php }?>
                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showpriceunit==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==1){?>checked="checked" <?php }?> type="radio" value="1" />تجزئة </label>
                        </div>
                        <?php }?>
                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showprice4==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==4){?>checked="checked" <?php }?> type="radio" value="4" />سعر4 </label>
                        </div>
                        <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showprice5==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==5){?>checked="checked" <?php }?> type="radio" value="5" />سعر5</label>
                        </div>
                        <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showprice6==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19==6){?>checked="checked" <?php }?> type="radio" value="6" />سعر6</label>
                        </div>
                        <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showprice7==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==7){?>checked="checked" <?php }?> type="radio" value="7" />سعر7</label>
                        </div>
                        <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->showprice8==1){?>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==8){?>checked="checked" <?php }?> type="radio" value="8" />سعر8 </label>
                        </div>
                        <?php }?>

                    </div>


                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22=='نوع الفاتوره'){?>
                    <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                    <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />

                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23==0){?>checked="checked" <?php }?> value="0" />عادى</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==1){?>checked="checked" <?php }?>/>اذن صرف</label>
                        </div>

                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25==2){?>checked="checked" <?php }?> />امر شراء </label>
                        </div>
                    </div>

                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26=='نوع الخصم لكل منتج'){?>


                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27==0){?>checked="checked" <?php }?> type="radio" checked="checked"
                                value="0" />مباشر</label>
                        </div>


                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==1){?>checked="checked" <?php }?> type="radio" value="1" />نسبه </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29=='المدفوع اكبر من قيمه الفاتوره'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32=='البحث باسم التصنيف والمنتج فقط'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33==0){?>checked="checked" <?php }?> type="radio" value="0" />نعم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==1){?>checked="checked" <?php }?> type="radio" value="1" />البحث باسم
                                اللون والمقاس ايضا <span style="color: red">"ابطأ فى البحث"</span> </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp35=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp35=='تجميع المنتجات المتشابه مع
                    بعضها'||$_tmp36=='ربط نوع السعر بالعميل'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp37=ob_get_clean();?><?php if ($_tmp37==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp38=ob_get_clean();?><?php if ($_tmp38==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>

                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp39=ob_get_clean();?><?php if ($_tmp39=='نوع الخصم العام'){?>


                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp40=ob_get_clean();?><?php if ($_tmp40==0){?>checked="checked" <?php }?> type="radio" value="0" />مباشر </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp41=ob_get_clean();?><?php if ($_tmp41==1){?>checked="checked" <?php }?> type="radio" value="1" />نسبة </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp42=ob_get_clean();?><?php if ($_tmp42==2){?>checked="checked" <?php }?> type="radio" value="2" />الاثنان معا
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp43=ob_get_clean();?><?php if ($_tmp43=='طباعة بيانات'){?>


                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp44=ob_get_clean();?><?php if ($_tmp44==0){?>checked="checked" <?php }?> type="radio" value="0" />اعدادات
                                البرنامج</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp45=ob_get_clean();?><?php if ($_tmp45==1){?>checked="checked" <?php }?> type="radio" value="1" />الفرع </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp46=ob_get_clean();?><?php if ($_tmp46==2){?>checked="checked" <?php }?> type="radio" value="2" />اخفاء </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp47=ob_get_clean();?><?php if ($_tmp47=="print_client_name"){?>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp48=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp49=ob_get_clean();?><?php if ($_tmp48=="a4"||$_tmp49=="طباعة
                    a5"){?>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp50=ob_get_clean();?><?php if ($_tmp50=='طباعة'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>

                            "فواتير البيع فقط" </label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp51=ob_get_clean();?><?php if ($_tmp51==0){?>checked="checked" <?php }?> type="radio" value="0" />نموذج 1
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp52=ob_get_clean();?><?php if ($_tmp52==1){?>checked="checked" <?php }?> type="radio" value="1" />نموذج 2
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp53=ob_get_clean();?><?php if ($_tmp53==2){?>checked="checked" <?php }?> type="radio" value="2" />نموذج 3
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp54=ob_get_clean();?><?php if ($_tmp54==3){?>checked="checked" <?php }?> type="radio" value="3" />نموذج 4
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp55=ob_get_clean();?><?php if ($_tmp55==4){?>checked="checked" <?php }?> type="radio" value="4" />نموذج 5
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp56=ob_get_clean();?><?php if ($_tmp56==5){?>checked="checked" <?php }?> type="radio" value="5" />نموذج 6
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp57=ob_get_clean();?><?php if ($_tmp57==6){?>checked="checked" <?php }?> type="radio" value="6" />نموذج 7
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp58=ob_get_clean();?><?php if ($_tmp58==7){?>checked="checked" <?php }?> type="radio" value="7" />نموذج 8
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp59=ob_get_clean();?><?php if ($_tmp59==8){?>checked="checked" <?php }?> type="radio" value="8" />نموذج 9
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp60=ob_get_clean();?><?php if ($_tmp60==9){?>checked="checked" <?php }?> type="radio" value="9" />نموذج 10
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp61=ob_get_clean();?><?php if ($_tmp61=="تفعيل ميزان الباركود"){?>


                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp62=ob_get_clean();?><?php if ($_tmp62==0){?>checked="checked" <?php }?> type="radio" value="0"
                                class="parcodeSettingClass"/>اظهار </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp63=ob_get_clean();?><?php if ($_tmp63==1){?>checked="checked" <?php }?> type="radio" value="1"
                                class="parcodeSettingClass"/>اخفاء </label>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields" <?php if ($_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue==1){?>style="display: none"<?php }?>>
                        <label class="col-lg-2 control-label">الكود المميز</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield2">
                                <input type="text" name="posFlag" id="posFlag" class="form-control positiveNo"
                                    value="<?php echo $_smarty_tpl->tpl_vars['data']->value->posFlag;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields" <?php if ($_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue==1){?>style="display: none"<?php }?>>
                        <label class="col-lg-2 control-label">عدد ارقام كود المنتج</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield3">
                                <input type="text" name="posCode" id="posCode" class="form-control positiveNo"
                                    value="<?php echo $_smarty_tpl->tpl_vars['data']->value->posCode;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields" <?php if ($_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue==1){?>style="display: none"<?php }?>>
                        <label class="col-lg-2 control-label">الخانة التالية تعبر عن</label>
                        <div class="radio-inline">
                            <label>
                                <input name="posType" type="radio" checked="checked" value="0" <?php if ($_smarty_tpl->tpl_vars['data']->value->posType==0){?>checked="checked" <?php }?>/>وزن المنتج</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="posType" type="radio" value="1" <?php if ($_smarty_tpl->tpl_vars['data']->value->posType==1){?>checked="checked"
                                <?php }?>/>سعر المنتج</label>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields" <?php if ($_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue==1){?>style="display: none"<?php }?>>
                        <label class="col-lg-2 control-label">عدد ارقام الخانة التالية</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield4">
                                <input type="text" name="posWeightPrice" id="posWeightPrice"
                                    class="form-control positiveNo" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->posWeightPrice;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group parcodeSettingFields" <?php if ($_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue==1){?>style="display: none"<?php }?>>
                        <label class="col-lg-2 control-label">تمييز اخر الباركود</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield5">
                                <input type="text" name="checkDigit" id="checkDigit" class="form-control positiveNo"
                                    value="<?php echo $_smarty_tpl->tpl_vars['data']->value->checkDigit;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                        <div class="col-lg-6">
                            <label class="control-label">
                                <span style="color:red">ملحوظة :</span> القيمة صفر تعنى اى قيمة
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp64=ob_get_clean();?><?php if ($_tmp64=='زر حفظ يعود الى'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp65=ob_get_clean();?><?php if ($_tmp65==0){?>checked="checked" <?php }?> type="radio" value="0" />تفاصيل
                                الفاتورة</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp66=ob_get_clean();?><?php if ($_tmp66==1){?>checked="checked" <?php }?> type="radio" value="1" />فاتورة
                                جديدة</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp67=ob_get_clean();?><?php if ($_tmp67=='البائع - المندوب إلزامى'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp68=ob_get_clean();?><?php if ($_tmp68==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp69=ob_get_clean();?><?php if ($_tmp69==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp70=ob_get_clean();?><?php if ($_tmp70=="اقرار استلام بضاعه"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-اقرار استلام
                            بضاعه</label>
                        <div class="col-lg-4">
                            <input type="text" name="goodsReceiptApproval" id="goodsReceiptApproval"
                                class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->goodsReceiptApproval;?>
">

                            <!-- fatma => should not be like that but it fix error -->
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                            <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="0" />

                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp71=ob_get_clean();?><?php if ($_tmp71=="الهامش"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-الهامش</label>
                        <div class="col-lg-4">
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                            <span id="sprytextfieldmargin">
                                <input type="text" name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
"
                                    class="form-control positiveNo" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>

                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp72=ob_get_clean();?><?php if ($_tmp72=="التعليق على العميل"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-التعليق على
                            العميل</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                    <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                        value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                    <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp73=ob_get_clean();?><?php if ($_tmp73==0){?> checked="checked" <?php }?> value="0"
                                    />اظهار
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp74=ob_get_clean();?><?php if ($_tmp74==1){?> checked="checked" <?php }?> value="1"
                                    />اخفاء
                                </label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp75=ob_get_clean();?><?php if ($_tmp75=="الفواتير المحفوظة"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-الفواتير
                            المحفوظة</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp76=ob_get_clean();?><?php if ($_tmp76==1){?> checked="checked" <?php }?> value="1" />اظهار
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp77=ob_get_clean();?><?php if ($_tmp77==0){?> checked="checked" <?php }?> value="0" />اخفاء
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp78=ob_get_clean();?><?php if ($_tmp78=="الطول و العرض"){?>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-الطول و العرض</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp79=ob_get_clean();?><?php if ($_tmp79==1){?> checked="checked" <?php }?> value="1" />اظهار
                            </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp80=ob_get_clean();?><?php if ($_tmp80==0){?> checked="checked" <?php }?> value="0" />اخفاء
                            </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp81=ob_get_clean();?><?php if ($_tmp81=='نوع السعر مع كل صف'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp82=ob_get_clean();?><?php if ($_tmp82==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp83=ob_get_clean();?><?php if ($_tmp83==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp84=ob_get_clean();?><?php if ($_tmp84=="الدفع الالكترونى"){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" checked="checked" value="0"
                                    class="visaPaymentClass" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp85=ob_get_clean();?><?php if ($_tmp85==0){?>checked="checked" <?php }?>/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" class="visaPaymentClass" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp86=ob_get_clean();?><?php if ($_tmp86==1){?>checked="checked" <?php }?>/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields">
                        <label class="col-lg-2 control-label">الحساب الافتراضى للدفع الالكترونى</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select class="select2 wds100" name="defVisaAccount" id="defVisaAccount">
                                    <option></option>
                                    <?php  $_smarty_tpl->tpl_vars['acc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['acc']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['bankAccounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['acc']->key => $_smarty_tpl->tpl_vars['acc']->value){
$_smarty_tpl->tpl_vars['acc']->_loop = true;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['acc']->value->accountid;?>
" <?php if ($_smarty_tpl->tpl_vars['data']->value->defVisaAccount==$_smarty_tpl->tpl_vars['acc']->value->accountid){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['acc']->value->accountname;?>
/<?php echo $_smarty_tpl->tpl_vars['acc']->value->bankname;?>
</option>
                                    <?php } ?>
                                </select>
                                <span class="selectRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields">
                        <label class="col-lg-2 control-label">الحساب الافتراضى للدفع الالكترونى</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="defVisaAccountSelect" type="radio" checked="checked" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->defVisaAccountSelect;?>
<?php $_tmp87=ob_get_clean();?><?php if ($_tmp87==0){?>checked="checked" <?php }?>/>اخفاء</label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="defVisaAccountSelect" type="radio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->defVisaAccountSelect;?>
<?php $_tmp88=ob_get_clean();?><?php if ($_tmp88==1){?>checked="checked" <?php }?>/>اختيار من القائمة
                                    المنسدلة</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group visaPaymentFields">
                        <label class="col-lg-2 control-label">خيار التحويل البنكى</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input name="isBankAccountTransfer" type="radio" checked="checked" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->isBankAccountTransfer;?>
<?php $_tmp89=ob_get_clean();?><?php if ($_tmp89==0){?>checked="checked" <?php }?>/>اخفاء</label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="isBankAccountTransfer" type="radio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->isBankAccountTransfer;?>
<?php $_tmp90=ob_get_clean();?><?php if ($_tmp90==1){?>checked="checked" <?php }?>/>اظهار</label>
                            </div>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp91=ob_get_clean();?><?php if ($_tmp91=="خزنة الفاتورة"){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" checked="checked" value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp92=ob_get_clean();?><?php if ($_tmp92==0){?>checked="checked" <?php }?>/>خزنة
                                المستخدم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp93=ob_get_clean();?><?php if ($_tmp93==1){?>checked="checked" <?php }?>/>اختيار من
                                متعدد</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp94=ob_get_clean();?><?php if ($_tmp94=='طباعة التصنيف بدل المنتجات'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp95=ob_get_clean();?><?php if ($_tmp95==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp96=ob_get_clean();?><?php if ($_tmp96==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp97=ob_get_clean();?><?php if ($_tmp97=='فاتورة ضريبية'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp98=ob_get_clean();?><?php if ($_tmp98==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp99=ob_get_clean();?><?php if ($_tmp99==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp100=ob_get_clean();?><?php if ($_tmp100=='تفعيل الحفظ التلقائى'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp101=ob_get_clean();?><?php if ($_tmp101==0){?>checked="checked" <?php }?> type="radio" value="0" />لا </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp102=ob_get_clean();?><?php if ($_tmp102==1){?>checked="checked" <?php }?> type="radio" value="1" />نعم </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp103=ob_get_clean();?><?php if ($_tmp103=='نوع العميل'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp104=ob_get_clean();?><?php if ($_tmp104==0){?>checked="checked" <?php }?> type="radio" value="0" />اجل </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp105=ob_get_clean();?><?php if ($_tmp105==1){?>checked="checked" <?php }?> type="radio" value="1" />نقدى </label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp106=ob_get_clean();?><?php if ($_tmp106=="ضريبة خصم"){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp107=ob_get_clean();?><?php if ($_tmp107==0){?>checked="checked" <?php }?> value="0" class="taxOfDiscountClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp108=ob_get_clean();?><?php if ($_tmp108==1){?>checked="checked" <?php }?> value="1" class="taxOfDiscountClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group taxOfDiscountfields">
                        <label class="col-lg-2 control-label">قيمة ضريبة الخصم</label>
                        <div class="col-lg-4">
                            <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                            <span id="sprytextfieldTaxOfDiscountVal">
                                <input type="text" name="taxOfDiscountVal" id="taxOfDiscountVal"
                                    class="form-control positivefloat" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->taxOfDiscountVal;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <div class="form-group taxOfDiscountfields">
                        <label class="col-lg-2 control-label">طباعة ضريبة الخصم</label>
                        <div class="radio-inline">
                            <label>
                                <input name="taxOfDiscountPrint" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->taxOfDiscountPrint;?>
<?php $_tmp109=ob_get_clean();?><?php if ($_tmp109==0){?>checked="checked" <?php }?> value="0" />نعم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="taxOfDiscountPrint" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->taxOfDiscountPrint;?>
<?php $_tmp110=ob_get_clean();?><?php if ($_tmp110==1){?>checked="checked" <?php }?> value="1" />لا</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp111=ob_get_clean();?><?php if ($_tmp111=="خصم اضافى"){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp112=ob_get_clean();?><?php if ($_tmp112==0){?>checked="checked" <?php }?> value="0" class="extraDiscountClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp113=ob_get_clean();?><?php if ($_tmp113==1){?>checked="checked" <?php }?> value="1" class="extraDiscountClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountfields">
                        <label class="col-lg-2 control-label">تطبيق الخصم الاضافى</label>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountPlace" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->extraDiscountPlace;?>
<?php $_tmp114=ob_get_clean();?><?php if ($_tmp114==0){?>checked="checked" <?php }?> value="0" />بعد الخصم</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountPlace" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->extraDiscountPlace;?>
<?php $_tmp115=ob_get_clean();?><?php if ($_tmp115==1){?>checked="checked" <?php }?> value="1" />قبل الخصم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountfields">
                        <label class="col-lg-2 control-label">تثبيت النسبة</label>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountFixed" id="extraDiscountFixed0" type="radio" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->extraDiscountFixed;?>
<?php $_tmp116=ob_get_clean();?><?php if ($_tmp116==0){?>checked="checked" <?php }?> value="0"
                                class="extraDiscountFixedClass"/>لا</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="extraDiscountFixed" id="extraDiscountFixed1" type="radio" value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->extraDiscountFixed;?>
<?php $_tmp117=ob_get_clean();?><?php if ($_tmp117==1){?>checked="checked" <?php }?>
                                class="extraDiscountFixedClass"/>نعم</label>
                        </div>
                    </div>
                    <div class="form-group extraDiscountFixedfield">
                        <label class="col-lg-2 control-label">نسبة الخصم الاضافى</label>
                        <div class="col-lg-4">
                            <span id="sprytextfieldExtraDiscountPer">
                                <input type="text" name="extraDiscountPer" id="extraDiscountPer"
                                    class="form-control positivefloat" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->extraDiscountPer;?>
">
                                <span class="textfieldRequiredMsg">هذا الحقل مطلوب</span>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp118=ob_get_clean();?><?php if ($_tmp118=='رد المنتجات لعميل'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp119=ob_get_clean();?><?php if ($_tmp119==0){?>checked="checked" <?php }?> type="radio" value="0" />كل المنتجات</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp120=ob_get_clean();?><?php if ($_tmp120==1){?>checked="checked" <?php }?> type="radio" value="1" />المنتجات المباعة مسبقا فقط</label>
                        </div>
                    </div>
                    <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
<?php $_tmp121=ob_get_clean();?><?php if ($_tmp121=='مسمى الحالات'){?>
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp122=ob_get_clean();?><?php if ($_tmp122==0){?>checked="checked" <?php }?> type="radio" value="0" />تجهيز - تم الشحن</label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp123=ob_get_clean();?><?php if ($_tmp123==1){?>checked="checked" <?php }?> type="radio" value="1" />إرسال للمصنع - استلام من المصنع</label>
                        </div>
                    </div>
                    <?php }else{ ?>

                    <!-- علشان اخفى وحدة القياس -->
                    
                    <div class="form-group">
                        <label
                            class="col-lg-2 control-label"><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
-<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyname;?>
</label>
                        <div class="radio-inline">
                            <label>
                                <input name="billpropertyid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billpropertyid;?>
" />
                                <input name="billsettingsid<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="hidden"
                                    value="<?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsid;?>
" />
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp124=ob_get_clean();?><?php if ($_tmp124==0){?>checked="checked" <?php }?> type="radio" value="0" />اظهار </label>
                        </div>
                        <div class="radio-inline">
                            <label>
                                <input name="settingsvalue<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myBillproperty']->value->billsettingsvalue;?>
<?php $_tmp125=ob_get_clean();?><?php if ($_tmp125==1){?>checked="checked" <?php }?> type="radio" value="1" />اخفاء </label>
                        </div>
                    </div>
                    
                    <?php }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}?>
                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'j', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['j']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                    <?php } ?>
                    <input name="countallBillproperty" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['countallBillproperty']->value;?>
" />
                    <input type="hidden" name="billnameid" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->billnameid;?>
" id="billnameid" />
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit" class="btn btn-primary pull-left">حفظ</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");

    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
    var sprytextfieldmargin = new Spry.Widget.ValidationTextField("sprytextfieldmargin");

    $(".parcodeSettingClass").live('change', function () {
        var val = $(this).val();
        if (val == 0) {
            $('.parcodeSettingFields').show();
            sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
            sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
        } else {
            $('.parcodeSettingFields').hide();
            sprytextfield2.destroy();
            sprytextfield3.destroy();
            sprytextfield4.destroy();
            sprytextfield5.destroy();
        }
    });

    var spryselect1 = '';//new Spry.Widget.ValidationSelect("spryselect1", {invalidValue: "-1"});
    $(".visaPaymentClass").live('change', function () {
        var val = $(".visaPaymentClass:checked").val();
        if (val == 0) {
            $('.visaPaymentFields').hide();
            try {
                spryselect1.destroy();
            } catch (e) {
            }
        } else {
            $('.visaPaymentFields').show();
            spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", { invalidValue: "-1" });
        }
    });
    $(".visaPaymentClass").change();

    var sprytextfieldTaxOfDiscountVal = '';//new Spry.Widget.ValidationTextField("sprytextfieldTaxOfDiscountVal");
    $(".taxOfDiscountClass").live('change', function () {
        var val = $(".taxOfDiscountClass:checked").val();
        if (val == 0) {
            $('.taxOfDiscountfields').hide();
            $('#taxOfDiscountVal').val('0');
            try {
                sprytextfieldTaxOfDiscountVal.destroy();
            } catch (e) {
            }
        } else {
            $('.taxOfDiscountfields').show();
            sprytextfieldTaxOfDiscountVal = new Spry.Widget.ValidationTextField("sprytextfieldTaxOfDiscountVal");
        }
    });
    $(".taxOfDiscountClass").change();
    $(".extraDiscountClass").live('change', function () {
        var val = $(".extraDiscountClass:checked").val();
        if (val == 0) {
            $("#extraDiscountFixed0").attr('checked', 'checked').change();
            $('.extraDiscountfields').hide();
        } else {
            $('.extraDiscountfields').show();
        }
    });
    $(".extraDiscountClass").change();

    var sprytextfieldExtraDiscountPer = '';//new Spry.Widget.ValidationTextField("sprytextfieldExtraDiscountPer");
    $(".extraDiscountFixedClass").live('change', function () {
        var val = $(".extraDiscountFixedClass:checked").val();
        if (val == 0) {
            $('.extraDiscountFixedfield').hide();
            $('#extraDiscountPer').val('0');
            try {
                sprytextfieldExtraDiscountPer.destroy();
            } catch (e) {
            }
        } else {
            $('.extraDiscountFixedfield').show();
            sprytextfieldExtraDiscountPer = new Spry.Widget.ValidationTextField("sprytextfieldExtraDiscountPer");
        }
    });
    $(".extraDiscountFixedClass").change();

</script>
<?php }} ?>