<?php /* Smarty version Smarty-3.1.11, created on 2024-05-13 16:07:55
         compiled from "../views/default/buyBillview/editprint2a4.html" */ ?>
<?php /*%%SmartyHeaderCode:1645393923664210abc895a4-41106037%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f8be09e1300acd50ddbc9de8eb7999e88a98d328' => 
    array (
      0 => '../views/default/buyBillview/editprint2a4.html',
      1 => 1693253992,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1645393923664210abc895a4-41106037',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'Programsettingdata' => 0,
    'billsettingsData' => 0,
    'buyBillData' => 0,
    'Usergroupdata' => 0,
    'billnameAddData' => 0,
    'buyBillDetails' => 0,
    'detail' => 0,
    'currency' => 0,
    'countBillDetails' => 0,
    'taxvalue' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_664210ac2b0959_37732099',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_664210ac2b0959_37732099')) {function content_664210ac2b0959_37732099($_smarty_tpl) {?><html dir="ltr">
    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>GT4</title>
        <style type="text/css">
        </style>
    </head>
    <script src="../views/default/assets/js/jquery.js"></script>


    
    <script language="javascript" type="text/javascript">
        /*$(document).ready(function() {
         //window.print();
         printDiv();
         });*/
        function printDiv() {
            var divId = document.getElementById('printdiv');
            divId.setAttribute("className", "print_section print");
            divId.setAttribute("class", "print_section print");
            window.print();
            setTimeout(window.close, 0);
            // window.close();
        }
    </script>
    <style>
        .td td
        {

            border-bottom-color: #999;
            font-size: 15px;
            border-right-color: #999;
            text-align: center
        }
        .NEE
        {
            font-size: 14px;
        }
        .newdesign
        {
            font-size: 14px;
        }
        .copywrites
        {
            font-size: 11px;
        }
        .hidden{
            display: none;
        }
    </style>
    
    <body onLoad="printDiv()">
        <div id="printdiv"  >

            <table class="table-black" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="148" height="115" align="left" valign="middle">&nbsp;</td>
                    <td width="142" colspan="2" align="right" valign="top"><p><strong><img src="../views/default/images/upload/<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->logo;?>
" alt="" width="122" height="75"><br>

                                <?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->phone;?>
<br>
                                </td>
                                </tr>
                                </table>

                                <table align="right" width="40%">

                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[16]->billsettingsvalue;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                        <td dir="rtl">
                                            <span>اسم المورد:</span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->suppliername;?>
</span>
                                        </td>
                                    </tr>
                                    <tr class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[18]->billsettingsvalue;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                        <td dir="rtl">
                                            <span>الدين قبل  :</span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilltotaldeptbefor;?>
</span>
                                        </td>
                                    </tr>
                                    <tr  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[15]->billsettingsvalue;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0&&$_smarty_tpl->tpl_vars['Programsettingdata']->value->clientserial==1){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                        <td dir="rtl">
                                            <span>رقم تسلسل الفاتورة : </span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybillid;?>
</span>
                                        </td>

                                    </tr>
                                    <tr  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[61]->billsettingsvalue;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                        <td dir="rtl">
                                            <span>رقم الفاتورة : </span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybillSerial;?>
</span>
                                        </td>

                                    </tr>
                                </table>
                                <table align="left" width="60%">
                                    <tr>
                                        <td dir="rtl">
                                            <span>تاريخ البيان :</span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilldate;?>
</span>
                                        </td>
                                    </tr>

                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->saveprinting;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5==1){?>
                                    <tr>
                                        <td dir="rtl">
                                            <span>اسم المخزن :</span>
                                            <span><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->storeName;?>
</span>
                                        </td>

                                    </tr>
                                    <?php }?>
                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[22]->billsettingsvalue;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6==0){?>
                                    <tr>
                                        <td dir="rtl">
                                            <span>التعليق:</span>
                                            <span> <?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->comment;?>
</span> </td>
                                    </tr>
                                    <?php }?>

                                    <tr>
                                </table>
                                <div style="clear:both"></div>
                                <!--start title -->
                                <div >
                                    <h4  style="  text-align:center;margin:5px 0 10px"><?php echo $_smarty_tpl->tpl_vars['billnameAddData']->value->name;?>
</h4>
                                </div>
                                <!-- end title -->


                                <table width="100%" border="" cellpadding="0" cellspacing="0" dir="rtl" class="table-black" style="text-align: center">

                                    <tr>
                                        <td align="center">م</td>
                                        <td align="center"<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[59]->billsettingsvalue;?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7==0){?> <?php }else{ ?>  style="display:none"    <?php }?> class="wdt120">الباركود</td>


                                        <td align="center" c>اسم المنتج</td>

                                        <td  align="center"<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[7]->billsettingsvalue;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8==1){?> style="display:none !important" <?php }?> >ملاحظات</td>

                                        <td align="center" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[53]->billsettingsvalue;?>
<?php $_tmp9=ob_get_clean();?><?php if ($_tmp9==0){?>  <?php }else{ ?> style="display:none !important" <?php }?> >الوحدة</td>


                                        <td align="center" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[64]->billsettingsvalue;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp10==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>العدد</td>
                                        <td align="center" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
