<html>
    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>GT4</title>
        <style type="text/css">
        </style>
        <style>

            .table-black1   th, td{



            }

            .td td
            {
                border-right-widtd: 1px;
                border-bottom-widtd: 1px;
                border-left-widtd: 0px;
                border-top-style: none;
                border-right-style: dotted;
                border-bottom-style: solid;
                border-left-style: none;
                border-bottom-color: #999;
                font-size: 22px;
                border-right-color: #999;
            }
            .NEE
            {
                font-size: 14px;
            }
            .newdesign
            {
                font-size: 14px;
            }
            .copywrites
            {
                font-size: 11px;
            }
            .hidden{
                display: none
            }
        </style>

    </head>
    <script src="../views/default/assets/js/jquery.js"></script>


    {literal}

    <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{font-size:20px;
           font-weight: 200;
           text-align: center !important;


        }
        .td td
        {
            border-right-widtd: 1px;
            border-bottom-widtd: 1px;
            border-left-widtd: 0px;
            border-top-style: none;
            border-right-style: dotted;
            border-bottom-style: solid;
            border-left-style: none;
            border-bottom-color: #999;
            font-size: 20px;
            border-right-color: #999;
            text-align: center !important;
        }
        .NEE
        {
            font-size: 14px;
        }
        .newdesign
        {
            font-size: 14px;
        }
        .copywrites
        {
            font-size: 11px;
        }
    </style>
    <style>
        .td td
        {
            border-right-widtd: 1px;
            border-bottom-widtd: 1px;
            border-left-widtd: 0px;
            border-top-style: none;
            border-right-style: dotted;
            border-bottom-style: solid;
            border-left-style: none;
            border-bottom-color: #999;
            font-size: 20px;
            border-right-color: #999;
            text-align: center !important;
        }
        .NEE
        {
            font-size: 14px;
        }
        .newdesign
        {
            font-size: 14px;
        }
        .copywrites
        {
            font-size: 11px;
        }
        .style2 {
            font-family: tahoma
        }
        .style4 {font-family: tahoma; font-size: 16px; font-weight: bold;
                 border: 1px solid  #999  !important;
        }
        .serial {
            background-color: #C8C8C8;
            height: 20px;
            width: 150px;
            padding: 5px;
            margin: 5px;
            border: medium double #000000;
            text-align: center;
        }
        .style1 {
            font-size: 20px
        }
        .rtl{
            direction: rtl;
        }


    </style>
    {/literal}
    <body onLoad="printDiv()" style="direction: ltr">
        <div align="center" id="printdiv" >
            <b>

                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-black">
                    <!--                    <tr>

                                            <td  colspan="6" style="text-align: center;"><center>
                                            <img style="display: block" src="../views/default/images/upload/{$Programsettingdata->logo}" alt="" width="134" height="49"></center>
                                        <span>{$Programsettingdata->phone}</span>
                                        </td>
                                        </tr>-->


                    <tr>
                        <td width="5%" align="right">&nbsp;</td>
                        <td  ><span class="style1 style2 rtl">المستخدم : {$arrContainer[0].employeename}</span></td>
                        <td width="10%" align="right">&nbsp;</td>

                        <td width="10%" align="right"></td>
                        <td class="rtl"   colspan="2" nowrap width="8%" align="right"><span class="style1 style2">رقم العملية : {$arrContainer[0].operationNum}</span></td>

                    </tr>


                    <!-----------الدين بعد ------------------->
                    <tr>
                        <td width="5%" align="right">&nbsp;</td>
                        <td  ><span class="style1 style2 rtl">التاريخ: {$arrContainer[0].date}</span></td>
                        <td width="10%" align="right">&nbsp;</td>

                        <td width="10%" align="right"></td>
                        <td class="rtl"   colspan="2" nowrap width="8%" align="right"><span class="style1 style2"></span></td>
                    </tr>


                    <!-----------الدين بعد ------------------->
                    <tr>
                        <td colspan="6">
                            <table width="100%" border="0" cellpadding="2" cellspacing="7" class="table-black1">
                                <tr>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style4">التعليق</td>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style4 {if $Usergroupdata->hideBillPrices == 1}hidden{/if}">الاجمالى</td>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style4 {if $Usergroupdata->hideBillPrices == 1}hidden{/if}">السعر</td>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style4">كمية الاهلاك</td>
                                    <td width="50%" align="center" bgcolor="#B4B4B4" class="style4">إسم المنتج</td>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style4">إسم المخزن</td>
                                    <td width="5%" align="right" bgcolor="#B4B4B4" class="style4"># </td>
                                </tr>
                                {assign var=i value=1}
                                {assign var=total value=0}
                                {foreach $arrContainer as $data}
                                {assign var=total value=$total+{$data.price*$data.distroyQuantity}}
                                <tr>
                                    <td align="right" class="style2 style1">{$data.note}</td>
                                    <td align="right" class="style2 style1 {if $Usergroupdata->hideBillPrices == 1}hidden{/if}">{$data.price*$data.distroyQuantity}</td>
                                    <td align="right" class="style2 style1 {if $Usergroupdata->hideBillPrices == 1}hidden{/if}">{$data.price}</td>
                                    <td align="right" class="style2 style1">{$data.distroyQuantity}</td>
                                    <td align="right" class="style2 style1">{$data.productName}</td>
                                    <td align="right" class="style2 style1">{$data.storeName}</td>
                                    <td align="center" class="style2">{$i}</td>
                                </tr>

                                {assign var=i value=$i+1}
                                {/foreach}
                            </table></td>
                    </tr>

                    <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                        <td colspan="5"><table width="100%" border="0" cellpadding="2" cellspacing="7">
                                <tr>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style1">الاجمالي</td>
                                    <td width="10%" align="center" bgcolor="#B4B4B4" class="style1">{$total}</td>
                                </tr>

                            </table>

                        </td>
                    </tr>
                </table>
                <hr/>
            </b>
        </div>
    </body>

    <div id="terms" style="text-align: center;{if $billsettingsData[81]->billsettingsvalue == 1}display:none{/if}">
        <h5>{$Programsettingdata->printfoot}</h5>
    </div>