<html dir="rtl">

<head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>GT4</title>
    <style type="text/css">
    </style>
    <style>
        @media print {
            @page {
                size: 100mm 200mm landscape;
                /* landscape */
                /* you can also specify margins here: */
                margin: 0mm;
                margin-right: 0mm;
                /* for compatibility with both A4 and Letter */
                /* size: 139mm 215mm;
  height: 215mm;
  width: 139mm; */
            }

            #printdiv {
                margin-top: {
                    $billsettingsData[82]->billsettingsvalue
                }

                mm;
                /* user margin */
            }

            td {
                font-weight: bolder !important;
            }
        }

        table.info tr {
            width: 100%;
        }



        .body {
            direction: rtl
        }

        td {
            margin: 0
        }

        .table-black1 tbody>tr>td {

            vertical-align: middle;
            text-align: center;
            border: 1px solid #000;
        }

        .result,
        .result tr,
        .result tr td {
            border: 1px solid #000
        }

        .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: 17px;
            border-right-color: #999;
        }

        .NEE {
            font-size: 14px;
        }

        .newdesign {
            font-size: 14px;
        }

        .copywrites {
            font-size: 11px;
        }

        td {
            margin: 0 !important
        }

        .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: 15px;
        font-weight: 200;
        padding: 0 2px
    }

    .td td {
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 0px;
        border-top-style: none;
        border-right-style: dotted;
        border-bottom-style: solid;
        border-left-style: none;
        border-bottom-color: #999;
        font-size: 17px;
        border-right-color: #999;
        padding: 0 2px
    }

    .NEE {
        font-size: 14px;
    }

    .newdesign {
        font-size: 14px;
    }

    .copywrites {
        font-size: 11px;
    }
</style>
<style>
    .td td {
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 0px;
        border-top-style: none;
        border-right-style: dotted;
        border-bottom-style: solid;
        border-left-style: none;
        border-bottom-color: #999;
        font-size: 18px;
        border-right-color: #999;
        padding: 0 2px
    }

    .NEE {
        font-size: 14px;
    }

    .newdesign {
        font-size: 14px;
    }

    .copywrites {
        font-size: 11px;
    }

    .style2 {
        font-family: tahoma
    }

    .style4 {
        font-family: tahoma;
        font-size: 14px;
        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: 15px
    }

    .style-num {
        font-size: 12px
    }

    table.data td {
        border: 1px solid #000;
        text-align: center
    }

    td {
        font-size: 13px;
        padding: 0 2px
    }

    .table-last td {
        border: 1px solid #444;
        text-align: center
    }
</style>
{/literal}

