<script type="text/javascript" src="<?php echo base_url();?>assets/js/inventory_stock_issue.js"></script>

<style>

.form-horizontal .nopadding {

	padding: 0px;

}

.form-horizontal .form-control {

	width: 100%;

	min-width: 100%;

	max-width: 100%;

}

.form-horizontal .input-group {

	max-width: 100%;

	min-width: 100%;

}

</style>

<aside class="right-side">

    <section class="content-header">

        <div class="title_bar">

            <h1 class="major_txt_color">Inventory – Stock Issue Add</h1>

            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>

        </div>

    </section>

    <section class="content">

        <div class="row">

            <div class="col-xs-12">

                <form action="<?php echo $form_action;?>" method="post" class="form-horizontal" name="inv_stock_issue_form" enctype="multipart/form-data" method="post">    

                    <input type="hidden" name="hidden_id" value="" />    

                    <div class="box box-danger">

                        <div class="box-body">

                            <ul class="error_container"></ul>

                            <div class="col-xs-12">

                                <div class="col-md-6">

                                	<div class="row">

                                    	<div class="col-md-12">

                                        	<div class="form-group float-clear">

                                                <input type="text" class="form-control" name="stock_issue" placeholder="Stock Issue to" style="min-width: 100%;" value="<?php echo $result['stock_issue_to']; ?>"/>

                                            </div>

                                                                                                                                     

                                            <div class="form-group float-clear">

                                                <input type="text" class="form-control" style="min-width: 100%;" readonly="readonly" value="<?php echo $result['inv_cat_name']; ?>"  />

                                                <input type="hidden" name="category_id" value="<?php echo $result['category_id']; ?>" />

                                            </div>

                                            

                                            <div class="form-group float-clear">

                                                <input type="text" class="form-control" style="min-width: 100%;" readonly="readonly" value="<?php echo $result['inv_item_name']; ?>"  />

                                                <input type="hidden" name="item_id" value="<?php echo $result['item_id']; ?>" />

                                            </div>

                                        

                                            <!--<div class="form-group float-clear">

                                                <input type="text" class="form-control integer_value" name="avail_qty" placeholder="Available Qty" style="min-width: 100%;"  readonly="readonly"/>

                                                <input type="hidden" name="adj_type" value="0" />

                                            </div>-->

                                            

                                            <div class="form-group float-clear">

                                                <input type="text" class="form-control integer_value" name="issued_qty" placeholder="Issue Qty" style="min-width: 100%;" value="<?php echo $result['issue_qty']; ?>"/>

                                            </div>

                                            

                                            <div class="form-group float-clear">

                                                <div class="input-group">

                                                    <input type="text" class="form-control datepicker" name="issue_date" placeholder="Issue Date" value="<?php echo date("d-m-Y", strtotime($result['issue_date'])); ?>" />

                                                    <div class="input-group-addon"><i class="fa fa-calendar"></i></div>

                                                </div>

                                            </div>

                                            

                                            <!--<div class="form-group float-clear">

                                                <input type="text" class="form-control integer_value" name="balance_qty" placeholder="Balance Qty" style="min-width: 100%;" value="<?php echo $result['balance_qty']; ?>" readonly="readonly"/>

                                            </div>-->

                                                                                        

                                            <div class="form-group float-clear">

                                                <textarea class="form-control" name="desc" style="min-width: 100%;" placeholder="Description"><?php echo $result['desc']; ?></textarea>

                                            </div>

                                            

                                            <div class="form-actions float-clear">

                                                <input type="submit" name="submit" value="Update" class="btn btn-primary" style="padding: 5px 50px;"/>

                                                <input class="btn btn-primary reset" type="reset" value="Reset" style="padding: 5px 50px;"/>                            

                                            </div>

                                		</div>

                                    </div>

                                </div>

                            </div>

                        </div>

                        <div class="box-footer form-actions float-clear">&nbsp;</div>

                    </div><!-- /.box -->

                </form>

            </div><!-- /.col-xs-12 -->

        </div><!-- /.row -->

    </section><!-- /.content -->

</aside>