
<style>
    .myresult
    {
        -webkit-print-color-adjust: exact;
    }
</style>


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

        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="storetransferrequestController.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="storeAskedRefluxController.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->storeserial eq 1}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">الرقم التسلسلي</label>
                        <div class="col-lg-4">
                            <label>
                                {$perationdata->id}
                            </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->oprationdata}
                            </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">من </th>
                                        <th class="wdt200">الى</th>
                                        <th class="wdt200">اسم المنتج</th>

                                        <th >الكمية المحولة</th>
                                        <th>التاريخ</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $loadData as $myloadData}
                                    {if {$myloadData->conditions} eq 1}

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

                                        <td>

                                            {$myloadData->storetoName}

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

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



                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </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}
                                        </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>