<body onLoad="printDiv()">
    <div id="printdiv">

        <b>
            {if {$billsettingsData[25]->billsettingsvalue} eq 0}

            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-black">
                <tr>
                    <td colspan="2" align="center" class="style1" {if $billsettingsData[72]->billsettingsvalue ==
                        2}style="display:none;"{/if}>
                        {if $billsettingsData[72]->billsettingsvalue == 0 || $userData->branchId == 0 ||
                        $userData->branchId == -1}
                        <img src="../views/default/images/upload/{$Programsettingdata->logo}" alt="" width="134"
                            height="49"><br>
                        {$Programsettingdata->phone}
                        {else}
                        <img src="../views/default/images/branch_image/{$branchData->logo}" alt="" width="134"
                            height="49"><br>
                        {$branchData->mobile}
                        {/if}
                    </td>
                </tr>
            </table>
            <div style="clear:both"></div>
            <!--start title -->
            <div {if $billsettingsData[70]->billsettingsvalue == 0}{else} style="display:none"{/if}>
                <h2 style="  text-align:center" class="style1">{$billnameAddData->name}</h2>
            </div>
            <!-- end title -->
            <div style="clear:both"></div>

            <table width="45%" align="right" cellpadding="0" cellspacing="0" class="table-black"
                style="margin-bottom: 10px;font-size:10px">
                <tr>
                    <td style="padding: 2px" align="right">
                        <span class="">رقم تسلسل الفاتورة :</span>
                        <span {if {$billsettingsData[15]->billsettingsvalue} eq 0} {else} style="display:none
                            !important"
                            {/if} class="">{$buyBillData->buybillid}</span>
                    </td>
                </tr>
                <tr>
                    <td style="padding: 2px" align="right" nowrap width="">
                        <span class="">التاريخ :</span>
                        <span>{$buyBillData->buybilldate}</span>
                    </td>
                </tr>

            </table>
            <table width="50%" align="right" cellpadding="0" cellspacing="0" class="table-black"
                style="margin-bottom: 10px">

                <tr>
                    <td colspan="2" align="right"
                        style="padding: 3px;{if {$billsettingsData[15]->billsettingsvalue} eq 0} {else} style="
                        display:none !important" {/if}" nowrap>
                        <span>رقم عملية السداد :</span>
                        <span> {$buyBillData->buybillSerial}</span>

                    </td>
                </tr>
                <tr>
                    <td align="right" style="padding: 3px"> {if {$billsettingsData[27]->billsettingsvalue} eq 0}
                        {$buyBillData->storeName}{/if} </td>
                </tr>
                <tr>
                    <td colspan="2" align="right"
                        style="padding: 3px;{if {$billsettingsData[22]->billsettingsvalue} eq 0}  {else} display:none !important; {/if}"
                        nowrap>
                        <span>التعليق :</span>
                        <span> {$buyBillData->comment}</span>

                    </td>
                </tr>
            </table>
            <div style="clear:both"></div>
            <table width="100%" border="0" cellpadding="" cellspacing="" class="table-black1" style="direction: ltr">
                <tr>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#B4B4B4"
                        class="style4">اجمالى</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#B4B4B4"
                        class="style4" {if {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none"
                        {/if} >الخصم</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#B4B4B4"
                        class="style4">السعر</td>
                    <td align="center" bgcolor="#B4B4B4" class="style4" {if {$Programsettingdata->scunitname} eq '0'}
                        hidden {/if} >{$Programsettingdata->scunitname}
                    </td>

                    <td align="center" bgcolor="#B4B4B4" class="style4">الكمية</td>
                    <td align="center" bgcolor="#B4B4B4" class="style4" {if {$billsettingsData[21]->billsettingsvalue}
                        eq 0} {else} style="display:none" {/if}>الوحدة</td>
                    <td align="center" bgcolor="#B4B4B4" class="style4" {if {$billsettingsData[7]->billsettingsvalue} eq
                        0} {else} style="display:none !important" {/if}>التعليق</td>
                    <td align="center" bgcolor="#B4B4B4" class="style4" {if {$billsettingsData[20]->billsettingsvalue}
                        eq 0} {else} style="display:none" {/if}>الباركود</td>
                    <td width="50%" align="center" bgcolor="#B4B4B4" class="style4">اسم المنتج</td>
                    <td align="right" bgcolor="#B4B4B4" class="style4">م </td>
                </tr>
                {foreach $buyBillDetails as $detail}
                <tr>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center"
                        class="style2 style-num"> {$detail->buybilldetailtotalprice} </td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" class="style2 style1"
                        {if {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none !important"
                        {/if}>
                        {$detail->discountvalue}
                    </td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center"
                        class="style2 style1">{$detail->buybilldetailprice} </td>
                    <td align="center" class="style2 style1" {if {$Programsettingdata->scunitname} eq '0'} hidden {/if}>
                        {$detail->otherdetailquantity}
                    </td>
                    <td align="center" class="style2 style1"> {$detail->buybilldetailquantity} </td>

                    <td align="center" class="style2 style1" {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else}
                        style="display:none" {/if}>{$detail->unitName} </td>
                    <td align="center" class="style2 style1" {if {$billsettingsData[7]->billsettingsvalue} eq 0} {else}
                        style="display:none !important" {/if}>{$detail->note} </td>
                    <td align="center" class="style2 style1" {if {$billsettingsData[20]->billsettingsvalue} eq 0} {else}
                        style="display:none !important" {/if}>{$detail->parcode}</td>
                    <td align="right" class="style2 style1">{$detail->productName}{if
                        {$billsettingsData[60]->billsettingsvalue} eq
                        0}/{$detail->productCatName}{/if}
                        {if {$billsettingsData[79]->billsettingsvalue} eq 0}
                        {if isset($detail->sizeName) && $detail->sizeName !=""}/{$detail->sizeName}{/if}
                        {if isset($detail->colorName) && $detail->colorName !=""}/{$detail->colorName}{/if}
                        {/if}
                    </td>
                    <td align="center" class="style2 style-num">{$detail@index+1}</td>
                </tr>
                {/foreach}

            </table>
            <hr style="background-color: #000">

            <table width="40%" border="" cellpadding="0" cellspacing=""
                class="result {if $Usergroupdata->hideBillPrices == 1}hidden{/if}" style="float:left" dir="ltr">

                <tr>
                    <td align="center" bgcolor="#B4B4B4" class="style1">الاجمالي</td>
                    <!--الدين بعد -->

                    {if {$billsettingsData[19]->billsettingsvalue} eq 0}
                    <td align="center" bgcolor="#B4B4B4" class="style1">الدين بعد</td>
                    {/if}
                    <!--الباقى -->
                    {if {$billsettingsData[30]->billsettingsvalue} eq 0}
                    <td align="center" bgcolor="#B4B4B4">الباقي</td>
                    {/if}

                    <!--المدفوع-->
                    {if {$billsettingsData[29]->billsettingsvalue} eq 0}
                    <td align="center" bgcolor="#B4B4B4">المدفوع</td>
                    {/if}
                    <!--الصافي -->
                    {if {$billsettingsData[28]->billsettingsvalue} eq 0}
                    <td align="center" bgcolor="#B4B4B4">الصافي</td>
                    {/if}
                    <!--ضريبه القيمة -->

                    {if {$billsettingsData[36]->billsettingsvalue} eq 0}
                    <td align="center" bgcolor="#B4B4B4">ضريبه القيمة المضافة</td>
                    {/if}

                    <!--الخصم -->
                    {if {$buyBillData->buybilldiscount} > 0}
                    <td align="center" bgcolor="#B4B4B4">قيمة الخصم</td>
                    <td align="center" bgcolor="#B4B4B4">نوع الخصم</td>
                    {/if}

                    <td width="9%" align="center" bgcolor="#B4B4B4" class="style1">عدد الوحدات</td>
                </tr>
                <tr>
                    <td align="center" class="style1">{$buyBillData->buybilltotalbill}</td>
                    <!-----------الدين بعد ------------------->
                    {if {$billsettingsData[19]->billsettingsvalue} eq 0}
                    <td align="center" class="style1">{$buyBillData->buybilltotaldeptafter}</td>
                    {/if}

                    <!-----------الباقى ------------------->
                    {if {$billsettingsData[30]->billsettingsvalue} eq 0}
                    <td align="center" class="style1">{$buyBillData->buybillfinalbill}</td>
                    {/if}

                    <!-----------المدفوع ------------------->
                    {if {$billsettingsData[29]->billsettingsvalue} eq 0}
                    <td align="center" class="style1">{$buyBillData->buybilltotalpayed}</td>
                    {/if}
                    <!-----------الصافي ------------------->
                    {if {$billsettingsData[28]->billsettingsvalue} eq 0}
                    <td align="center" class="style1">{$buyBillData->buybillaftertotalbill}</td>
                    {/if}

                    <!-----------ضريبة القيمة ------------------->
                    {if {$billsettingsData[36]->billsettingsvalue} eq 0}
                    <td align="center" class="style1">{$taxvalue} {$Programsettingdata->currancy}
                        ({$buyBillData->payedtax}%)</td>
                    {/if}

                    {if {$buyBillData->buybilldiscount} > 0}
                    <td align="center" class="style1">{$buyBillData->buybilldiscount} </td>
                    <td align="center" class="style1">
                        {if $buyBillData->buybilldiscountrype eq 0}
                        مباشر
                        {else}
                        بنسبة
                        {/if}
                    </td>
                    {/if}
                    <td align="center" class="style1">{$countBillDetails}</td>
                </tr>
            </table>

            <div style="clear:both"></div>
            <!-- footer -->
            <div style="text-align: center;{if $billsettingsData[81]->billsettingsvalue == 1}display:none{/if}">
                <p><span class="copywrites">تصميم شركة جي تي فور 01110070882</span></p>
            </div>


            {else}

            <table width="97%" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <!-- <td colspan="2"><div {if {$billsettingsData[15]->billsettingsvalue && $Programsettingdata->clientserial == 1} eq 0}  {else} style="display:none !important" {/if} class="serial">{$buyBillData->buybillid}</div></td> -->

                    <td width="142" align="center" valign="top" {if $billsettingsData[72]->billsettingsvalue ==
                        2}style="display:none;"{/if}><p><strong>

                                {if $billsettingsData[72]->billsettingsvalue == 0||$userData->branchId == 0 ||
                                $userData->branchId == -1}
                                <img src="../views/default/images/upload/{$Programsettingdata->logo}" alt="" width="122"
                                    height="50"><br>
                                <span style="font-size:14px">{$Programsettingdata->phone}</span>
                                {else}
                                <img src="../views/default/images/branch_image/{$branchData->logo}" alt="" width="122"
                                    height="50"><br>
                                <span style="font-size:14px"> {$branchData->mobile}</span>
                                {/if}

                    </td>
                </tr>
            </table>
            <!--start title -->
            <div {if $billsettingsData[70]->billsettingsvalue == 0}{else} style="display:none"{/if}>
                <h2 style="  text-align:center" class="style1">{$billnameAddData->name}</h2>
            </div>
            <!-- end title -->
            <div style="clear:both"></div>
            <table style="width:55%;float:right;margin-top: 7px">
                {if {$billsettingsData[18]->billsettingsvalue} eq 0}
                {if $buyBillData->buybilltotalpayed neq 0 || $buyBillData->buybilltotaldeptbefor neq 0}
                <tr>
                    <td align="right">
                        {if $Usergroupdata->hideBillPrices != 1}
                        <span> الدين قبل:</span>
                        <span>{$buyBillData->buybilltotaldeptbefor} </span>
                        {/if}
                    </td>

                </tr>
                {/if}
                {/if}

                <tr {if {$billsettingsData[15]->billsettingsvalue} eq 0} {else} style="display:none !important" {/if}>
                    <td align="right">
                        <span> اسم المورد :</span>
                        <span>{$buyBillData->suppliername}</span>
                    </td>

                </tr>

                {if $Programsettingdata->clientserial eq 1}
                <tr>

                    <td align="right">
                        <span>رقم الفاتورة :</span>
                        <span>{$buyBillData->buybillid}</span>
                    </td>
                    <td> </td>
                </tr>
                {/if}
                <tr>
                    <td align="right">
                        <span> التاريخ:</span>
                        <span>{$buyBillData->buybilldate}</span>
                    </td>
                </tr>
            </table>
            <table style="width:45%;float:left">

                {if {$billsettingsData[15]->billsettingsvalue} eq 0}
                <tr>
                    <td align="right">
                        <span> رقم عملية السداد :</span>
                        <span> {$buyBillData->buybillSerial}</span>
                    </td>
                </tr>
                {/if}

                {*if {$Programsettingdata->saveprinting} eq 1*}

                <!--المخزن -->
                {if {$billsettingsData[27]->billsettingsvalue} eq 0}
                <tr>
                    <td align="right">
                        <span> اسم المخزن:</span>
                        <span> {$buyBillData->storeName}</span>
                    </td>
                </tr>
                {/if}
                {if {$billsettingsData[22]->billsettingsvalue} eq 0}
                <tr>
                    <td align="right">
                        <span> التعليق:</span>
                        <span> {$buyBillData->comment}</span>
                    </td>
                </tr>
                {/if}

            </table>
            <div style="clear:both"></div>

            <table class="data" width="100%" cellpadding="0" cellspacing="0" dir="rtl">
                <tr>
                    <td align="center" bgcolor="#E8E8E8">م</td>

                    <td align="center" bgcolor="#E8E8E8" {if {$billsettingsData[20]->billsettingsvalue} eq 0} {else}
                        style="display:none" {/if} class="wdt120">الباركود</td>

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

                    {if {$billsettingsData[26]->billsettingsvalue} eq 0 && $billsettingsData[108]->billsettingsvalue eq
                    0}
                    <td align="center" bgcolor="#E8E8E8">المخزن</td>
                    {/if}

                    <td align="center" bgcolor="#E8E8E8" {if {$billsettingsData[7]->billsettingsvalue} eq 0} {else}
                        style="display:none !important" {/if} >التعليق</td>

                    <td align="center" bgcolor="#E8E8E8" {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else}
                        style="display:none !important" {/if} >الوحدة</td>
                    <td align="center" bgcolor="#E8E8E8">العدد</td>
                    <td align="center" bgcolor="#E8E8E8" {if {$Programsettingdata->scunitname} eq '0'} hidden {/if}
                        >{$Programsettingdata->scunitname}</th>
                    <td class="{if $Usergroupdata->hideBillPrices == 1 || $billsettingsData[116]->billsettingsvalue eq 0}hidden{/if}"
                        align="center" bgcolor="#E8E8E8">
                        السعر قبل الخصم</td>

                    <td class="{if $billsettingsData[116]->billsettingsvalue eq 0}hidden{/if}" align="center"
                        bgcolor="#E8E8E8">
                        خصم المصنع</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#E8E8E8">
                        السعر</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#E8E8E8" {if
                        {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none" {/if}
                        >الخصم</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#E8E8E8" {if
                        {$billsettingsData[114]->billsettingsvalue} eq 1} {else} style="display:none" {/if}>
                        الاجمالى قبل الخصم</td>
                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" bgcolor="#E8E8E8">
                        الاجمالى</td>


                </tr>



                {foreach $buyBillDetails as $detail}
                <tr>
                    <td align="center">{$detail@index+1}</td>
                    <td align="center" {if {$billsettingsData[20]->billsettingsvalue} eq 0} {else} style="display:none
                        !important" {/if}>

                        {$detail->parcode}

                    </td>


                    <td align="center" dir="ltr">
                        {$detail->productName}{if {$billsettingsData[60]->billsettingsvalue} eq
                        0}/{$detail->productCatName}{/if}
                        {if {$billsettingsData[79]->billsettingsvalue} eq 0}
                        {if isset($detail->sizeName) && $detail->sizeName !=""}/{$detail->sizeName}{/if}
                        {if isset($detail->colorName) && $detail->colorName !=""}/{$detail->colorName}{/if}
                        {/if}
                    </td>
                    <td align="center" {if {$billsettingsData[7]->billsettingsvalue} eq 0} {else}
                        style="display:none
                        !important" {/if}>

                        {$detail->note}

                    </td>


                    <td align="center" {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else}
                        style="display:none
                        !important" {/if}>

                        {$detail->unitName}

                    </td>


                    <td align="center">
                        {$detail->buybilldetailquantity + 0}
                    </td>
                    <td align="center" {if {$Programsettingdata->scunitname} eq
                        '0'||$billsettingsData[67]->billsettingsvalue} hidden {/if}>
                        {$detail->otherdetailquantity + 0}
                    </td>

                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center">
                        {$detail->buybilldetailprice + 0}
                    </td>

                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" align="center" {if
                        {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none !important"
                        {/if}>
                        {$detail->discountvalue + 0}
                    </td>

                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                        {$detail->buybilldetailtotalprice + 0}
                    </td>
                </tr>
                {/foreach}

            </table>

            <table align="left" cellpadding="0" cellspacing="0" style="margin-top: 5px" dir="rtl"
                class="table-last {if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                <tr>
                    <td>اجمالي الفاتوره</td>
                    <td>{$buyBillData->buybilltotalbill}</td>
                </tr>
                {if {$buyBillData->buybilldiscount} > 0}
                <tr {if {$billsettingsData[47]->billsettingsvalue} eq 0} {else} style="display:none !important" {/if}>
                    <td>نوع الخصم</td>
                    <td>
                        {if $buyBillData->buybilldiscountrype eq 0}
                        مباشر
                        {else}
                        غير مباشر
                        {/if}
                    </td>
                </tr>

                <tr {if {$billsettingsData[47]->billsettingsvalue} eq 0} {else} style="display:none !important" {/if}>
                    <td>قيمة الخصم</td>
                    <td> {$buyBillData->buybilldiscount} </td>
                </tr>
                {/if}

                {if {$billsettingsData[36]->billsettingsvalue} eq "0"}
                <tr>
                    <td> ضريبه القيمة المضافة</td>
                    <td> {$taxvalue}{$currency} ({$buyBillData->payedtax}%)</td>
                </tr>
                {/if}

                <tr>
                    <td>المبلغ بعد الخصم</td>
                    <td>{$buyBillData->buybillaftertotalbill} {$currency}</td>
                </tr>

                {if {$billsettingsData[29]->billsettingsvalue} eq 0}
                <tr>
                    <td>المدفوع</td>
                    <td> {$buyBillData->buybilltotalpayed}{$currency}</td>
                </tr>
                {/if}
                <!-----------?????? -->
                {if {$billsettingsData[28]->billsettingsvalue} eq 0}
                <tr>
                    <td>الصافى</td>
                    <td> {$buyBillData->buybillaftertotalbill}{$currency}</td>
                </tr>
                {/if}

                <!-- -->
                {if {$billsettingsData[30]->billsettingsvalue} eq 0}
                <tr>
                    <td>المتبقى</td>
                    <td>{$buyBillData->buybillfinalbill} {$currency}</td>
                </tr>
                {/if}
                {if {$billsettingsData[19]->billsettingsvalue} eq 0}
                <tr>
                    <td>المتبقى</td>
                    <td>{$buyBillData->buybilltotaldeptafter}{$currency}</td>
                </tr>
                {/if}
            </table>
            <div style="clear:both"></div>
            <!-- footer -->

            {if $qrerp > 1}
            <div style="text-align: center;">
                {if $qrerp == 3 || $qrerp == 4}
                <img src="data:image/jpeg;base64,{$base64qr}" style="width:120px;height: 120px;" />
                {/if}
                {if $qrerp == 2 || $qrerp == 4}
                <img src="data:image/jpeg;base64,{$base64qrs}" style="width:120px;height: 120px;" />
                {/if}
            </div>
            {/if}

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

                <p><span class="copywrites">تصميم شركة جي تي فور 01110070882</span></p>
            </div>

        </b>
    </div>
    {/if}
</body>