<script type="text/javascript" src="<?php echo base_url();?>assets/js/inventory_stock_adjusment.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 Adjusment 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_adjust_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">
                                                <select name="category_id" class="form-control select2" style="min-width: 100%;">
                                                    <option value="">Select Category</option>
                                                    <?php foreach($categories as $key=>$category) {?>
                                                        <option value="<?php echo $category->id;?>"><?php echo $category->name;?></option>
                                                    <?php } ?>
                                                </select>
                                            </div>
                                            
                                            <div class="form-group float-clear">
                                                <select name="item_id" class="form-control select2" style="min-width: 100%;">
                                                    <option value="">Select Item</option>                                                    
                                                </select>
                                            </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">
                                        <label class="leftcol">Adjust Type</label>
                                        <div>
                                            <label for="status" style="width: 32%; font-weight: bold; font-size: 20px;"><input type="radio" name="adj_type" value="1"  checked /> &nbsp;&nbsp;+</label> 
                                            <label for="status" style="width: 32%; font-weight: bold; font-size: 20px;"><input type="radio" name="adj_type" value="0" /> &nbsp;&nbsp;-</label> 
                                        </div>
                                    </div>
                                            <div class="form-group float-clear">
                                                <input type="text" class="form-control integer_value" name="adj_qty" placeholder="Adjust Quantity" style="min-width: 100%;"/>
                                            </div>
                                            
                                            <div class="form-group float-clear">
                                                <div class="input-group">
                                                    <input type="text" class="form-control datepicker" name="adj_date" placeholder="Adjustment 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%;" readonly="readonly"/>
                                            </div>
                                                                                        
                                            <div class="form-group float-clear">
                                                <textarea class="form-control" name="desc" style="min-width: 100%;" placeholder="Reason for Adjustment"></textarea>
                                            </div>
                                            
                                            <div class="form-actions float-clear">
                                                <input type="submit" name="submit" value="Submit" 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>