<?php /* Smarty version Smarty-3.1.11, created on 2024-01-20 22:54:31
         compiled from "../views/default/returnbuybillview/details.html" */ ?>
<?php /*%%SmartyHeaderCode:114568590565ac3307891251-92503021%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f7159fc06c987e1ceb8476781c1260f0a21193cb' => 
    array (
      0 => '../views/default/returnbuybillview/details.html',
      1 => 1694894782,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '114568590565ac3307891251-92503021',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'billnameAddData' => 0,
    'Programsettingdata' => 0,
    'billnameid' => 0,
    'billSettingsData' => 0,
    'returnbuybillData' => 0,
    'billsettingsData' => 0,
    'allCostcenter' => 0,
    'myallCostcenter' => 0,
    'usergroup' => 0,
    'returnbuybilldetailData' => 0,
    'detail' => 0,
    'countBillDetails' => 0,
    'taxvalue' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65ac3307a349a6_82082341',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65ac3307a349a6_82082341')) {function content_65ac3307a349a6_82082341($_smarty_tpl) {?>

<style>

    @media print{

        tr > .myblack {
            border: 1px solid black !important;
        }


        .myleft{
            padding-top: 20px !important;
        }

        .mymargin{
            margin-top: -20px !important;
        }
    }
</style>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">إدارة الفواتير</a></li>
            <li><a href="#">فاتورة الشراء</a></li>
            <li class="active">عرض فاتورة</li>
        </ol>

        <h3><?php echo $_smarty_tpl->tpl_vars['billnameAddData']->value->name;?>
</h3>
        <hr />
        <form class="form-horizontal" role="form" action="returnBuyBillController.php?do=show" method="post" id="billform">

            <!-- =========================== START BUY BILL SETTINGS ================================== -->
            <input name="printingpapersize" id="printingpapersize" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->printingpapersize;?>
" />

            <input type="hidden" name="billnameid" id="billnameid" value="<?php echo $_smarty_tpl->tpl_vars['billnameid']->value;?>
"/>
            <input type="hidden" name="returnBillSetting" id="returnBillSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[0]->billsettingsvalue;?>
"/>
            <input type="hidden" name="storeSetting" id="storeSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[2]->billsettingsvalue;?>
"/>
            <input type="hidden" name="parcodeSetting" id="parcodeSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[4]->billsettingsvalue;?>
"/>
            <input type="hidden" name="dateSetting" id="dateSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[5]->billsettingsvalue;?>
"/>
            <input type="hidden" name="newProductSetting" id="newProductSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[6]->billsettingsvalue;?>
"/>
            <input type="hidden" name="noteSetting" id="noteSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[7]->billsettingsvalue;?>
"/>
            <input type="hidden" name="productDiscountSetting" id="productDiscountSetting" value="<?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[8]->billsettingsvalue;?>
"/>
            <!-- ==========================  END BUY BILL SETTINGS ============================ -->

            <!-- =========================== START GENERAL INFO PANEL =====================-->
            <div class="row">
                <div class="col-lg-8">
                    <div class="form-group mg-bt5"  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[61]->billsettingsvalue;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?> style="display:block" <?php }else{ ?> style="display:none" <?php }?>>
                        <label class="col-lg-2 control-label myleft">رقم الفاتورة</label>
                        <div class="col-lg-4">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillSerial;?>

                            </p>
                        </div>
                    </div>


                    <div class="form-group mg-bt5" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[45]->billsettingsvalue;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>  <?php }else{ ?> style="display:none" <?php }?>>
                        <label class="col-lg-4 control-label">مركز التكلفة </label>
                        <div class="col-lg-8">


                            <?php  $_smarty_tpl->tpl_vars['myallCostcenter'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallCostcenter']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allCostcenter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallCostcenter']->key => $_smarty_tpl->tpl_vars['myallCostcenter']->value){
$_smarty_tpl->tpl_vars['myallCostcenter']->_loop = true;
?>

                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->costcenterid;?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallCostcenter']->value->id;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp3==$_tmp4){?>
                            <p class="form-control-static">

                                <?php echo $_smarty_tpl->tpl_vars['myallCostcenter']->value->name;?>

                            </p>

                            <?php }?>
                            <?php } ?>


                        </div>
                    </div>
                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->clientserial==1){?>
                    <!-- end of form-group-->
                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label myleft">رقم تسلسل الفاتورة</label>
                        <div class="col-lg-4">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillid;?>

                            </p>
                        </div>
                    </div>
                    <?php }?>
                    <!-- end of form-group-->
                    <div class="form-group mg-bt5" <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[5]->billsettingsvalue==0){?> <?php }else{ ?> style="display:none !important;" <?php }?>>
                        <label class="col-lg-2 control-label myleft">تاريخ الفاتورة</label>
                        <div class="col-lg-4">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilldate;?>

                            </p>
                        </div>
                    </div>
                    <!-- end of form-group-->
                </div>
                <!-- end of bill no-->
                <div class="col-lg-4">
                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label myleft">اسم المورد</label>
                        <div class="col-lg-4">
                            <div id="supplierIdDiv">
                                <p class="form-control-static">
                                    <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->suppliername;?>

                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>  <?php if ($_smarty_tpl->tpl_vars['returnbuybillData']->value->buybilltotaldeptbefor==''){?> hidden-print <?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[56]->billsettingsvalue;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label myleft">رصيد الدين</label>
                        <div class="col-lg-4">
                            <div id="debt" class="form-control-static"> <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->buybilltotaldeptbefor;?>
 </div>
                        </div>
                    </div>
                    <div class="clearfix"></div>

                    <!-- end of form-group-->
                    <hr class="mg-bt5 mg-tp5 hidden-print "/>
                    <div class="form-group mg-bt5" <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[2]->billsettingsvalue==0){?>  <?php }else{ ?> style="display:none !important;" <?php }?>>
                        <label class="col-lg-2 control-label myleft">المخزن</label>
                        <div class="col-lg-4">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->storeName;?>

                            </p>
                        </div>
                    </div>
                    <div class="clearfix"></div>

                    <!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['returnbuybillData']->value->comment==''){?> hidden-print <?php }?>">
                        <label class="col-lg-2 control-label myleft">التعليق</label>
                        <div class="col-lg-4">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->comment;?>

                            </p>
                        </div>
                    </div>
                    <!-- end of form-group-->
                </div>
                <!-- end of client info-->

            </div>
            <!-- =========================== END GENERAL INFO PANEL ====================== -->

            <!-- =========================== START BUY BILL PANEL ======================= -->
            <div class="clearfix"></div>

            <div class="row">
                <div class="row">
                    <hr class="hidden-print"/>

                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label">
                            <h4>المشتريات</h4>
                        </label>
                    </div>


                    <!--                    <div class="col-lg-4">
                                        </div>-->
                </div>
                <!-- end of title row-->
                <div class="table-responsive">
                    <table class="table billtable table-bordered table-black" id="containerpros">
                        <thead>
                            <tr>
                                <th class="wdt120 myblack hidden-print" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[59]->billsettingsvalue;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>الباركود</th>
                                <th class="wdt120 myblack">اسم المنتج</th>
                                <th class="wdt240 hidden-print myblack" <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[7]->billsettingsvalue==0){?> <?php }else{ ?> style="display:none !important;" <?php }?>>ملاحظات</th>
                                <th class="wdt100n myblack" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[53]->billsettingsvalue;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>الوحدة</th>

                                <th class="wdt100n myblack" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[64]->billsettingsvalue;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>العدد</th>
                                <th class="wdt100n myblack"  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9=='0'){?>  hidden <?php }?> ><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
</th>

                                <th class="wdt100n myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>">السعر</th>
                                <!-- <th class="wdt100n myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>الخصم</th> -->
                                <th class="wdt100n myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[8]->billsettingsvalue;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11==1){?>  style="display:none"    <?php }?>>الخصم</th>
                                <th class="wdt100n myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[96]->billsettingsvalue;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>ضريبة</th>
                                <th class="wdt100n myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>">الاجمالى
                                    <input name="hidden_itr" id="hidden_itr" type="hidden" value="0" />
                                </th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['returnbuybilldetailData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value){
$_smarty_tpl->tpl_vars['detail']->_loop = true;
?>
                            <tr class="aw_td" id="newProduct1">
                                <td class="myblack <?php if ($_smarty_tpl->tpl_vars['detail']->value->Parcode==''){?> hidden-print <?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[59]->billsettingsvalue;?>
<?php $_tmp13=ob_get_clean();?><?php if ($_tmp13==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>

                                    <div id="parcodeDiv1">  <p class="form-control-static"><?php echo $_smarty_tpl->tpl_vars['detail']->value->parcode;?>
</p> </div>


                                </td>
                                <td class="myblack" ><div id="productdiv1" class="aw_width aw_mt5">
                                        <p class="form-control-static">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->productName;?>
 / <?php echo $_smarty_tpl->tpl_vars['detail']->value->productCatName;?>

                                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[79]->billsettingsvalue;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==0){?>
                                            <?php if (isset($_smarty_tpl->tpl_vars['detail']->value->sizeName)&&$_smarty_tpl->tpl_vars['detail']->value->sizeName!=''){?>/<?php echo $_smarty_tpl->tpl_vars['detail']->value->sizeName;?>
<?php }?>
                                            <?php if (isset($_smarty_tpl->tpl_vars['detail']->value->colorName)&&$_smarty_tpl->tpl_vars['detail']->value->colorName!=''){?>/<?php echo $_smarty_tpl->tpl_vars['detail']->value->colorName;?>
<?php }?>
                                            <?php }?>
                                        </p>

                                    </div></td>


                                <td class="myblack  <?php if ($_smarty_tpl->tpl_vars['detail']->value->note==''){?> hidden-print <?php }?>"  <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[7]->billsettingsvalue==0){?> <?php }else{ ?> style="display:none !important;" <?php }?>>
                                    <p class="form-control-static">
                                        <?php echo $_smarty_tpl->tpl_vars['detail']->value->note;?>

                                    </p>
                                </td>

                                <td class="myblack"  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[53]->billsettingsvalue;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>><div id="unitDiv1">
                                        <p class="form-control-static">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->unitName;?>

                                        </p>
                                    </div></td>

                                <td class="myblack"  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[64]->billsettingsvalue;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                    <p class="form-control-static">
                                        <?php echo $_smarty_tpl->tpl_vars['detail']->value->returnbuybilldetailquantity;?>

                                    </p>
                                </td>
                                <td class="myblack" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17=='0'){?>  hidden <?php }?>>
                                    <p class="form-control-static"> <?php echo $_smarty_tpl->tpl_vars['detail']->value->otherdetailquantity;?>
</p>
                                </td>

                                <td class="myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" ><div id="propricechange1">
                                        <p class="form-control-static">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->returnbuybilldetailprice;?>

                                        </p>
                                    </div></td>


                                <!-- <td class="myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>"  <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[57]->billsettingsvalue==0){?> <?php }else{ ?> style="display:none !important;" <?php }?>>
                                    <p class="form-control-static">
                                        <?php echo $_smarty_tpl->tpl_vars['detail']->value->discountvalue;?>

                                    </p>
                                </td> -->
                                <td class="check_tr_discount <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>"  <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[8]->billsettingsvalue==1){?> style="display:none !important;" <?php }?>>
                                    <p class="form-control-static">
                                        <?php echo $_smarty_tpl->tpl_vars['detail']->value->discountvalue;?>

                                    </p>
                                </td>

                                <td class="myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>"  <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[96]->billsettingsvalue==0){?> <?php }else{ ?> style="display:none !important;" <?php }?>>
                                    <p class="form-control-static">
                                        <?php echo $_smarty_tpl->tpl_vars['detail']->value->rowtaxper;?>
%
                                    </p>
                                </td>

                                <td class="aw_totalprice myblack <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>"><div id="prototal1" class="aw_mt">
                                        <p class="form-control-static">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->returnbuybilldetailtotalprice;?>

                                        </p>
                                    </div></td>

                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
                <!--        <button type="button" class="btn btn-primary pull-left ft-nor"> إجمالي المشتريات <span class="badge wht-clo"><div id="buyBillTotal">0</div></span></button>
                -->      </div>
            <!-- end of second row-->
            <!-- =========================== END BUY BILL PANEL ==================== -->
            <div class="clearfix"></div>



            <!-- =========================== START TOTAL VALUES PANEL ======================= -->
            <div class="row">
                <div class="col-lg-9">
                </div><!-- end of calucation center-->

                <div class="col-lg-3">
                    <hr class="hidden-print"/>
                    <div class="form-group mg-bt5" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[58]->billsettingsvalue;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">عدد القطع</label>
                        <div class="col-lg-2">
                            <p class="form-control-static" id="totalQty"><?php echo $_smarty_tpl->tpl_vars['countBillDetails']->value;?>
</p>
                        </div>
                    </div><!-- end of form-group-->
                    <!--   <div class="form-group mg-bt5" <?php if ($_smarty_tpl->tpl_vars['billSettingsData']->value[0]->billsettingsvalue==0){?>  <?php }else{ ?> style="display:none !important;" <?php }?>>
                           <label class="col-lg-5 control-label">عدد القطع المرتجعة</label>
                           <div class="col-lg-7">
                             <p class="form-control-static" id="returnTotalQty">0</p>
                           </div>
                           </div>--><!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>">
                        <label class="col-lg-2 control-label">الاجمالى العام</label>
                        <div class="col-lg-2">
                            <p class="form-control-static" id="gentotal"><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilltotalbill;?>
</p>
                        </div>
                    </div><!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">نوع الخصم</label>
                        <div class="col-lg-2">
                            <p class="form-control-static">
                                <?php if ($_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilldiscountrype==0){?>
                                خصم مباشر
                                <?php }else{ ?>
                                خصم بنسبه مئويه
                                <?php }?>
                            </p>

                        </div>
                    </div><!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">قيمة الخصم</label>
                        <div class="col-lg-2">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilldiscount;?>

                            </p>

                        </div>
                    </div><!-- end of form-group-->

                    <!------------------------------------------------------>
                    <div class="<?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[36]->billsettingsvalue;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <hr class="mg-tp5 mg-bt5 hidden-print"/>
                        <div class="form-group mg-bt5">
                            <label class="col-lg-2 control-label">ضريبه القيمة المضافة</label>
                            <div class="col-lg-2">
                                <label>
                                    <div class="input-group">
                                        <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->payedtax;?>
 %
                                    </div>
                                    <div class="input-group" style="padding-top: 1px;">
                                        <?php echo $_smarty_tpl->tpl_vars['taxvalue']->value;?>

                                        <?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->currancy;?>

                                    </div>
                                </label>
                            </div>
                        </div>


                    </div>


                    <hr class="mg-tp5 mg-bt5 hidden-print"/>
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[51]->billsettingsvalue;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">الصافى</label>
                        <div class="col-lg-2">
                            <p class="form-control-static" id="gen2total"><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillaftertotalbill;?>
</p>

                        </div>
                    </div><!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[54]->billsettingsvalue;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">المدفوع</label>
                        <div class="col-lg-2">
                            <p class="form-control-static">
                                <?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilltotalpayed;?>

                            </p>
                        </div>
                    </div><!-- end of form-group-->
                    <hr class="mg-tp5 mg-bt5 hidden-print"/>
                    <div class="form-group mg-bt5 bg-yel <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billSettingsData']->value[55]->billsettingsvalue;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                        <label class="col-lg-2 control-label">المتبقى</label>
                        <div class="col-lg-2">
                            <p class="form-control-static" id="gen3total"><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillfinalbill;?>
</p>
                        </div>
                    </div><!-- end of form-group-->
                    <div class="form-group mg-bt5 <?php if ($_smarty_tpl->tpl_vars['usergroup']->value->hideBillPrices==1){?>hidden<?php }?>">
                        <label class="col-lg-2 control-label">باقى الدين</label>
                        <div class="col-lg-2">
                            <p class="form-control-static" id="gen4total"><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybilltotaldeptafter;?>
</p>

                        </div>
                    </div><!-- end of form-group-->
                </div><!-- end of totals center-->
            </div><!-- end of fourth row-->


            <div class="row hidden-print">
                <!--                <button type="submit"  class="btn btn-primary">رجوع</button>-->
                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->deletedbuyid;?>
<?php $_tmp25=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->deletedbuyid;?>
<?php $_tmp26=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->deletedbuyid;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp25>0&&$_tmp26!=null&&$_tmp27!=''){?>
                <a target="_new" href="<?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->controlname;?>
?do=editprint&id=<?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->deletedbuyid;?>
">
                    <button type="button" class="btn btn-primary">الايصال القديم</button></a>
                <?php }?>
                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->printingpapersize;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==0){?>
                <a target="_new" href="buyBillprintController.php?do=returneditprint1&id=<?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillid;?>
">
                    <button type="button" class="btn btn-info">طباعه ايصال كبير</button></a>
                <?php }?>
                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->printingpapersize;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29==1){?>
                <a target="_new" href="buyBillprintController.php?do=returneditprint&id=<?php echo $_smarty_tpl->tpl_vars['returnbuybillData']->value->returnbuybillid;?>
">
                    <button type="button" class="btn btn-info">طباعه ايصال</button></a>
                <?php }?>
            </div><!-- end of fifth row-->


            <!-- =========================== END TOTAL VALUESPANEL ====================== -->
        </form>



    </div>
</div>
<?php }} ?>