<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 10:24:24
         compiled from "../views/default/otherstoremovementview/editshow.html" */ ?>
<?php /*%%SmartyHeaderCode:198406166567b6e6b852e4f0-75985434%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2b2bc33e5a096b9923201bfd142614621d3a44c9' => 
    array (
      0 => '../views/default/otherstoremovementview/editshow.html',
      1 => 1740000155,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '198406166567b6e6b852e4f0-75985434',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'perationdata' => 0,
    'Programsettingdata' => 0,
    'loadData' => 0,
    'usergroupdata' => 0,
    'myloadData' => 0,
    'x' => 0,
    'y' => 0,
    'dailyentryids' => 0,
    'userData' => 0,
    'oldperationdata' => 0,
    'oldloadData' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67b6e6b861b965_04504378',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67b6e6b861b965_04504378')) {function content_67b6e6b861b965_04504378($_smarty_tpl) {?>
<style>
    .myresult
    {
        -webkit-print-color-adjust: exact;
    }
    @media print{
        tr > .myborder{
            border: 1px solid black !important;

        }

        .myborder
        {
            color: solid #000 !important;


        }
        .hidden{
            display: none;
        }
    }

</style>


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

        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="otherstoremovementController.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>
                                                <?php echo $_smarty_tpl->tpl_vars['perationdata']->value->oprationnumber;?>

                                                </label>
                                            </div>
                                        </div>-->
                    <div class="form-group" style="text-align: center">
                        <h2><?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->companyname;?>
</h2>
                    </div>

                    <div class="info">

                        <table class="table table-info">

                            <tr>
                                <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->clientserial==1){?>
                                <td>
                                    <h5> رقم الايصال</h5>
                                </td>
                                <td>
                                    <?php echo $_smarty_tpl->tpl_vars['perationdata']->value['operationnum'];?>

                                </td>
                                <?php }?>

                                <td>
                                    <h5>تاريخ التحويل</h5>

                                </td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['perationdata']->value['transferproductdate'];?>
</td>
                            </tr>

                            <!-- <tr>
                                <td>تاريخ التحويل</td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['perationdata']->value['transferproductdate'];?>
</td>
                            </tr> -->
                            <tr>
                                <td>
                                    <h5>اسم المستخدم </h5></td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->employeename;?>
</td>
                                <td>
                                    <h5> التاريخ</h5></td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->transferproductdate;?>
</td>
                            </tr>
                            <tr>
                                <td>
                                    <h5> من </h5></td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->storefromName;?>
</td>
                                <td>
                                    <h5>الى
                                    </h5>
                                </td>
                                <td><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->storetoName;?>
</td>
                            </tr>
                            <tr>
                                <td>
                                    <h5> تعليق </h5></td>
                                <td> <?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->maincomment;?>
</td>
                                <td>
                                    <h5>
                                    </h5>
                                </td>
                                <td></td>
                            </tr>

                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!=''&&$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType!='hide'){?>
                            <tr>
                                <td>  <h5>سعر</h5></td>
                                <td>
                                    <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=="productBuyPrice"){?>
                                    الشراء
                                    <?php }elseif($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=="productSellAllPrice"){?>
                                    جملة
                                    <?php }elseif($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=="productSellHalfPrice"){?>
                                    نص جملة
                                    <?php }elseif($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=="productSellUnitPrice"){?>
                                    قطاعى
                                    <?php }?>
                                </td>
                            </tr>
                            <?php }?>
                        </table>


                        <!--                    <div class="form-group noprint">
                                                <label class="col-lg-2 control-label">التعليق</label>
                                                <div class="col-lg-4">
                                                    <label>
                                                    <?php echo $_smarty_tpl->tpl_vars['perationdata']->value->comment;?>

                                                    </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 <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide'){?> style="display:none" <?php }?>>السعر</th>
                                            <th class="myborder <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide'){?> style="display:none" <?php }?>>الإجمالي</th>
                                            <!--<th class="myborder">التاريخ</th>-->
                                            <th class="myborder">تعليق</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $_smarty_tpl->tpl_vars['x'] = new Smarty_variable(0, null, 0);?>
                                        <?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(0, null, 0);?>
                                        <?php $_smarty_tpl->tpl_vars['dailyentryids'] = new Smarty_variable('', null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['myloadData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myloadData']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['loadData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myloadData']->key => $_smarty_tpl->tpl_vars['myloadData']->value){
$_smarty_tpl->tpl_vars['myloadData']->_loop = true;
?>
                                        <!--                                    

                                                                            <tr class="danger">-->
                                        <tr>
                                            <!--                                        <td class="myborder">
                                                                                        <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->storefromName;?>

                                                                                    </td>

                                                                                    <td class="myborder">

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


                                                                                    </td>-->
                                            <td  class="myborder">
                                                <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->productName;?>
 / <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->productCatName;?>

                                            </td>
                                            <td class="myborder">
                                                <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->transferproductamount;?>

                                                <?php $_smarty_tpl->tpl_vars['x'] = new Smarty_variable($_smarty_tpl->tpl_vars['x']->value+$_smarty_tpl->tpl_vars['myloadData']->value->transferproductamount, null, 0);?>
                                            </td>
                                            <td class="myborder <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide'){?> style="display:none"<?php }?>>
                                                <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->price/$_smarty_tpl->tpl_vars['myloadData']->value->transferproductamount;?>

                                            </td>
                                            <td class="myborder <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>" <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide'){?> style="display:none"<?php }?>>
                                                <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->price;?>

                                                <?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable($_smarty_tpl->tpl_vars['y']->value+$_smarty_tpl->tpl_vars['myloadData']->value->price, null, 0);?>
                                            </td>
                                            <td class="myborder">
                                                <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->comment;?>

                                            </td>

                                            <!--                                        <td class="myborder">
                                                                                        <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->transferproductdate;?>

                                                                                    </td>-->



                                        </tr>
                                        <?php $_smarty_tpl->tpl_vars['dailyentryids'] = new Smarty_variable(((string)$_smarty_tpl->tpl_vars['dailyentryids']->value).",".((string)$_smarty_tpl->tpl_vars['myloadData']->value->dailyentryid), null, 0);?>
                                        <?php } ?>
                                        <?php $_smarty_tpl->tpl_vars['dailyentryids'] = new Smarty_variable(ltrim($_smarty_tpl->tpl_vars['dailyentryids']->value,','), null, 0);?>
                                    </tbody>
                                </table>

                                <br>
                                <button type="button" style="background-color: #428bca;color:black!important; border:1px solid black !important;<?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->priceType==''||$_smarty_tpl->tpl_vars['loadData']->value[0]->priceType=='hide'){?>;display:none<?php }?>" class="btn btn-primary pull-left ft-nor <?php if ($_smarty_tpl->tpl_vars['usergroupdata']->value->hideBillPrices==1){?>hidden<?php }?>">
                                    اجمالى السعر <span class="badge wht-clo">
                                        <div id="totalQuantityMove" style="color:black!important;"><?php echo $_smarty_tpl->tpl_vars['y']->value;?>
</div>
                                    </span>
                                </button>
                                <button type="button" style="background-color: #428bca;color:black!important; border:1px solid black !important;margin-left:3px;" class="btn btn-primary pull-left ft-nor">
                                    اجمالى الكمية المحولة <span class="badge wht-clo">
                                        <div id="totalQuantityMove" style="color:black!important;"><?php echo $_smarty_tpl->tpl_vars['x']->value;?>
</div>
                                    </span>
                                </button>


                            </div>
                        </div>

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

                    </div>

                    <div class="form-group noprint">
                        <div class="col-lg-offset-2 col-lg-4">
                            <!--  ----  -->
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if (count($_smarty_tpl->tpl_vars['loadData']->value)>0&&$_tmp1==0){?>



                            <!--  ----  -->
                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->recieveType==1){?>
                            <?php if ($_smarty_tpl->tpl_vars['loadData']->value[0]->recieveUserid!=0){?>
                            <label style="width:25%">استلم<br/><strong><?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->recieveUserName;?>
</strong></label>
                            <?php }else{ ?>
                            <?php if ($_smarty_tpl->tpl_vars['userData']->value->storeSupervisor==1&&in_array($_smarty_tpl->tpl_vars['loadData']->value[0]->storeidto,$_smarty_tpl->tpl_vars['userData']->value->storeSupervisorStores)){?><a href="storemovementController.php?do=recieveAllproducts&operationnum=<?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->operationnum;?>
" type="button" class="btn btn-default btn-primary" style="color: white">استلام المشرف</a><?php }else{ ?><!--غير مسموح--><?php }?>
                            <a href="storemovementController.php?do=tempdelete2&operationnum=<?php echo $_smarty_tpl->tpl_vars['loadData']->value[0]->operationnum;?>
" type="button" class="btn btn-default btn-danger" style="color: white">ايقاف</a>
                            <?php }?>
                            <?php }?>





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

                            <a href="dailyentry.php?id=<?php echo $_smarty_tpl->tpl_vars['dailyentryids']->value;?>
" target="_blank" type="button" class="hidden-print noprint btn btn-primary" style="color: white">قيد اليومية</a>
                            <?php }?>
                            <!--  ----  -->

                            <button type="submit"  class="btn btn-primary noprint"> رجوع</button>

                        </div>
                    </div>




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

        <!------------------------old data-------------------------------------->
        <?php if (!empty($_smarty_tpl->tpl_vars['oldperationdata']->value)){?>
        <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">
                            <?php echo $_smarty_tpl->tpl_vars['oldperationdata']->value->oprationnumber;?>

                        </div>
                    </div>


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

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


                        </div>
                    </div>


                    <div class="form-group"  >
                        <label class="col-lg-2 control-label">تاريخ التحويل</label>
                        <div class="col-lg-4">
                            <?php echo $_smarty_tpl->tpl_vars['oldperationdata']->value->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>
                                    <?php  $_smarty_tpl->tpl_vars['myloadData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myloadData']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['oldloadData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myloadData']->key => $_smarty_tpl->tpl_vars['myloadData']->value){
$_smarty_tpl->tpl_vars['myloadData']->_loop = true;
?>

                                    <tr>

                                        <td>
                                            <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->storefromName;?>

                                        </td>

                                        <td>

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


                                        </td>
                                        <td>
                                            <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->productName;?>
 / <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->productCatName;?>

                                        </td>
                                        <td>
                                            <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->transferproductamount;?>

                                        </td>

                                        <td>
                                            <?php echo $_smarty_tpl->tpl_vars['myloadData']->value->transferproductdate;?>

                                        </td>



                                    </tr>
                                    <?php } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>

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




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


    </div>
</div>

<?php }} ?>