IGR design
This commit is contained in:
parent
ae54fbd45e
commit
584f93b0a6
@ -1,144 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<!-- Content Header (Page header) -->
|
|
||||||
<section class="content-header">
|
|
||||||
<h1>
|
|
||||||
Add Purchase order Line Item
|
|
||||||
</h1>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="content">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<!-- left column -->
|
|
||||||
<div class="col-md-6">
|
|
||||||
<!-- general form elements -->
|
|
||||||
<div class="box box-success">
|
|
||||||
<div class="box-header">
|
|
||||||
<h3 class="box-title">Enter PO Line Item</h3>
|
|
||||||
</div><!-- /.box-header -->
|
|
||||||
<!-- form start -->
|
|
||||||
|
|
||||||
<form role="form" action="<?php echo base_url() ?>purchaseorder/addNewPOLineItem" method="post" id="AddPOLineItem" role="form">
|
|
||||||
<div class="box-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="ProductDescription">Product Description</label>
|
|
||||||
<select class="form-control" name="ProductDescription" required>
|
|
||||||
<option value="null">Select Product Description</option>
|
|
||||||
<?php
|
|
||||||
if(!empty($RawMaterials))
|
|
||||||
{
|
|
||||||
foreach ($RawMaterials as $RID)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $RID->MaterialCode ?>"><?php echo $RID->MaterialCode ?> - <?php echo $RID->MaterialName ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="UOM">UOM</label>
|
|
||||||
<select class="form-control required" id="UOM" name="UOM">
|
|
||||||
<option value="null">Select UOM</option>
|
|
||||||
<?php
|
|
||||||
if(!empty($UOM))
|
|
||||||
{
|
|
||||||
foreach ($UOM as $UID)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<option value="<?php echo $UID->ConfigValue ?>"><?php echo $UID->ConfigValue ?></option>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="Quantity">Quantity</label>
|
|
||||||
<input type="text" class="form-control required digits" id="Quantity" name="Quantity" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="UnitPrice">Unit Price</label>
|
|
||||||
<input type="text" class="form-control required digits" id="UnitPrice" name="UnitPrice" onchange="change()" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="ProductPrice">Product Price</label>
|
|
||||||
<input type="text" class="form-control required digits" id="ProductPrice" name="ProductPrice" disabled >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-footer">
|
|
||||||
<input type="submit" class="btn btn-success" value="Submit" />
|
|
||||||
<input type="reset" class="btn btn-default" value="Reset" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<?php
|
|
||||||
helper('form');
|
|
||||||
$error = session()->getFlashdata('error');
|
|
||||||
if($error)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if($success)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div class="alert alert-success alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?> </div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function change(){
|
|
||||||
|
|
||||||
var txtQuantity = document.getElementById('Quantity').value;
|
|
||||||
var txtUnitPrice = document.getElementById('UnitPrice').value;
|
|
||||||
var Tot = txtQuantity * txtUnitPrice
|
|
||||||
document.getElementById('ProductPrice').value = Tot;
|
|
||||||
// Do Something
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script src="<?php echo base_url(); ?>public/assets/js/editUser.js" type="text/javascript"></script>
|
|
||||||
1183
app/Views/addPO.php
1183
app/Views/addPO.php
File diff suppressed because it is too large
Load Diff
@ -67,12 +67,11 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="page-title-box page-title-box-alt">
|
<div class="page-title-box page-title-box-alt">
|
||||||
<h4><?= "Edit Requisition"; ?><?= $ReqNo ? " - ".$ReqNo : ""; ?></h4>
|
<h4><?= "Edit Requisition"; ?><?= $ReqNo ? " - " . $ReqNo : ""; ?></h4>
|
||||||
<a href="<?php echo base_url(); ?>Requisition"><button type="button" class="btn btn-dark waves-effect waves-light">Back</button></a>
|
<a href="<?php echo base_url(); ?>Requisition"><button type="button" class="btn btn-dark waves-effect waves-light">Back</button></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- end page title -->
|
<!-- end page title -->
|
||||||
<!-- Form row -->
|
<!-- Form row -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -126,7 +125,7 @@ if (!empty($ReqPOType)) {
|
|||||||
$Costs[$SID->CostCenterCode] = $SID->CostCenterCode . '-' . $SID->CostCenterName;
|
$Costs[$SID->CostCenterCode] = $SID->CostCenterCode . '-' . $SID->CostCenterName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('CostCenter', $Costs, set_value('CostCenter'), 'id="CostCenter" class = "form-control"');
|
echo form_dropdown('CostCenter', $Costs, set_value('CostCenter'), 'id="CostCenter" class = "form-control searchabledropdown"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -185,7 +184,7 @@ if (!empty($ReqPOType)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
<?php if (count($MaterialCode) != 0) {?>
|
<?php if (count($MaterialCode) != 0) { ?>
|
||||||
<a data-toggle="modal" data-target="#add-req-modal" class="btn btn-primary waves-effect float-right">Add Line Item</a>
|
<a data-toggle="modal" data-target="#add-req-modal" class="btn btn-primary waves-effect float-right">Add Line Item</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
@ -226,7 +225,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<td align="left"><?php echo $record->StatusName; ?></td>
|
<td align="left"><?php echo $record->StatusName; ?></td>
|
||||||
<input type="hidden" name="<?php echo 'materialdesc' . $index ?>" id="<?php echo 'materialdesc' . $index ?>" value="<?php echo isset($record->MaterialDescription) ? $record->MaterialDescription : ''; ?>" />
|
<input type="hidden" name="<?php echo 'materialdesc' . $index ?>" id="<?php echo 'materialdesc' . $index ?>" value="<?php echo isset($record->MaterialDescription) ? $record->MaterialDescription : ''; ?>" />
|
||||||
<td>
|
<td>
|
||||||
<a data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal"><i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->MaterialCode; ?> Material details"></i> </a> <a onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $record->MaterialCode; ?>" data-userid="<?php echo $index; ?>" id="Del" ><span class="ri-delete-bin-7-fill"></span></a>
|
<a data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal"><i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->MaterialCode; ?> Material details"></i> </a> <a onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $record->MaterialCode; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $RowCount = $index;
|
<?php $RowCount = $index;
|
||||||
@ -253,9 +252,9 @@ if (!empty($ReqPOType)) {
|
|||||||
<input type="reset" value="Reset" class="btn btn-secondary waves-effect" onclick="window.location.reload();">
|
<input type="reset" value="Reset" class="btn btn-secondary waves-effect" onclick="window.location.reload();">
|
||||||
<a class="btn-primary waves-effect Save" ID="submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
<a class="btn-primary waves-effect Save" ID="submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||||
<a class="btn-soft-primary waves-effect waves-light submit" ID="submit" onclick="Save(2)"> <span class="bold">Approve</span></a>
|
<a class="btn-soft-primary waves-effect waves-light submit" ID="submit" onclick="Save(2)"> <span class="bold">Approve</span></a>
|
||||||
<?php }?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php echo form_close();?>
|
<?php echo form_close(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -284,7 +283,7 @@ if (!empty($ReqPOType)) {
|
|||||||
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('drpMaterial', $options, set_value('drpMaterial'), 'id="drpMaterial" class="form-control"');
|
echo form_dropdown('drpMaterial', $options, set_value('drpMaterial'), 'id="drpMaterial" class="form-control searchabledropdown"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -315,7 +314,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="Quantity" class="control-label">Quantity</label>
|
<label for="Quantity" class="control-label">Quantity</label>
|
||||||
<?php $data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event)', 'maxlength' => '20' , 'min' => '1');
|
<?php $data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event)', 'maxlength' => '20', 'min' => '1');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -358,7 +357,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="EditMaterialCode" class="control-label">Material Code</label>
|
<label for="EditMaterialCode" class="control-label">Material Code</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditMaterialCode', 'value' => set_value('EditMaterialCode'), 'id' => 'EditMaterialCode', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'EditMaterialCode', 'value' => set_value('EditMaterialCode'), 'id' => 'EditMaterialCode', 'class' => 'form-control searchabledropdown', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -394,7 +393,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<label for="EditQuantity"
|
<label for="EditQuantity"
|
||||||
class="control-label">Quantity</label>
|
class="control-label">Quantity</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event)', 'maxlength' => '20' , 'min' => '1');
|
$data = array('name' => 'EditQuantity', 'value' => set_value('EditQuantity'), 'id' => 'EditQuantity', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event)', 'maxlength' => '20', 'min' => '1');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -425,11 +424,8 @@ if (!empty($ReqPOType)) {
|
|||||||
</div> <!-- content -->
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$( document ).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$(".searchabledropdown").select2();
|
||||||
$("#CostCenter").select2();
|
|
||||||
$("#drpMaterial").select2();
|
|
||||||
$("#EditMaterialCode").select2();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function isNumberKey(evt) {
|
function isNumberKey(evt) {
|
||||||
@ -471,9 +467,6 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#EditotherDescription').hide();
|
$('#EditotherDescription').hide();
|
||||||
|
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
|
||||||
$(".select2").select2();
|
|
||||||
|
|
||||||
var id = '<?php echo $CostCenterCode ?>';
|
var id = '<?php echo $CostCenterCode ?>';
|
||||||
var ReqType = '<?php echo $strReqPOType ?>';
|
var ReqType = '<?php echo $strReqPOType ?>';
|
||||||
|
|
||||||
@ -482,7 +475,10 @@ if (!empty($ReqPOType)) {
|
|||||||
urlval = "<?php echo base_url() ?>serviceAvilBudgetAmount";
|
urlval = "<?php echo base_url() ?>serviceAvilBudgetAmount";
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id,type: ReqType},
|
data: {
|
||||||
|
id: id,
|
||||||
|
type: ReqType
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: urlval,
|
url: urlval,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -572,7 +568,9 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id},
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url(); ?>getMaterialDetails",
|
url: "<?php echo base_url(); ?>getMaterialDetails",
|
||||||
@ -760,7 +758,9 @@ if (!empty($ReqPOType)) {
|
|||||||
$('#txtDeletedRow').val(DelRows);
|
$('#txtDeletedRow').val(DelRows);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {id: id},
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>DeleteRequistionForm",
|
url: "<?php echo base_url() ?>DeleteRequistionForm",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
<link href="<?= base_url() . "public/new_assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.js"></script>
|
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
|
||||||
<script src="<?php echo base_url() ?>public/assets/lightswitch/lightswitch/lib/jquery.tabletojson.min.js"></script>
|
|
||||||
<style>
|
|
||||||
#MaterialRcvdDate {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#InvoiceDate {
|
<style>
|
||||||
|
#MaterialRcvdDate, #InvoiceDate {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.autocomplete-suggestion {
|
.autocomplete-suggestion {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: skyblue;
|
background-color: skyblue;
|
||||||
@ -18,57 +12,54 @@
|
|||||||
outline: 1px solid slategrey;
|
outline: 1px solid slategrey;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#PONO").select2();
|
// $('#DriverName').autocomplete({
|
||||||
$("#TransporterId").select2();
|
|
||||||
$('#DriverName').autocomplete({
|
|
||||||
|
|
||||||
onSearchStart: function(query) {
|
// onSearchStart: function(query) {
|
||||||
//alert(query);
|
// //alert(query);
|
||||||
$('#DriverName').autocomplete("option", "minLength", 0);
|
// $('#DriverName').autocomplete("option", "minLength", 0);
|
||||||
},
|
// },
|
||||||
|
|
||||||
serviceUrl: "<?php echo base_url(); ?>drivernameautocomplete",
|
// serviceUrl: "<?php echo base_url(); ?>drivernameautocomplete",
|
||||||
onSelect: function(suggestion) {
|
// onSelect: function(suggestion) {
|
||||||
var data = suggestion.DriverName;
|
// var data = suggestion.DriverName;
|
||||||
|
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
$('#DriverMobileNumber').autocomplete({
|
// $('#DriverMobileNumber').autocomplete({
|
||||||
serviceUrl: "<?php echo base_url(); ?>drivermobileautocomplete",
|
// serviceUrl: "<?php echo base_url(); ?>drivermobileautocomplete",
|
||||||
params: {
|
// params: {
|
||||||
driverName: function() {
|
// driverName: function() {
|
||||||
return $('#DriverName').val(); // Pass the value of the DriverName input field
|
// return $('#DriverName').val(); // Pass the value of the DriverName input field
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
onSearchStart: function(query) {
|
// onSearchStart: function(query) {
|
||||||
$('#DriverMobileNumber').autocomplete("option", "minLength", 0);
|
// $('#DriverMobileNumber').autocomplete("option", "minLength", 0);
|
||||||
},
|
// },
|
||||||
onSelect: function(suggestion) {
|
// onSelect: function(suggestion) {
|
||||||
var data = suggestion.DriverMobileNumber;
|
// var data = suggestion.DriverMobileNumber;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#InvoiceDate").datepicker({
|
// $("#InvoiceDate").datepicker({
|
||||||
maxDate: 'now',
|
// maxDate: 'now',
|
||||||
dateFormat: 'dd-mm-yy',
|
// dateFormat: 'dd-mm-yy',
|
||||||
changeMonth: true,
|
// changeMonth: true,
|
||||||
changeYear: true,
|
// changeYear: true,
|
||||||
yearRange: '-100:+0'
|
// yearRange: '-100:+0'
|
||||||
});
|
// });
|
||||||
$("#MaterialRcvdDate").datepicker({
|
// $("#MaterialRcvdDate").datepicker({
|
||||||
maxDate: 'now',
|
// maxDate: 'now',
|
||||||
dateFormat: 'dd-mm-yy',
|
// dateFormat: 'dd-mm-yy',
|
||||||
changeMonth: true,
|
// changeMonth: true,
|
||||||
changeYear: true,
|
// changeYear: true,
|
||||||
yearRange: '-100:+0'
|
// yearRange: '-100:+0'
|
||||||
}).datepicker("setDate", new Date());
|
// }).datepicker("setDate", new Date());
|
||||||
|
|
||||||
});
|
});
|
||||||
//jquery for vechicle masking
|
//jquery for vechicle masking
|
||||||
@ -76,63 +67,35 @@
|
|||||||
// Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
// Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
||||||
// });
|
// });
|
||||||
</script>
|
</script>
|
||||||
|
<div class="content-page">
|
||||||
<style>
|
<div class="content">
|
||||||
.modal {
|
<!-- Start Content-->
|
||||||
text-align: center;
|
<div class="container-fluid">
|
||||||
padding: 0 !important;
|
<!-- start page title -->
|
||||||
}
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
.modal:before {
|
<div class="page-title-box page-title-box-alt">
|
||||||
content: '';
|
<h4><?= "Inward Gate Register"; ?></h4>
|
||||||
display: inline-block;
|
|
||||||
height: 100%;
|
|
||||||
vertical-align: middle;
|
|
||||||
margin-right: -4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-dialog {
|
|
||||||
display: inline-block;
|
|
||||||
text-align: left;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select2 {
|
|
||||||
width: 100% ! important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.num {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dataTables_wrapper {
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="content-wrapper" style="min-height:537px;">
|
|
||||||
|
|
||||||
<section class="content-header">
|
|
||||||
<h5>
|
|
||||||
<div class="pull-right hidden-xs">
|
<div class="pull-right hidden-xs">
|
||||||
<b>
|
<b>
|
||||||
<div id="wizard_clock"></div>
|
<div id="wizard_clock"></div>
|
||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
</h5>
|
</div>
|
||||||
<h1>
|
</div>
|
||||||
<center> Inward Gate Register </center>
|
</div>
|
||||||
</h1>
|
<!-- end page title -->
|
||||||
</section>
|
<!-- Form row -->
|
||||||
<section class="content" style="margin: 15px;"><br />
|
<div class="row">
|
||||||
<div style="border:2px solid #333;">
|
<div class="col-12">
|
||||||
<form action="<?php echo base_url() ?>SaveIGR" method="post" enctype="multipart/form-data">
|
<div class="card">
|
||||||
<div class="row"><br /><br />
|
<div class="card-body">
|
||||||
<div id="content"> </div>
|
<form id="IGRForm" action="<?php echo base_url() ?>SaveIGR" method="post" enctype="multipart/form-data">
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="col-md-6">
|
<div class="form-row">
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
<div class="form-group col-md-6">
|
||||||
<label>Select Purchase Order No <span style="color:red; font-size: 15px;">*</span></label>
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<label class="col-form-label">Select Purchase Order No <span class="text-danger">*</span></label>
|
||||||
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
<a id="printLink" data-toggle="tooltip" href="" target="new" style="text-align: right;">
|
||||||
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
<i class="fa fa-print" data-toggle="tooltip" title="Click here to Print the Purchase Order details"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -146,55 +109,79 @@
|
|||||||
$PONO = $SI->PONO;
|
$PONO = $SI->PONO;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('PONO', $options, set_value('PONO'), 'id="PONO"', 'class="form-control select2"', 'required="true"');
|
echo form_dropdown(
|
||||||
|
'PONO',
|
||||||
|
$options,
|
||||||
|
set_value('PONO'),
|
||||||
|
'class="form-control searchabledropdown" id="PONO" data-toggle="select2" required="true"'
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
<span class="help-block"></span>
|
<span class="help-block"></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
<div class="form-group col-md-6">
|
||||||
<div class="col-md-6">
|
<label class="col-form-label">Supplier Name</label>
|
||||||
<label>Supplier Name </label>
|
|
||||||
<div class="form-group">
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Sup', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'SupplierName', 'value' => set_value('SupplierName'), 'id' => 'Sup', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-row">
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
<div class="form-group col-md-4">
|
||||||
<div class="col-md-4">
|
<label class="col-form-label">Invoice Number<span class="text-danger">*</span></label>
|
||||||
<label>Invoice Number <span style="color:red; font-size: 15px;">*</span><!-- Delivery Challan/Inv No --></label>
|
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'InvoiceNo', 'value' => set_value('InvoiceNo'), 'id' => 'InvoiceNo', 'class' => 'form-control', 'required=>"true"', 'autocomplete'=>'off'); // ,'onkeypress'=>'return isNumberKey(event);' );
|
$data = array('name' => 'InvoiceNo', 'value' => set_value('InvoiceNo'), 'id' => 'InvoiceNo', 'class' => 'form-control', 'required=>"true"', 'autocomplete' => 'off'); // ,'onkeypress'=>'return isNumberKey(event);' );
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label>Invoice Date <span style="color:red; font-size: 15px;">*</span><!-- Delivery Challan/Inv Date --></label>
|
<label class="col-form-label">Invoice Date<span class="text-danger">*</span></label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control" data-provide="datepicker" data-date-format="dd/mm/yyyy" data-date-autoclose="true" id="InvoiceDate" name="InvoiceDate" data-date-end-date="<?= date('d/m/Y'); ?>" required autocomplete="off">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<span class="input-group-text">
|
||||||
|
<i class="ri-calendar-event-fill"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div><!-- input-group -->
|
||||||
|
|
||||||
|
<!-- <input type="date" class="form-control" id="invoiceDate" name="invoice_date" value="<?= isset($invoice_details['invoice_date']) ? $invoice_details['invoice_date'] : '' ?>" max="<?= date('d/m/Y'); ?>" required> -->
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'InvoiceDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete'=>'off');
|
// $data = array('name' => 'InvoiceDate', 'value' => set_value('InvoiceDate'), 'id' => 'InvoiceDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
// echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
|
||||||
<label>Material Received Date <span style="color:red; font-size: 15px;">*</span></label>
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label class="col-form-label">Material Received Date<span class="text-danger">*</span></label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" class="form-control" data-provide="datepicker" data-date-format="dd/mm/yyyy" data-date-autoclose="true" id="MaterialRcvdDate" name="MaterialRcvdDate" data-date-end-date="<?= date('d/m/Y'); ?>" required autocomplete="off">
|
||||||
|
<div class="input-group-append">
|
||||||
|
<span class="input-group-text">
|
||||||
|
<i class="ri-calendar-event-fill"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete'=>'off');
|
// $data = array('name' => 'MaterialRcvdDate', 'value' => set_value('MaterialRcvdDate'), 'id' => 'MaterialRcvdDate', 'class' => 'form-control num', 'required' => 'true', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
// echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12" style="margin: 10px 0;">
|
<div class="form-row">
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Vechicle Number</label>
|
|
||||||
|
<label class="col-form-label">Vechicle Number</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'VehicleNo', 'class' => 'form-control', 'maxlength' => '20', 'autocomplete'=>'off');
|
$data = array('name' => 'VehicleNo', 'value' => set_value('VehicleNo'), 'id' => 'VehicleNo', 'class' => 'form-control', 'maxlength' => '20', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
<!-- <span pattern="" required="true"></span> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Transporter Name</label>
|
<label class="col-form-label">Transporter Name</label>
|
||||||
<?php
|
<?php
|
||||||
$option = array(0 => 'Transporter Name');
|
$option = array(0 => 'Transporter Name');
|
||||||
if (!empty($transporter)) {
|
if (!empty($transporter)) {
|
||||||
@ -202,35 +189,29 @@
|
|||||||
$option[$opt->id] = $opt->name;
|
$option[$opt->id] = $opt->name;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('TransporterId', $option, set_value('TransporterId'), 'id="TransporterId"', 'class="form-control select2"');
|
echo form_dropdown('TransporterId', $option, set_value('TransporterId'), 'class="form-control searchabledropdown" id="TransporterId" data-toggle="select2"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Driver Name</label>
|
<label class="col-form-label">Driver Name</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'DriverName', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete'=>'off');
|
$data = array('name' => 'DriverName', 'value' => set_value('DriverName'), 'id' => 'DriverName', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label>Driver Mobile Number</label>
|
<label class="col-form-label">Driver Mobile Number</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete'=>'off');
|
$data = array('name' => 'DriverMobileNumber', 'value' => set_value('DriverMobileNumber'), 'id' => 'DriverMobileNumber', 'class' => 'form-control', 'maxlength' => '50', 'autocomplete' => 'off');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-row">
|
||||||
|
<div class="table-responsive">
|
||||||
<div class="col-md-12" style="margin-top: 10px;">
|
<table id="Inwardgateregistertable" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
|
||||||
<input type="hidden" name="hideIGRStatus" id="hideIGRStatus" value="0" />
|
<thead>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
<table id="Inwardgateregistertable" class="table table-bordered table-hover editabletable IGR_Line" style="background-color:#fff;font-size:12px;">
|
|
||||||
<thead style="background-color:#ddf">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Item Code</th>
|
<th>Item Code</th>
|
||||||
@ -245,115 +226,64 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="IGRappend"></tbody>
|
<tbody id="IGRappend"></tbody>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
</div> <!-- end table-responsive-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-4 col-md-offset-8">
|
|
||||||
<input type="file" name="MasterFile" id="images1" onchange="Copyfilenames(this.name); "><br>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-row text-right">
|
||||||
|
<div class="form-group col-md-12">
|
||||||
|
<input type="file" name="MasterFile" id="MasterFile" onchange="filenames(this.name); "><br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="files">
|
<div class="files">
|
||||||
<div class="col-md-4 col-md-offset-8" style="padding-bottom: 15px;">
|
<div class="form-row float-right">
|
||||||
<button type="button" class="btn btn-primary btn-sm a1"
|
<div class="form-group">
|
||||||
onclick="appendFilesFileds()" id="day">
|
<button type="button" class="btn btn-primary waves-effect btn-sm a1"
|
||||||
|
onclick="appendFilesFileds()" id="additionalfilebtn">
|
||||||
Add Additional File
|
Add Additional File
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if(!empty($emp_data)){ foreach ($emp_data as $key => $value) { ?>
|
|
||||||
|
|
||||||
<div class="col-md-12 pad ">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<span>File Name</span>
|
|
||||||
<input type="text" maxlength="255" class="form-control"
|
|
||||||
value="<?php echo $value['file_name']; ?>" readonly>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="margin-top: 25px;">
|
<span id="filesContainer"></span>
|
||||||
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $value['emp_file']; ?>"
|
|
||||||
download>
|
|
||||||
<i class="fa fa-download" aria-hidden="true"
|
|
||||||
style="font-size: 25px;"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-5" style="margin-top: 23px;">
|
|
||||||
<button type="button" class="btn btn-danger btn-sm"
|
|
||||||
id="<?= $value['id']; ?>"
|
|
||||||
onclick="removeContact(this)">Delete</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php }} ?>
|
|
||||||
|
|
||||||
<div id="filesContainer"></div>
|
|
||||||
</div><br>
|
</div><br>
|
||||||
<div class="col-md-4 col-md-offset-8">
|
|
||||||
<button class="btn btn-success" id='IGRLink' type="submit" name='IGRLink' onclick="filecheck(1);">Generate IGR</button>
|
|
||||||
<button class="btn btn-success" id='IGRDraftLink' type="submit" name='IGRDraftLink' onclick="filecheck(0);">Save as Draft IGR</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<!-- form closed-->
|
|
||||||
|
|
||||||
<div class="modal fade" id="generateIGR" role="dialog">
|
|
||||||
<div class="modal-dialog modal_style">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<form>
|
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-12"><br>
|
||||||
|
<input type="hidden" name="hiddenIsOpenOrder" id="hiddenIsOpenOrder" />
|
||||||
|
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||||
|
<input type="hidden" name="hideIGRStatus" id="hideIGRStatus" value="0" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-row float-right">
|
||||||
|
<div class="form-group">
|
||||||
|
<button class="btn btn-primary waves-effect" id="IGRLink" type="button">Generate IGR</button>
|
||||||
|
<button class="btn btn-primary waves-effect" id="IGRDraftLink" type="button">Save as Draft IGR</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form> <!-- end form -->
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
<div id="weight-calc-modal" class="modal fade" tabindex="-1" role="dialog"
|
||||||
|
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||||
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
||||||
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
|
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
||||||
<center>
|
|
||||||
<h4>Inward Gate Register Number</h4>
|
|
||||||
</center>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12"> <br />
|
|
||||||
|
|
||||||
<center><label style="font-size:40px;" id="finaligr">Default</label> </center>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<center>
|
|
||||||
<button type="reset" value="Reset" onClick="window.location.reload()"> OK</button>
|
|
||||||
</center>
|
|
||||||
</div><!-- footer div closed -->
|
|
||||||
</div><!-- modal content div closed-->
|
|
||||||
</form><!-- form closed-->
|
|
||||||
</div><!-- modal content closed-->
|
|
||||||
</div><!-- modal fade closed-->
|
|
||||||
<!-- generateIGR modal ended-->
|
|
||||||
|
|
||||||
<div class="modal fade" id="WeightCalculator" role="dialog">
|
|
||||||
<div class="modal-dialog modal_style">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<div class="modal-content">
|
|
||||||
|
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
<h4 class="modal-title">Weight Calculator<span id="WeightTitle"></span></h4>
|
||||||
<center>
|
<button type="button" class="close" data-dismiss="modal"
|
||||||
<h4>Weight Calculator<span id="WeightTitle"></span></h4>
|
aria-hidden="true">×</button>
|
||||||
</center>
|
</div>
|
||||||
<div class="pull-right hidden-xs">
|
<div class="modal-body p-4">
|
||||||
<b>
|
|
||||||
<div id="clock"></div>
|
<div id="clock"></div>
|
||||||
</b>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12"> <br />
|
|
||||||
|
|
||||||
<!-- <center><label style="font-size:40px;">Default</label> </center> -->
|
|
||||||
<!-- <div class="container"> -->
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
<label for="GrossWeight" class="col-md-2 col-form-label">Gross Weight</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'GrossWeight', 'value' => set_value('GrossWeight'), 'id' => 'GrossWeight', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'maxlength' => '50', 'onchange' => 'WeightDiffer(this);', 'placeholder' => 'Gross Weight Value (A)', 'autocomplete'=>"off");
|
$data = array('name' => 'GrossWeight', 'value' => set_value('GrossWeight'), 'id' => 'GrossWeight', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'maxlength' => '50', 'onchange' => 'WeightDiffer(this);', 'placeholder' => 'Gross Weight Value (A)', 'autocomplete' => "off");
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -369,7 +299,7 @@
|
|||||||
<label for="TareWeight" class="col-md-2 col-form-label">Tare Weight</label>
|
<label for="TareWeight" class="col-md-2 col-form-label">Tare Weight</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'TareWeight', 'value' => set_value('TareWeight'), 'id' => 'TareWeight', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'maxlength' => '50', 'onchange' => 'validateTareWeight(this);', 'autocomplete' => 'off', 'placeholder' => 'Tare Weight Value (B)', 'autocomplete'=>"off");
|
$data = array('name' => 'TareWeight', 'value' => set_value('TareWeight'), 'id' => 'TareWeight', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);', 'maxlength' => '50', 'onchange' => 'validateTareWeight(this);', 'autocomplete' => 'off', 'placeholder' => 'Tare Weight Value (B)', 'autocomplete' => "off");
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -392,39 +322,60 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="file" name="WeightFile" id="WeightFile" onchange="Copyfilenames(this.name); "><br>
|
<input type="file" name="WeightFile" id="WeightFile" onchange="filenames(this.name); "><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="col-md-12 text-right">
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
<div class="col-md-4 col-md-offset-8">
|
data-dismiss="modal" value="Cancel">Cancel</button>
|
||||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
<button type="button"
|
||||||
<a class="btn btn-primary" onclick="modalSave()"> <span class="bold">Save</span></a>
|
class="btn btn-info waves-effect waves-light" onclick="modalSave()">Save</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- footer div closed -->
|
|
||||||
</div><!-- modal content div closed-->
|
|
||||||
</div><!-- modal content closed-->
|
|
||||||
</div><!-- modal fade closed-->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- WeightCalculator modal ended-->
|
</div><!-- /.modal weight-calc-modal -->
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(".searchabledropdown").select2();
|
||||||
|
|
||||||
|
$('#IGRLink').on('click', function() {
|
||||||
|
filecheck(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#IGRDraftLink').on('click', function() {
|
||||||
|
filecheck(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
function filecheck(status) {
|
||||||
|
$('#hideIGRStatus').val(status);
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
function Save() {
|
||||||
|
if (validate()) {
|
||||||
|
$('#IGRForm').submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
function isNumberKey(evt) {
|
||||||
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||||
|
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function filenames(id) {
|
||||||
|
var size = $('input[name=' + id + ']')[0].files[0].size;
|
||||||
|
if (size > 2100000) {
|
||||||
|
alert('Sorry Your File is Large To 2MB');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function validate() {
|
function validate() {
|
||||||
var rowcount = $("#txtRowCount").val();
|
var rowcount = $("#txtRowCount").val();
|
||||||
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
||||||
@ -471,19 +422,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
$('#Inwardgateregistertable').DataTable({
|
|
||||||
"paging": false,
|
|
||||||
"lengthChange": false,
|
|
||||||
"searching": false,
|
|
||||||
"ordering": false,
|
|
||||||
"info": false,
|
|
||||||
"autoWidth": false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// $(function() {
|
// $(function() {
|
||||||
function removeHidden() {
|
function removeHidden() {
|
||||||
@ -506,7 +444,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#PONO').change(function() {
|
$('#PONO1').change(function() {
|
||||||
removeHidden();
|
removeHidden();
|
||||||
$("#IGRappend").empty();
|
$("#IGRappend").empty();
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
@ -540,7 +478,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: { id: id },
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>GetIGRLineItemDetails",
|
url: "<?php echo base_url() ?>GetIGRLineItemDetails",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
@ -561,10 +501,10 @@
|
|||||||
'<td name="UOM">' + item.UOM + '</td>' +
|
'<td name="UOM">' + item.UOM + '</td>' +
|
||||||
'<td name="Quantity1' + i + '" id="Quantity_1' + i + '">' + item.Quantity + '</td>' +
|
'<td name="Quantity1' + i + '" id="Quantity_1' + i + '">' + item.Quantity + '</td>' +
|
||||||
'<td name="ReceivedQuantity' + i + '" id="ReceivedQuantity' + i + '">' + item.ReceivedQuantity + '</td>' +
|
'<td name="ReceivedQuantity' + i + '" id="ReceivedQuantity' + i + '">' + item.ReceivedQuantity + '</td>' +
|
||||||
'<td name="PendingQuantity' + i + '" id="PendingQuantity' + i + '">' + ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0 ) + '</td>' +
|
'<td name="PendingQuantity' + i + '" id="PendingQuantity' + i + '">' + ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0) + '</td>' +
|
||||||
'<td data-name="sel" ><input type="text" onchange="validateReceivedQuantity(' + i + ')"id="QuantityAsPerInvoice' + i + '" name="QuantityAsPerInvoice' + i + '" value="" onkeypress="return isNumberKey(event);" autocomplete="off"></td>' +
|
'<td data-name="sel" ><input type="text" onchange="validateReceivedQuantity(' + i + ')"id="QuantityAsPerInvoice' + i + '" name="QuantityAsPerInvoice' + i + '" value="" onkeypress="return isNumberKey(event);" autocomplete="off"></td>' +
|
||||||
'<td><input type="text" id="Remark' + i + '" name="Remark' + i + '" class="form" onchange="SetRemarks(' + i + ')" autocomplete="off"> </td>' +
|
'<td><input type="text" id="Remark' + i + '" name="Remark' + i + '" class="form" onchange="SetRemarks(' + i + ')" autocomplete="off"> </td>' +
|
||||||
'<td><a target="_blank" data-toggle="modal" data-target="#WeightCalculator" title="Weight Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '"><i class="fa fa-solid fa-truck" style="text-align: center;"></i></a> </td>' +
|
'<td><a target="_blank" data-toggle="modal" data-target="#weight-calc-modal" title="Weight Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '"><i class="fa fa-solid fa-truck" style="text-align: center;"></i></a> </td>' +
|
||||||
'</tr>';
|
'</tr>';
|
||||||
$('#txtRowCount').val(i);
|
$('#txtRowCount').val(i);
|
||||||
|
|
||||||
@ -605,7 +545,7 @@
|
|||||||
type: 'hidden',
|
type: 'hidden',
|
||||||
id: 'txtPendingQty' + i,
|
id: 'txtPendingQty' + i,
|
||||||
name: 'txtPendingQty' + i,
|
name: 'txtPendingQty' + i,
|
||||||
value: ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0 )
|
value: ((isOpenOrder === 0 || isNaN(isOpenOrder)) ? item.PendingQty : 0)
|
||||||
}).appendTo('form');
|
}).appendTo('form');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
@ -704,7 +644,7 @@
|
|||||||
var r = $("#Remark" + Rowid).val();
|
var r = $("#Remark" + Rowid).val();
|
||||||
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
||||||
var formatted_IsOpenOrder = (isOpenOrder === 0 || isNaN(isOpenOrder)) ? 0 : 1;
|
var formatted_IsOpenOrder = (isOpenOrder === 0 || isNaN(isOpenOrder)) ? 0 : 1;
|
||||||
if(formatted_IsOpenOrder == 0){
|
if (formatted_IsOpenOrder == 0) {
|
||||||
if ((InvoiceQty + RecQty) > OrderedQty) {
|
if ((InvoiceQty + RecQty) > OrderedQty) {
|
||||||
alert("Invoice Quantity is exceeding the Ordered Quantity.Please Contact Purchase Team for further Process ")
|
alert("Invoice Quantity is exceeding the Ordered Quantity.Please Contact Purchase Team for further Process ")
|
||||||
$("#QuantityAsPerInvoice" + Rowid).focus();
|
$("#QuantityAsPerInvoice" + Rowid).focus();
|
||||||
@ -723,7 +663,8 @@
|
|||||||
$("#txtQuantityAsPerInvoice" + Rowid).val(InvoiceQty);
|
$("#txtQuantityAsPerInvoice" + Rowid).val(InvoiceQty);
|
||||||
// InvoiceQty
|
// InvoiceQty
|
||||||
return true;
|
return true;
|
||||||
}}else{
|
}
|
||||||
|
} else {
|
||||||
console.log(InvoiceQty + RecQty);
|
console.log(InvoiceQty + RecQty);
|
||||||
$('#PendingQuantity' + Rowid).text(0.00);
|
$('#PendingQuantity' + Rowid).text(0.00);
|
||||||
$('#txtPendingQty' + Rowid).val(0.00);
|
$('#txtPendingQty' + Rowid).val(0.00);
|
||||||
@ -734,49 +675,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
|
||||||
function isNumberKey(evt) {
|
|
||||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
|
||||||
if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Save(status) {
|
|
||||||
if (validate()) {
|
|
||||||
$("#IGR").attr("method", "post");
|
|
||||||
$("#IGR").attr("enctype", "multipart/form-data");
|
|
||||||
$("#IGR").attr("action", "SaveIGR");
|
|
||||||
$('#IGR').submit();
|
|
||||||
} //validate if closed
|
|
||||||
} //save function closed
|
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
function filecheck(status) {
|
|
||||||
$('#hideIGRStatus').val(status);
|
|
||||||
Save(status);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Copyfilenames(id) {
|
|
||||||
var size = $('input[name=' + id + ']')[0].files[0].size;
|
|
||||||
if (size > 2100000) {
|
|
||||||
alert('Sorry Your File is Large To 2MB');
|
|
||||||
} else {
|
|
||||||
var name = $('input[name=' + id + ']')[0].files[0].name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script>
|
<script>
|
||||||
function validateTareWeight(element) {
|
function validateTareWeight(element) {
|
||||||
var grossWeight = parseFloat(document.getElementById('GrossWeight').value);
|
var grossWeight = parseFloat($('#GrossWeight').val());
|
||||||
var tareWeight = parseFloat(document.getElementById('TareWeight').value);
|
var tareWeight = parseFloat($('#TareWeight').val());
|
||||||
|
|
||||||
if (tareWeight > grossWeight) {
|
if (tareWeight > grossWeight) {
|
||||||
alert("Tare Weight must be less than or equal to Gross Weight.");
|
alert("Tare Weight must be less than or equal to Gross Weight.");
|
||||||
document.getElementById('TareWeight').value = '';
|
$('#GrossWeight').val('');
|
||||||
document.getElementById('TareWeightDate').value = '';
|
$('#TareWeightDate').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
WeightDiffer(element)
|
WeightDiffer(element)
|
||||||
@ -793,11 +700,12 @@
|
|||||||
const seconds = now.getSeconds().toString().padStart(2, '0');
|
const seconds = now.getSeconds().toString().padStart(2, '0');
|
||||||
const dateString = todaydate + '-' + month + '-' + year;
|
const dateString = todaydate + '-' + month + '-' + year;
|
||||||
const timeString = hours + ":" + minutes + ":" + seconds;
|
const timeString = hours + ":" + minutes + ":" + seconds;
|
||||||
document.getElementById('clock').textContent = dateString + " " + timeString;
|
$('#clock').text(dateString + " " + timeString);
|
||||||
document.getElementById('wizard_clock').textContent = dateString + " " + timeString;
|
$('#wizard_clock').text(dateString + " " + timeString);
|
||||||
}
|
}
|
||||||
setInterval(updateTime, 1000);
|
setInterval(updateTime, 1000);
|
||||||
updateTime();
|
updateTime();
|
||||||
|
|
||||||
function WeightDiffer(element) {
|
function WeightDiffer(element) {
|
||||||
var v1 = $("#GrossWeight").val();
|
var v1 = $("#GrossWeight").val();
|
||||||
var v2 = $("#TareWeight").val();
|
var v2 = $("#TareWeight").val();
|
||||||
@ -814,7 +722,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$("#WeightCalculator").on("shown.bs.modal", function(e) {
|
$("#weight-calc-modal").on("shown.bs.modal", function(e) {
|
||||||
var inx = $(e.relatedTarget).data('index');
|
var inx = $(e.relatedTarget).data('index');
|
||||||
var material = $(e.relatedTarget).data('material');
|
var material = $(e.relatedTarget).data('material');
|
||||||
|
|
||||||
@ -906,7 +814,7 @@
|
|||||||
$("#WeightFile").val('');
|
$("#WeightFile").val('');
|
||||||
|
|
||||||
// Close the modal
|
// Close the modal
|
||||||
$("#WeightCalculator").modal('hide');
|
$("#weight-calc-modal").modal('hide');
|
||||||
} else {
|
} else {
|
||||||
console.log("Saving values for index: " + inx + " undefined");
|
console.log("Saving values for index: " + inx + " undefined");
|
||||||
}
|
}
|
||||||
@ -915,38 +823,48 @@
|
|||||||
<script>
|
<script>
|
||||||
function appendFilesFileds(data) {
|
function appendFilesFileds(data) {
|
||||||
var newRowHtml = `
|
var newRowHtml = `
|
||||||
<div class="col-md-12 pad">
|
<div class="form-row pad">
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="file_name">File name</span>
|
<label class="col-form-label">File name</label>
|
||||||
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
<input type="text" id="file_name" name="file_name[]" maxlength="255" class="form-control" value="${data != null && data != '' ? data.file_name : ''}">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<span for="emp_file">File</span>
|
<label class="col-form-label">File</label>
|
||||||
<input type="file" name="emp_file[]" class="form-control">
|
<input type="file" name="emp_file[]" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4" style="margin-top: 23px;">
|
<div class="form-group col-md-4 p-4">
|
||||||
<button type="button" class="btn btn-danger btn-sm" onclick="removeContact(this)">Remove</button>
|
<button type="button" class="btn btn-danger waves-effect btn-sm" onclick="removeContact(this)">Remove</button>
|
||||||
<button type="button" class="btn btn-primary btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
<button type="button" class="btn btn-primary waves-effect btn-sm a1" onclick="appendFilesFileds()">Add</button>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
$('#filesContainer').append(newRowHtml);
|
$('#filesContainer').append(newRowHtml);
|
||||||
$('.a1').hide();
|
$('.a1').hide();
|
||||||
$('#filesContainer .pad:last .a1').show();
|
$('#filesContainer .pad:last .a1').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeContact(button) {
|
function removeContact(button) {
|
||||||
$(button).closest('.pad').remove();
|
$(button).closest('.pad').remove();
|
||||||
$('#filesContainer .a1').hide();
|
$('#filesContainer .a1').hide();
|
||||||
$('#filesContainer .pad:last .a1').show();
|
$('#filesContainer .pad:last .a1').show();
|
||||||
var len = $('#filesContainer .pad:last .a1')
|
var len = $('#filesContainer .pad:last .a1')
|
||||||
var length = len.length;
|
var length = len.length;
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
$('#day').show()
|
$('#additionalfilebtn').show()
|
||||||
} else {
|
} else {
|
||||||
$('#day').hide()
|
$('#additionalfilebtn').hide()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
</script>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('#Inwardgateregistertable').DataTable({
|
||||||
|
"paging": false,
|
||||||
|
"lengthChange": false,
|
||||||
|
"searching": false,
|
||||||
|
"ordering": false,
|
||||||
|
"info": false,
|
||||||
|
"autoWidth": false
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -1,99 +1,101 @@
|
|||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
<div class="content-wrapper">
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<section class="content">
|
<!-- start page title -->
|
||||||
<div>
|
<div class="row">
|
||||||
<center><h3 id="title">Reports</h3></center>
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<h4><?= "Reports"; ?></h4>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<legend></legend>
|
</div>
|
||||||
<div class="row">
|
<!-- end page title -->
|
||||||
<div class="col-xs-12">
|
<!-- Form row -->
|
||||||
<div class="col-xs-3">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>reportpending" target="_blank" >Reportpending<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Pending</p>
|
||||||
<a href="<?php echo base_url(); ?>releasedpo" target="_blank" > Order Value - Released<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
||||||
<a href="<?php echo base_url(); ?>openOrder" target="_blank" >Open Orders - Pending <p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
||||||
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank" > Total Orders<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text uk-margin-remove">Total Orders</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank" >Purchase<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Purchase</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank" >Year Wise<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank" >Purchase Supplier - Wise<p class="uk-text uk-margin-remove"></p></a>
|
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank" >Consolidate Report<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative" target="_blank" >Cumulative Report<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank" >Purchase Order Pending<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-codepen"> Material Master </span></h4>
|
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_Supplier" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - supplier wise</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_Item" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Item wise</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_ReceiptValue" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Receipt Value</p></a>
|
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase_inward" target="_blank" >Inward Details<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward Details</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase_attach" target="_blank" >Inward Summary<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward Summary</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_year_wise_inward" target="_blank" >Year Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Year Wise-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_supplier_inward" target="_blank" >Inward-Supplier Wise<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Inward-Supplier Wise</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate_inward" target="_blank" >Consolidate Report-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative_inward" target="_blank" >Cumulative Report-Inward<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative_raw" target="_blank" >Cumulative Report - Category Wise-Inward<p class="uk-text uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report - Category Wise-Inward</p>
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate_category" target="_blank" >Consolidate Report - Category Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report - Category Wise-Inward</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Report - DeliveryPerformance</p>
|
||||||
<a href="<?php echo base_url(); ?>DeliveryPerformance" target="_blank" > Report - DeliveryPerformance<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<legend></legend>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-money "> Finance Reports </span></h4>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_costcenter" target="_blank" > Cost Center <p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
|
|
||||||
<a href="<?php echo base_url(); ?>productionsalary" target="_blank" > Production Salary Cost <p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<hr>
|
||||||
<h4><span class="fa fa-inr"> Cashbook </span></h4>
|
<div class="row">
|
||||||
<a href="<?php echo base_url(); ?>cashbookreport" target="_blank" >Cashbook Reports<p class="uk-text uk-margin-remove"></p></a>
|
<div class="col-md-3">
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativereport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p></a>
|
<h4><span class="fa fa-money-bill-alt"> Finance Reports </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativemonthreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p></a>
|
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||||
|
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
||||||
|
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
||||||
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
||||||
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
||||||
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||||
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-money "> GST Reports </span></h4>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_monthly_gst" target="_blank" > Monthly GST Summary Report <p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||||
|
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-newspaper"> Sales Reports </span></h4>
|
||||||
|
<a href="<?php echo base_url(); ?>sales_invoice" target="_blank"><p class="uk-text uk-margin-remove">Invoice Report</p></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<legend></legend>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-credit-card-alt"> PayRoll </span></h4>
|
|
||||||
<p class="uk-text uk-margin-remove" target="_blank" >Employee Payroll</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-credit-card"> PayRoll </span></h4>
|
||||||
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Payroll</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
||||||
<p class="uk-text uk-margin-remove" target="_blank" >Employee Attendance</p>
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Attendance</p>
|
||||||
|
<p class="uk-text uk-margin-remove" target="_blank">Employee Performance</p>
|
||||||
<a href="<?php echo base_url(); ?>Empperform" target="_blank">Employee Performance<p class="uk-text uk-margin-remove"></p></a>
|
<a href="<?php echo base_url(); ?>leavereports" target="_blank"><p class="uk-text uk-margin-remove">Leave Report</p></a>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
<legend></legend>
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</section>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
@ -47,7 +47,7 @@ if (!empty($Emp)) {
|
|||||||
$RequestByOpt[$EID->EmpID] = $EID->Full_Name;
|
$RequestByOpt[$EID->EmpID] = $EID->Full_Name;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('EmpID', $RequestByOpt, set_value('EmpID'), 'id="EmpID" class = "form-control" data-toggle="select2" required="true"');
|
echo form_dropdown('EmpID', $RequestByOpt, set_value('EmpID'), 'id="EmpID" class = "form-control searchabledropdown" data-toggle="select2" required="true"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -59,7 +59,7 @@ if (!empty($Emp)) {
|
|||||||
$options[$RID->ConfigValue] = $RID->ConfigValue;
|
$options[$RID->ConfigValue] = $RID->ConfigValue;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="RequestType" class = "form-control" data-toggle="select2"', 'required="true"');
|
echo form_dropdown('RequestType', $options, set_value('ConfigValue'), 'id="RequestType" class = "form-control searchabledropdown" data-toggle="select2"', 'required="true"');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -92,7 +92,7 @@ if (!empty($Emp)) {
|
|||||||
'CostCenter',
|
'CostCenter',
|
||||||
$Costs,
|
$Costs,
|
||||||
set_value('CostCenter'),
|
set_value('CostCenter'),
|
||||||
'class="form-control" id="CostCenter" data-toggle="select2"'
|
'class="form-control searchabledropdown" id="CostCenter" data-toggle="select2"'
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ if (!empty($Emp)) {
|
|||||||
$SchType[$Sch] = $Sch;
|
$SchType[$Sch] = $Sch;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control"', 'data-toggle="select2"');
|
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="ServicePeriodOption" style="display:none;">
|
<div class="form-group col-md-3" id="ServicePeriodOption" style="display:none;">
|
||||||
@ -117,7 +117,7 @@ if (!empty($Emp)) {
|
|||||||
$ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
|
$ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"', 'data-toggle="select2"');
|
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-3" id="DisplayScheduleDiv" style="display:none;">
|
<div class="form-group col-md-3" id="DisplayScheduleDiv" style="display:none;">
|
||||||
@ -161,7 +161,7 @@ if (!empty($Emp)) {
|
|||||||
<a class="btn btn-primary waves-effect Save" ID="Save" onclick="Save()"> <span class="bold">Save As Draft</span></a>
|
<a class="btn btn-primary waves-effect Save" ID="Save" onclick="Save()"> <span class="bold">Save As Draft</span></a>
|
||||||
<input type="submit" class="btn btn-soft-primary waves-effect waves-light" value="Approved">
|
<input type="submit" class="btn btn-soft-primary waves-effect waves-light" value="Approved">
|
||||||
</div>
|
</div>
|
||||||
<?php echo form_close();?>
|
<?php echo form_close(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -191,7 +191,7 @@ if (!empty($Emp)) {
|
|||||||
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
$options[$MID->MaterialCode] = $MID->MaterialCode . ' ' . ' - ' . ' ' . $MID->MaterialName;
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('MaterialCode', $options, set_value('MaterialCode'), 'id="MaterialCode" class="form-control select2" ');
|
echo form_dropdown('MaterialCode', $options, set_value('MaterialCode'), 'id="MaterialCode" class="form-control searchabledropdown" ');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -350,12 +350,7 @@ if (!empty($Emp)) {
|
|||||||
|
|
||||||
|
|
||||||
//Initialize Select2 Elements
|
//Initialize Select2 Elements
|
||||||
$(".select2").select2();
|
$(".searchabledropdown").select2();
|
||||||
$("#CostCenter").select2();
|
|
||||||
$("#RequestType").select2();
|
|
||||||
$("#MaterialCode").select2();
|
|
||||||
$("#EmpID").select2();
|
|
||||||
$("#ScheduleType").select2();
|
|
||||||
|
|
||||||
$('#CostCenter').change(function() {
|
$('#CostCenter').change(function() {
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user