<?php $_tmp11=ob_get_clean();?><?php if ($_tmp11=='0'){?>  hidden <?php }?>" ><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
</td>

                                        <td align="center" class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">السعر</td>
                                        <td align="center" class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp12==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>الخصم</td>
                                        <td align="center" class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>"> الاجمالى</td>


                                    </tr>



                                    <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['buyBillDetails']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['detail']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value){
$_smarty_tpl->tpl_vars['detail']->_loop = true;
 $_smarty_tpl->tpl_vars['detail']->index++;
?>
                                    <tr>
                                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['detail']->index+1;?>
</td>
                                        <td  <?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 !important" <?php }?>>

                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->parcode;?>


                                        </td>

                                        <td>

                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->productName;?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[60]->billsettingsvalue;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp14==0){?>/<?php echo $_smarty_tpl->tpl_vars['detail']->value->productCatName;?>
<?php }?>
                                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[79]->billsettingsvalue;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==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 }?>

                                        </td>


                                        <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[7]->billsettingsvalue;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==1){?>  style="display:none !important"  <?php }?>>

                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->note;?>


                                        </td>


                                        <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[53]->billsettingsvalue;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>

                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->unitName;?>


                                        </td>

                                        <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[64]->billsettingsvalue;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>

                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->buybilldetailquantity;?>


                                        </td>
                                        <td   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19=='0'){?>  hidden <?php }?>">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->otherdetailquantity;?>

                                        </td>
                                        <td class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->buybilldetailprice;?>
 <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>

                                        </td>
                                        <td class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->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 }?>>
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->discountvalue;?>

                                        </td>
                                        <td class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">
                                            <?php echo $_smarty_tpl->tpl_vars['detail']->value->buybilldetailtotalprice;?>

                                        </td>

                                    </tr>

                                    <?php } ?>
                                    <tfoot class="<?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">
                                        <tr>
                                            <td colspan="2">الاجمالى</td>
                                            <td <?php if ($_smarty_tpl->tpl_vars['billsettingsData']->value[7]->billsettingsvalue){?> eq 1}  style="display:none !important"  <?php }?>>

                                            </td>

                                            <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[53]->billsettingsvalue;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                            </td>
                                            <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[58]->billsettingsvalue;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>

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


                                            </td>
                                            <td   <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->scunitname;?>
<?php $_tmp23=ob_get_clean();?><?php if ($_tmp23=='0'){?>  hidden <?php }?>">
                                            </td>
                                            <td>
                                            </td>
                                            <td <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp24==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                            </td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilltotalbill;?>
</td>
                                        </tr>
                                    </tfoot>

                                </table>
                                <table width="50%" border="" align="left" cellpadding="0" cellspacing="0"  dir="rtl" class="td <?php if ($_smarty_tpl->tpl_vars['Usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">

                                    <!--
                                                                                <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[58]->billsettingsvalue;?>
<?php $_tmp25=ob_get_clean();?><?php if ($_tmp25==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                                                                    <td>اجمالي  القطع</td>
                                                                                    <td><?php echo $_smarty_tpl->tpl_vars['countBillDetails']->value;?>
</td>
                                                                                </tr> -->

                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilldiscount;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp26>0){?>
                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                        <td>نوع الخصم</td>
                                        <td>
                                            <?php if ($_smarty_tpl->tpl_vars['buyBillData']->value->buybilldiscountrype==0){?>
                                            مباشر
                                            <?php }else{ ?>
                                            بنسبة
                                            <?php }?>
                                        </td>
                                    </tr>

                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[57]->billsettingsvalue;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                        <td>قيمه الخصم</td>
                                        <td>  <?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilldiscount;?>
 </td>
                                    </tr>
                                    <?php }?>


                                    <!---------------------ضريبه المبيعات----------------->
                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[36]->billsettingsvalue;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29=="0"){?>
                                    <tr>
                                        <td>ضريبه القيمة المضافة</td>
                                        <!--<td> <?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->payedtax;?>
%</td>-->
                                        <td><?php echo $_smarty_tpl->tpl_vars['taxvalue']->value;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
 (<?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->payedtax;?>
%)</td>
                                    </tr>
                                    <?php }?>

                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[52]->billsettingsvalue;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==0){?>  <?php }else{ ?> style="display:none !important" <?php }?>>
                                        <td>المبلغ بعد الخصم</td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybillaftertotalbill;?>
 <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</td>
                                    </tr>


                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[54]->billsettingsvalue;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                        <td>المدفوع</td>
                                        <td> <?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilltotalpayed;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</td>
                                    </tr>
                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[55]->billsettingsvalue;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                        <td>المتبقى</td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybillfinalbill;?>
 <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</td>
                                    </tr>
                                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilltotaldeptafter;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33!=0){?>
                                    <tr <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['billsettingsData']->value[56]->billsettingsvalue;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==0){?> <?php }else{ ?>  style="display:none"    <?php }?>>
                                        <td>إجمالى المديونيه</td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['buyBillData']->value->buybilltotaldeptafter;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</td>
                                    </tr>
                                    <?php }?>
                                    <tr style="display:none;">
                                        <td colspan="2" valign="bottom">&nbsp;</td>
                                    </tr>

                                </table>
                                <div style="clear:both"></div>
                                <div style="text-align:center">
                                    <p class="NEE" style="margin:2px;font-size:14px"><strong><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->address;?>
</strong></p>
                                    <p style="margin:0;font-size:14px">

                                        <span>01110070882...</span>
                                        <span style="display:inline-block">GT4 تصميم شركه </span></p>

                                </div>


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