<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<?php echo form_open_multipart(admin_url('warehouse/inventory_setting'),array('class'=>'inventory_setting','autocomplete'=>'off')); ?>

<div class="row">
	<div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('inventory_received_note') ?></h5>
      <hr class="hr-color">
    </div>
</div>

<div class="form-group">
  <label><?php echo _l('inventory_received_number_prefix'); ?></label>
  <div  class="form-group" app-field-wrapper="inventory_received_number_prefix">
    <input type="text" id="inventory_received_number_prefix" name="inventory_received_number_prefix" class="form-control" value="<?php echo get_warehouse_option('inventory_received_number_prefix'); ?>"></div>
</div>

<div class="form-group">
  <label><?php echo _l('next_inventory_received_mumber'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_inventory_received_mumber_tooltip'); ?>"></i>
  <div  class="form-group" app-field-wrapper="next_inventory_received_mumber">
    <input type="number" min="0" id="next_inventory_received_mumber" name="next_inventory_received_mumber" class="form-control" value="<?php echo get_warehouse_option('next_inventory_received_mumber'); ?>">
  </div>

</div>


<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('inventory_delivery_note') ?></h5>
      <hr class="hr-color">
    </div>
</div>

<div class="form-group">
  <label><?php echo _l('inventory_delivery_number_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="inventory_delivery_number_prefix">
    <input type="text" id="inventory_delivery_number_prefix" name="inventory_delivery_number_prefix" class="form-control" value="<?php echo get_warehouse_option('inventory_delivery_number_prefix'); ?>"></div>
</div>

<div class="form-group">
  <label> <?php echo _l('next_inventory_delivery_mumber'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="next_inventory_delivery_mumber">
    <input type="number" min="0" id="next_inventory_delivery_mumber" name="next_inventory_delivery_mumber" class="form-control" value="<?php echo get_warehouse_option('next_inventory_delivery_mumber'); ?>"></div>
</div>


<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('internal_delivery_note') ?></h5>
      <hr class="hr-color">
    </div>
</div>

<div class="form-group">
  <label><?php echo _l('internal_delivery_number_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="internal_delivery_number_prefix">
    <input type="text" id="internal_delivery_number_prefix" name="internal_delivery_number_prefix" class="form-control" value="<?php echo get_warehouse_option('internal_delivery_number_prefix'); ?>"></div>
</div>

<div class="form-group">
  <label> <?php echo _l('next_internal_delivery_mumber'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="next_internal_delivery_mumber">
    <input type="number" min="0" id="next_internal_delivery_mumber" name="next_internal_delivery_mumber" class="form-control" value="<?php echo get_warehouse_option('next_internal_delivery_mumber'); ?>"></div>
</div>

<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('wh_packing_list') ?></h5>
      <hr class="hr-color">
    </div>
</div>

<div class="form-group">
  <label><?php echo _l('packing_list_number_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="packing_list_number_prefix">
    <input type="text" id="packing_list_number_prefix" name="packing_list_number_prefix" class="form-control" value="<?php echo get_warehouse_option('packing_list_number_prefix'); ?>"></div>
</div>

<div class="form-group">
  <label> <?php echo _l('next_packing_list_number'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="next_packing_list_number">
    <input type="number" min="0" id="next_packing_list_number" name="next_packing_list_number" class="form-control" value="<?php echo get_warehouse_option('next_packing_list_number'); ?>"></div>
</div>

<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('inventory_receipt_inventory_delivery_returns_goods') ?></h5>
      <hr class="hr-color">
    </div>
</div>
<div class="form-group">
  <label><?php echo _l('receipt_return_order_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="order_return_number_prefix">
    <input type="text" id="order_return_number_prefix" name="order_return_number_prefix" class="form-control" value="<?php echo get_warehouse_option('order_return_number_prefix'); ?>"></div>
</div>
<div class="form-group">
  <label> <?php echo _l('next_receipt_return_order'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="next_order_return_number">
    <input type="number" min="0" id="next_order_return_number" name="next_order_return_number" class="form-control" value="<?php echo get_warehouse_option('next_order_return_number'); ?>"></div>
</div>

<div class="form-group">
  <label><?php echo _l('delivery_return_order_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="e_order_return_number_prefix">
    <input type="text" id="e_order_return_number_prefix" name="e_order_return_number_prefix" class="form-control" value="<?php echo get_warehouse_option('e_order_return_number_prefix'); ?>"></div>
</div>
<div class="form-group">
  <label> <?php echo _l('next_delivery_return_order'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="e_next_order_return_number">
    <input type="number" min="0" id="e_next_order_return_number" name="e_next_order_return_number" class="form-control" value="<?php echo get_warehouse_option('e_next_order_return_number'); ?>"></div>
</div>

<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('item_sku_prefix') ?></h5>
      <hr class="hr-color">
    </div>
</div>

<div class="form-group">
  <label><?php echo _l('item_sku_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="item_sku_prefix">
    <input type="text" id="item_sku_prefix" name="item_sku_prefix" class="form-control" value="<?php echo get_warehouse_option('item_sku_prefix'); ?>"></div>
</div>

<div class="row">
  <div class="col-md-12">
      <h5 class="no-margin font-bold h5-color"><?php echo _l('lot_number') ?></h5>
      <hr class="hr-color">
    </div>
</div>
<div class="form-group">
  <div class="checkbox checkbox-primary">
    <input  type="checkbox" id="auto_generate_lotnumber" name="auto_generate_lotnumber" <?php if(get_option('auto_generate_lotnumber') == 1 ){ echo 'checked';} ?> value="auto_generate_lotnumber" >
    <label for="auto_generate_lotnumber"><?php echo _l('wh_automatically_generate_batch_numbers'); ?>
  </label>
</div>
</div>

<div class=" option-show-lotnumber-setting <?php if(get_option('auto_generate_lotnumber') == 1){ echo '';}else{ echo 'hide';}  ?>">
<div class="form-group">
  <label><?php echo _l('lot_number_prefix'); ?></label>
  <div class="form-group" app-field-wrapper="lot_number_prefix">
    <input type="text" id="lot_number_prefix" name="lot_number_prefix" class="form-control" value="<?php echo get_warehouse_option('lot_number_prefix'); ?>"></div>
</div>
<div class="form-group">
  <label> <?php echo _l('next_lot_number'); ?></label>
<i class="fa fa-question-circle i_tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo _l('next_delivery_received_mumber_tooltip'); ?>"></i>

  <div  class="form-group" app-field-wrapper="next_lot_number">
    <input type="number" min="0" id="next_lot_number" name="next_lot_number" class="form-control" value="<?php echo get_warehouse_option('next_lot_number'); ?>"></div>
</div>
</div>


<div class="clearfix"></div>
<?php if(has_permission('wh_setting', '', 'edit') || has_permission('wh_setting', '', 'create')){ ?>
 <div class="modal-footer">
        <button type="submit" class="btn btn-info"><?php echo _l('submit'); ?></button>
    </div>
  <?php } ?>
 <?php echo form_close(); ?>


</body>
</html>


