
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="settlementstoreController.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 id="settForm" class="form-horizontal" role="form" action="settlementstoreController.php?do=add" method="post">
                    <input type="hidden" name="searchvalue" id="searchvalue" value="{$Programsettingdata->searchvalue}"/>
                    <div class="form-group">
                        <label for="storeid" class="col-lg-2 control-label">المخزن</label>
                        <div class="col-lg-4">
                            <select class="select2" style='width:357px' name="storeid" id="storeid" onChange="loadproduct();">
                                <option value="-1">اختر مخزن</option>
                                {foreach $storeData as $store}
                                <option value="{$store->storeId}">{$store->storeName}</option>
                                {/foreach}
                            </select>
                            <div id="storeError" style="display:none;"></div>

                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="productid" class="col-lg-2 control-label">المنتج</label>
                        <div class="col-lg-4">
                            <input type="hidden" class="select2product " style='width:357px'  name="productid" id="productid"  onChange="getproductCurrentQuantity();"  />
                            <div id="productError" style="display:none;"></div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="storereporttype" class="col-lg-2 control-label">نوع العملية</label>
                        <div class=" col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="storereporttype" id="addvalue" value="0" onClick="addproductvalue();" checked>
                                    اضافة </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="storereporttype" id="discountvalue" value="1" onClick="discountproductvalue();">
                                    خصم </label>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="productbefore" class="col-lg-2 control-label">الكمية الحالية</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="productbefore" id="productbefore"  class="form-control" readonly="readonly" value="0"  style="width: 356px;"/>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="productquantity" class="col-lg-2 control-label">الكمية المتغيرة</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text"  style="width: 356px;" name="productquantity" id="productquantity"  onKeyUp="checkproductquantity();"  class="form-control positivefloat" placeholder="الكمية المتغيرة"/>
                                <div id="quantityError" style="display:none;"></div>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="productafter" class="col-lg-2 control-label">الكمية بعد التغيير</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text"  style="width: 356px;" name="productafter" id="productafter"  class="form-control" readonly="readonly" value="0" />
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" id="saveSettBtn" class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
