
<style>
    .myresult
    {
        -webkit-print-color-adjust: exact;
    }
    @media print{
        tr > .myborder{
            border: 1px solid black !important;

        }

        .myborder
        {
            color: solid #000 !important;


        }
    }

</style>


<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="storemovementController.php?do=show">التحويل بين المخازن</a></li>
            <li class="active">عرض تفاصيل تحويل</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">عرض تفاصيل التحويل</h3>
            </div>
            <div class="panel-body">


                <form class="form-horizontal" role="form" action="otherstoremovementController.php?do=show" method="post">


                    <!--                    <div class="form-group">
                                            <label class="col-lg-2 control-label">رقم السيريال</label>
                                            <div class="col-lg-4">
                                                <label>
                                                {$perationdata->oprationnumber}
                                                </label>
                                            </div>
                                        </div>-->
                    {if $Programsettingdata->clientserial eq 1}
                    <div class="form-group">
                        <label class="col-lg-2 control-label"> رقم الايصال</label>
                        <div class="col-lg-4">
                            <label>
                                {$perationdata['operationnum']}
                            </label>
                        </div>
                    </div>
                    {/if}

                    <!--                    <div class="form-group noprint">
                                            <label class="col-lg-2 control-label">التعليق</label>
                                            <div class="col-lg-4">
                                                <label>
                                                {$perationdata->comment}
                                                </label>
                                            </div>
                                        </div>-->


                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">تاريخ التحويل</label>
                        <div class="col-lg-4">
                            <label>
                                {$perationdata['transferproductdate']}
                            </label>
                        </div>
                    </div>

                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">اسم المستخدم </label>
                        <div class="col-lg-4">
                            <label>
                                {$loadData[0]->conditions}
                            </label>
                        </div>
                    </div>

                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">من </label>
                        <div class="col-lg-4">
                            <label>
                                {$loadData[0]->storefromName}
                            </label>
                        </div>
                    </div>

                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">الى </label>
                        <div class="col-lg-4">
                            <label>
                                {$loadData[0]->storetoName}
                            </label>
                        </div>
                    </div>

                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">التاريخ </label>
                        <div class="col-lg-4">
                            <label>
                                {$loadData[0]->transferproductdate}
                            </label>
                        </div>
                    </div>
                    <!-- =================================================   -->

                    <div class="form-group">
                        <!-- end of title row-->
                        <div class="table-responsive">
                            <table class="table billtable table-bordered table-black" id="containerpros">
                                <thead>
                                    <tr>
                                        <!--                                        <th class="wdt200 myborder">من </th>
                                                                                <th class="wdt200 myborder">الى</th>-->
                                        <th class="wdt200 myborder">اسم المنتج</th>

                                        <th class="myborder">الكمية المحولة</th>
                                        <!--<th class="myborder">التاريخ</th>-->
                                    </tr>
                                </thead>
                                <tbody>
                                    {assign var=x value=0}
                                    {foreach $loadData as $myloadData}
                                    {if {$myloadData->conditions} eq 1}

                                    <tr class="danger">
                                        {else}
                                    <tr>
                                        {/if}
                                        <!--                                        <td class="myborder">
                                                                                    {$myloadData->storefromName}
                                                                                </td>

                                                                                <td class="myborder">

                                                                                    {$myloadData->storetoName}

                                                                                </td>-->
                                        <td  class="myborder">
                                            {$myloadData->productName} / {$myloadData->productCatName}
                                        </td>
                                        <td class="myborder">
                                            {$myloadData->transferproductamount}
                                            {assign var=x value=$x+$myloadData->transferproductamount}
                                        </td>

                                        <!--                                        <td class="myborder">
                                                                                    {$myloadData->transferproductdate}
                                                                                </td>-->



                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>

                            <br>
                            <button type="button" style="color:black!important; border:1px solid black !important;" class="btn btn-primary pull-left ft-nor">
                                اجمالى الكمية المحولة <span class="badge wht-clo">
                                    <div id="totalQuantityMove" style="color:black!important;">{$x}</div>
                                </span>
                            </button>

                        </div>
                    </div>

                    <!--<hr style="height:2px !important; color:#000 " />-->



                    <div class="form-group noprint">
                        <div class="col-lg-offset-2 col-lg-4">
                            <!--<button type="submit"  class="btn btn-primary pull-left noprint"> رجوع</button>-->


                            <button type="button" onclick="print_Custom('mycustomheader');"  class="btn btn-success pull-right noprint">طباعة</button>
                        </div>
                    </div>




                </form>
            </div>
        </div>

        <!------------------------old data-------------------------------------->
        {if !empty($oldperationdata)}
        <div class="panel panel-default panel-m noprint" >
            <div class="panel-heading">
                <h3 class="panel-title">عرض تفاصيل التحويل القديم</h3>
            </div>
            <div class="panel-body">


                <form class="form-horizontal" role="form" action="otherstoremovementController.php?do=show" method="post">


                    <div class="form-group">
                        <label class="col-lg-2 control-label">رقم السيريال</label>
                        <div class="col-lg-4">
                            {$oldperationdata->oprationnumber}
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-lg-2 control-label">التعليق</label>
                        <div class="col-lg-4">

                            {$oldperationdata->comment}

                        </div>
                    </div>


                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">تاريخ التحويل</label>
                        <div class="col-lg-4">
                            {$oldperationdata->oprationdata}
                        </div>
                    </div>

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

                    <div class="form-group">
                        <!-- end of title row-->
                        <div class="table-responsive">
                            <table class="table billtable table-bordered table-black" id="containerpros">
                                <thead>
                                    <tr>
                                        <th class="wdt200">من </th>
                                        <th class="wdt200">الى</th>
                                        <th class="wdt200">اسم المنتج</th>

                                        <th >الكمية المحولة</th>
                                        <th>التاريخ</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $oldloadData as $myloadData}

                                    <tr>

                                        <td>
                                            {$myloadData->storefromName}
                                        </td>

                                        <td>

                                            {$myloadData->storetoName}

                                        </td>
                                        <td>
                                            {$myloadData->productName} / {$myloadData->productCatName}
                                        </td>
                                        <td>
                                            {$myloadData->transferproductamount}
                                        </td>

                                        <td>
                                            {$myloadData->transferproductdate}
                                        </td>



                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <hr style="height:2px !important; color:#000 " />




            </div>
        </div>
        {/if}


    </div>
</div>

{literal}
<script>
    print_Custom('mycustomheader');
</script>
{/literal}