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
@ -63,17 +63,16 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<!-- Start Content-->
|
<!-- Start Content-->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- start page title -->
|
<!-- start page title -->
|
||||||
<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">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -81,7 +80,7 @@ if (!empty($ReqPOType)) {
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<?php $attributes = array('class' => 'form-label-left requistion ', 'name' => 'requistion', 'id' => 'requistion');
|
<?php $attributes = array('class' => 'form-label-left requistion ', 'name' => 'requistion', 'id' => 'requistion');
|
||||||
echo form_open(base_url() . 'EditRequisition', $attributes);
|
echo form_open(base_url() . 'EditRequisition', $attributes);
|
||||||
?>
|
?>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
@ -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"');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -152,7 +151,7 @@ if (!empty($ReqPOType)) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control"');
|
echo form_dropdown('ScheduleType', $SchType, set_value('ScheduleType'), 'id="ScheduleType"', 'class = "form-control"');
|
||||||
?>
|
?>
|
||||||
</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;">
|
||||||
<label for="ServiceOptions" class="col-form-label">Service Period Option</label>
|
<label for="ServiceOptions" class="col-form-label">Service Period Option</label>
|
||||||
@ -173,7 +172,7 @@ if (!empty($ReqPOType)) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"');
|
echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"');
|
||||||
?>
|
?>
|
||||||
</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;">
|
||||||
<label for="ServiceNo" class="col-form-label">Number of Services</label>
|
<label for="ServiceNo" class="col-form-label">Number of Services</label>
|
||||||
@ -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>
|
||||||
@ -214,21 +213,21 @@ if (!empty($ReqPOType)) {
|
|||||||
$materialdesc = isset($record->MaterialDescription) ? $record->MaterialDescription : "";
|
$materialdesc = isset($record->MaterialDescription) ? $record->MaterialDescription : "";
|
||||||
//echo $materialdesc;
|
//echo $materialdesc;
|
||||||
?>
|
?>
|
||||||
<tr id="<?php echo $index; ?>">
|
<tr id="<?php echo $index; ?>">
|
||||||
<td align="left"><?php echo $index; ?></td>
|
<td align="left"><?php echo $index; ?></td>
|
||||||
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'te' . $index ?>" value="<?php echo $record->MaterialCode; ?>" />
|
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'te' . $index ?>" value="<?php echo $record->MaterialCode; ?>" />
|
||||||
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'tes' . $index ?>" value="<?php echo $record->Quantity; ?>" />
|
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'tes' . $index ?>" value="<?php echo $record->Quantity; ?>" />
|
||||||
<td align="left"><?php echo $record->MaterialCode; ?></td>
|
<td align="left"><?php echo $record->MaterialCode; ?></td>
|
||||||
<td align="left"><?php echo $record->MaterialName; ?></td>
|
<td align="left"><?php echo $record->MaterialName; ?></td>
|
||||||
<td align="left"><?php echo $record->UOM; ?></td>
|
<td align="left"><?php echo $record->UOM; ?></td>
|
||||||
<td align="left"><?php echo $record->Quantity; ?></td>
|
<td align="left"><?php echo $record->Quantity; ?></td>
|
||||||
<td align="left"><?php echo $record->POQTY; ?></td>
|
<td align="left"><?php echo $record->POQTY; ?></td>
|
||||||
<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);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -384,8 +383,8 @@ if (!empty($ReqPOType)) {
|
|||||||
<label for="EditUOM"
|
<label for="EditUOM"
|
||||||
class="control-label">UOM</label>
|
class="control-label">UOM</label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditUOM', 'value' => set_value('EditUOM'), 'id' => 'EditUOM', 'class' => 'form-control', 'readonly' => 'true');
|
$data = array('name' => 'EditUOM', 'value' => set_value('EditUOM'), 'id' => 'EditUOM', 'class' => 'form-control', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -394,8 +393,8 @@ 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>
|
||||||
</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) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -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>
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<h4><?= "Reports"; ?></h4>
|
||||||
<legend></legend>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12">
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<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>
|
|
||||||
<a href="<?php echo base_url(); ?>releasedpo" target="_blank" > Order Value - Released<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>openOrder" target="_blank" >Open Orders - Pending <p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank" > Total Orders<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<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>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank" >Year Wise<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
<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_consolidate" target="_blank" >Consolidate Report<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative" target="_blank" >Cumulative Report<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank" >Purchase Order Pending<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-codepen"> 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>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_Item" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Item wise</p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_Material_ReceiptValue" target="_blank" ><p class="uk-text uk-margin-remove">Material Master - Receipt Value</p></a>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<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>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase_attach" target="_blank" >Inward Summary<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<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>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_supplier_inward" target="_blank" >Inward-Supplier Wise<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_consolidate_inward" target="_blank" >Consolidate Report-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>Report_cumulative_inward" target="_blank" >Cumulative Report-Inward<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<a href="<?php echo base_url(); ?>DeliveryPerformance" target="_blank" > Report - DeliveryPerformance<p class="uk-text-meta uk-margin-remove"></p></a>
|
|
||||||
</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">
|
|
||||||
<h4><span class="fa fa-inr"> Cashbook </span></h4>
|
|
||||||
<a href="<?php echo base_url(); ?>cashbookreport" target="_blank" >Cashbook Reports<p class="uk-text uk-margin-remove"></p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativereport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p></a>
|
|
||||||
<a href="<?php echo base_url(); ?>cashbookcumulativemonthreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</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>-->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<!-- end page title -->
|
||||||
<h4><span class="fa fa-money "> GST Reports </span></h4>
|
<!-- Form row -->
|
||||||
<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 class="row">
|
||||||
</div>
|
<div class="col-12">
|
||||||
</div>
|
<div class="card">
|
||||||
</div>
|
<div class="card-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||||
|
<p class="uk-text uk-margin-remove">Pending</p>
|
||||||
|
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
||||||
|
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
||||||
|
<p class="uk-text uk-margin-remove">Total Orders</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Purchase</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
||||||
|
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
||||||
|
|
||||||
<legend></legend>
|
</div>
|
||||||
<div class="row">
|
<div class="col-md-3">
|
||||||
<div class="col-xs-12">
|
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||||
<div class="col-xs-3">
|
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||||
<h4><span class="fa fa-credit-card-alt"> PayRoll </span></h4>
|
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||||
<p class="uk-text uk-margin-remove" target="_blank" >Employee Payroll</p>
|
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
|
||||||
<p class="uk-text uk-margin-remove" target="_blank" >Employee Attendance</p>
|
|
||||||
|
|
||||||
<a href="<?php echo base_url(); ?>Empperform" target="_blank">Employee Performance<p class="uk-text uk-margin-remove"></p></a>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Inward Details</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Inward Summary</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Year Wise-Inward</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Inward-Supplier Wise</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Consolidate Report-Inward</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report-Inward</p>
|
||||||
|
<p class="uk-text-meta uk-margin-remove">Cumulative Report - Category Wise-Inward</p>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<h4><span class="fa fa-money-bill-alt"> Finance Reports </span></h4>
|
||||||
|
<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(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
||||||
|
</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 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>
|
||||||
|
<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>
|
||||||
|
<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(); ?>leavereports" target="_blank"><p class="uk-text uk-margin-remove">Leave Report</p></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<legend></legend>
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
@ -17,16 +17,16 @@ if (!empty($Emp)) {
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<!-- Start Content-->
|
<!-- Start Content-->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- start page title -->
|
<!-- start page title -->
|
||||||
<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><?= "Add Requisition"; ?></h4>
|
<h4><?= "Add Requisition"; ?></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>
|
||||||
<!-- end page title -->
|
<!-- end page title -->
|
||||||
<!-- Form row -->
|
<!-- Form row -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -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;">
|
||||||
@ -151,17 +151,17 @@ if (!empty($Emp)) {
|
|||||||
</div> <!-- end table-responsive-->
|
</div> <!-- end table-responsive-->
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||||
<!-- Available Budget Amt -->
|
<!-- Available Budget Amt -->
|
||||||
<input type="hidden" name="AvlBudgetAmount" id="AvlBudgetAmount" />
|
<input type="hidden" name="AvlBudgetAmount" id="AvlBudgetAmount" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row float-right">
|
<div class="form-row float-right">
|
||||||
<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 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