FIX_Btn Color 2
This commit is contained in:
parent
620446fffe
commit
ae4a7a4dab
@ -36,6 +36,7 @@ $ServiceTypeOptions = '';
|
||||
$DescriptionOfPo = '';
|
||||
$BudgetType = '';
|
||||
$PrePOFile = '';
|
||||
$parentPO= '';
|
||||
|
||||
|
||||
if (!empty($INRSYMBOL)) {
|
||||
@ -53,6 +54,7 @@ if (!empty($MaxPODate)) {
|
||||
if (!empty($POMaster)) {
|
||||
|
||||
foreach ($POMaster as $Req) {
|
||||
$parentPO =$Req->ParentPO;
|
||||
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
@ -728,9 +730,11 @@ if (!empty($getlogpodtl)) {
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<center><b>
|
||||
<h2>Edit Service Purchase Order - <?php echo $PONO; ?></h2>
|
||||
</b></center>
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<center><b><h2> Edit Service Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Service Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -1706,8 +1710,8 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font EditService" ID="Edit"> <span class="bold">Update Service</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1998,7 +2002,7 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -2405,11 +2409,11 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12 text-right">
|
||||
<div class="col-md-4 col-md-offset-8">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" onclick="splpoupdate()"> <span class="bold">Update</span>
|
||||
|
||||
<!-- <input id="tag-form-submit" type="submit" class="btn btn-success bold" value="Update"> --></a>
|
||||
<!-- <a class="btn btn-success ok" ID="ExciseOption12" onclick="splpoupdate()" ><span class="bold">Update</span></a> -->
|
||||
<a class="btn btn-success" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal footer -->
|
||||
@ -2448,7 +2452,7 @@ if (!empty($getlogpodtl)) {
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save</span></a>
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(4)"> <span class="bold">Approve and Release</span></a>
|
||||
<a class="btn btn-approved Save" ID="Save" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(3)"> <span class="bold">Submit</span></a>
|
||||
|
||||
@ -2549,7 +2549,7 @@ function vaildateBeforeOpenModal()
|
||||
|
||||
<a class="btn btn-reset Save" ID="Cancel" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-approve Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Approve</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
@ -1,510 +1,425 @@
|
||||
<?php $defaultDate =''; ?>
|
||||
<script>
|
||||
<?php $defaultDate = ''; ?>
|
||||
<style>
|
||||
.modal-dialog-centered {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.modal-content-custom-width {
|
||||
width: 75%; /* Adjust the width as needed */
|
||||
}
|
||||
|
||||
</script>
|
||||
<style>
|
||||
#ImportPOCheck {
|
||||
margin-top:200px;
|
||||
z-index: 1080 !important;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
margin-top: -5%;
|
||||
}
|
||||
|
||||
.modal
|
||||
{
|
||||
padding-right:30% ! important;
|
||||
}
|
||||
|
||||
.dataTables_paginate
|
||||
{
|
||||
margin-top: -5%;
|
||||
}
|
||||
.dataTables_wrapper
|
||||
{
|
||||
.dataTables_wrapper {
|
||||
padding-bottom: 0px;
|
||||
margin-top: -3%;
|
||||
}
|
||||
.content-wrapper
|
||||
{
|
||||
min-height: 733px;
|
||||
}
|
||||
#REQLIST_filter{
|
||||
float: inline-end;
|
||||
}
|
||||
#REQLIST_wrapper .row .col-sm-4{
|
||||
flex-basis: 50%;
|
||||
float: inline-end;
|
||||
}
|
||||
#REQLIST_paginate{
|
||||
flex-basis: 50%;
|
||||
float: inline-end;
|
||||
}
|
||||
|
||||
|
||||
.content-wrapper {
|
||||
min-height: 733px;
|
||||
}
|
||||
|
||||
#REQLIST_filter {
|
||||
float: inline-end;
|
||||
}
|
||||
|
||||
#REQLIST_wrapper .row .col-sm-4 {
|
||||
flex-basis: 50%;
|
||||
float: inline-end;
|
||||
}
|
||||
|
||||
#REQLIST_paginate {
|
||||
flex-basis: 50%;
|
||||
float: inline-end;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left CreatePO ','name' => 'CreatePO','id' => 'CreatePO','method' => 'post','role' => 'form' );
|
||||
|
||||
echo form_open(base_url().'purchaseOrder',$attributes); ?>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="box">
|
||||
|
||||
<div class="box-header">
|
||||
<center><h3 class="box-title"> Create Purchase Order from Requistion</h3></center>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div id="content"></div>
|
||||
<div class="row">
|
||||
<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 } ?>
|
||||
<?php $attributes = array('class' => 'form-label-left CreatePO ', 'name' => 'CreatePO', 'id' => 'CreatePO', 'method' => 'post', 'role' => 'form');
|
||||
echo form_open(base_url() . 'purchaseOrder', $attributes); ?>
|
||||
|
||||
<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>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if($listErrors)
|
||||
{
|
||||
?>
|
||||
<section class="content">
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<center>
|
||||
<h3 class="box-title"> Create Purchase Order from Requistion</h3>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div id="content"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
<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>
|
||||
<?php } ?>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 col-md-offset-9" >
|
||||
<p>
|
||||
<div align="right" style="padding-right:0px">
|
||||
<!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder">
|
||||
<button type="button" class="btn btn-success">Create PO</button></a> -->
|
||||
<!--<input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
|
||||
<a class="btn btn-success" onclick="Validate();" >Create Purchase Order</a>
|
||||
<input type="hidden" name="txtReqNo" id="txtReqNo" />
|
||||
<input type="hidden" name="txtReqType" id="txtReqType" />
|
||||
</div></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
|
||||
<div class="modal fade" id="myModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width: 948px;">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center><h4> Requisition Details - <label id="SelReqNo" name="SelReqNo"></label> </h4></center>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if ($listErrors) {
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 col-md-offset-9">
|
||||
<p>
|
||||
<div align="right" style="padding-right:0px">
|
||||
<!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder"> -->
|
||||
<!--<button type="button" class="btn btn-success">Create PO</button></a> -->
|
||||
<!--<input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
|
||||
<a class="btn btn-success" onclick="Validate();">Create Purchase Order</a>
|
||||
<input type="hidden" name="txtReqNo" id="txtReqNo" />
|
||||
<input type="hidden" name="txtReqType" id="txtReqType" />
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div align="left">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<label>Request Type</label>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="modal fade" id="RequisitionDtlsModal" role="dialog">
|
||||
<div class="modal-dialog" style="vertical-align: middle;width: fit-content">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:800px">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center>
|
||||
<h4> Requisition Details - <label id="SelReqNo" name="SelReqNo"></label> </h4>
|
||||
</center>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Request Type</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ReqType','value' => set_value('ReqType'),'id'=>'ReqType', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
$data = array('name' => 'ReqType', 'value' => set_value('ReqType'), 'id' => 'ReqType', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Requested By</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ReqBy', 'value' => set_value('ReqBy'), 'id' => 'ReqBy', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Designation</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Desigination', 'value' => set_value('Desigination'), 'id' => 'Desigination', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Requested Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RequistionDate', 'value' => set_value('RequistionDate'), 'id' => 'RequistionDate', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Cost Center Code</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'CostCenter', 'value' => set_value('CostCenter'), 'id' => 'CostCenter', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Avl Budget Amt</label> <img id="AlertImg" src="<?php echo base_url(); ?>public/assets/dist/img/red.png" alt="your image" width="25px" style="display:none" />
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'AvlBudgetAmount', 'value' => set_value('AvlBudgetAmount'), 'id' => 'AvlBudgetAmount', 'class' => 'form-control', 'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table class="table table-bordered editableTable" style="border:1px solid #fff">
|
||||
<thead style="background-color: #ddd !important;">
|
||||
<tr>
|
||||
<th style="white-space: nowrap;">SNo</th>
|
||||
<th style="white-space: nowrap;">Item Code</th>
|
||||
<th style="white-space: nowrap;">Item Description</th>
|
||||
<th style="white-space: nowrap;">UOM</th>
|
||||
<th style="white-space: nowrap;">Requested Quantity</th>
|
||||
<th style="white-space: nowrap;">Ordered Quantity</th>
|
||||
<th style="white-space: nowrap;">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleAppend"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>Requested By</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'ReqBy','value' => set_value('ReqBy'),'id'=>'ReqBy', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Designation</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Desigination','value' => set_value('Desigination'),'id'=>'Desigination', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
<label>Requested Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'RequistionDate','value' => set_value('RequistionDate'),'id'=>'RequistionDate', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Ok</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label>Cost Center Code</label>
|
||||
<div class="form-group">
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'CostCenter','value' => set_value('CostCenter'),'id'=>'CostCenter', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label>Avl Budget Amt</label> <img id="AlertImg" src="<?php echo base_url(); ?>public/assets/dist/img/red.png" alt="your image" width="25px" style="display:none"/>
|
||||
<div class="form-group">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table id="REQLIST" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<div align="right" style="padding-right:10px">
|
||||
<div class="modal fade" role="dialog">
|
||||
<thead style="background-color: #ddd !important;">
|
||||
<tr>
|
||||
<th>Select</th>
|
||||
<th>Requested Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requistion Type </th>
|
||||
<th>Requested By</th>
|
||||
<th>Tot. No. Of Line Items</th>
|
||||
<th>Po Created Line Items</th>
|
||||
<th>Partial PO Created Line Items</th>
|
||||
<th>New Line Items</th>
|
||||
<th>Status</th>
|
||||
<th>Department</th>
|
||||
<th>Designation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="AppendReqList">
|
||||
<?php
|
||||
if (!empty($ReqList)) { //alert($ReqList);
|
||||
$index = 1;
|
||||
foreach ($ReqList as $record) {
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td><input type="checkbox" name="chk<?php echo $index; ?>" id="chk<?php echo $index; ?>" onclick="selectReqNo(<?php echo $index; ?>)" /> </td>
|
||||
<td align="right">
|
||||
<?php
|
||||
$data = array('name' => 'AvlBudgetAmount','value' => set_value('AvlBudgetAmount'),'id'=>'AvlBudgetAmount', 'class' => 'form-control' ,'readonly' => 'true');
|
||||
echo form_input($data);
|
||||
?>
|
||||
$dt = new DateTime($record->ReqDate);
|
||||
$RequestedDate = $dt->format('d-m-Y');
|
||||
echo $RequestedDate;
|
||||
?>
|
||||
</td>
|
||||
<td><a data-toggle="modal" data-target="#RequisitionDtlsModal" data-id="<%=index%>" data-userid="<?php echo $record->ReqNo ?>"><u><?php echo $record->ReqNo; ?> </u></a></td>
|
||||
<td><?php echo $record->ReqType; ?></td>
|
||||
<td><?php echo $record->FirstName; ?></td>
|
||||
<td align="right"><?php echo $record->TotalNoofLineItems; ?></td>
|
||||
<td align="right"><?php echo $record->PolineItems; ?></td>
|
||||
<td align="right"><?php echo $record->PartilallyLineItems; ?></td>
|
||||
<td align="right"><?php echo $record->newLineItem; ?></td>
|
||||
<td><?php echo $record->StatusName; ?></td>
|
||||
<td><?php echo $record->DepartmentName; ?></td>
|
||||
<td><?php echo $record->Designation; ?></td>
|
||||
</tr>
|
||||
<?php $index = $index + 1;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div align="right">
|
||||
<!-- <input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="ImportPOCheck" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content modal-content-custom-width">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Do You want to create Import PO for this Requistion?</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optImport" value="0" id="optImport">YES</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered editableTable" style="border:1px solid #fff"> <!-- #333" -->
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<div class="modal fade" role="dialog">
|
||||
<thead style="background-color: #ddd !important;"> <!-- #fff -->
|
||||
<tr>
|
||||
|
||||
<th>SNo</th>
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>UOM</th>
|
||||
<th>Requested Quantity</th>
|
||||
<th>Ordered Quantity</th>
|
||||
|
||||
<th>Status</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleAppend">
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optImport" value="1" id="optImport" checked="checked">NO</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!--<a class="btn btn-success" ID="Import" onclick="SetImportPO();" style="margin-top: -24px;">-->
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<input type="submit" class="btn btn-success" onclick="SetImportPO();" value="OK" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer"> <div class="col-md-12">
|
||||
|
||||
<a class="btn btn-info" data-dismiss="modal" value="Cancel">Ok</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table id="REQLIST" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<div class="modal fade" role="dialog">
|
||||
|
||||
<thead style="background-color: #ddd !important;">
|
||||
<tr>
|
||||
<th>Select</th>
|
||||
<th>Requested Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requistion Type </th>
|
||||
<th>Requested By</th>
|
||||
<th>Tot. No. Of Line Items</th>
|
||||
<th>Po Created Line Items</th>
|
||||
<th>Partial PO Created Line Items</th>
|
||||
<th>New Line Items</th>
|
||||
<th>Status</th>
|
||||
<th>Department</th>
|
||||
<th>Designation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="AppendReqList">
|
||||
<?php
|
||||
if(!empty($ReqList))
|
||||
{ //alert($ReqList);
|
||||
$index = 1;
|
||||
foreach($ReqList as $record)
|
||||
{
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td><input type="checkbox" name="chk<?php echo $index; ?>" id="chk<?php echo $index; ?>" onclick="selectReqNo(<?php echo $index; ?>)" /> </td>
|
||||
<td align="right">
|
||||
<?php
|
||||
$dt = new DateTime($record->ReqDate);
|
||||
$RequestedDate = $dt->format('d-m-Y');
|
||||
echo $RequestedDate;
|
||||
?>
|
||||
</td>
|
||||
<td><a data-toggle="modal" data-target="#myModal" data-id="<%=index%>" data-userid="<?php echo $record->ReqNo ?>"><u><?php echo $record->ReqNo; ?> </u></a></td>
|
||||
<td><?php echo $record->ReqType; ?></td>
|
||||
<td><?php echo $record->FirstName; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->TotalNoofLineItems; ?></td>
|
||||
<td align="right"><?php echo $record->PolineItems; ?></td>
|
||||
<td align="right"><?php echo $record->PartilallyLineItems; ?></td>
|
||||
<td align="right"><?php echo $record->newLineItem; ?></td>
|
||||
<td><?php echo $record->StatusName; ?></td>
|
||||
<td><?php echo $record->DepartmentName; ?></td>
|
||||
<td><?php echo $record->Designation; ?></td>
|
||||
</tr>
|
||||
<?php $index = $index + 1;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<div align="right" >
|
||||
|
||||
<!-- <input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="ImportPOCheck" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Do You want to create Import PO for this Requistion?</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optImport" checked="checked" value="0" id="optImport">YES</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optImport" value="1" id="optImport">NO</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!--<a class="btn btn-success" ID="Import" onclick="SetImportPO();" style="margin-top: -24px;">-->
|
||||
<input type="submit" class="btn btn-success" onclick="SetImportPO();" value="OK" style="margin-top: -24px;"/>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
var POType = '';
|
||||
function SetImportPO()
|
||||
{
|
||||
POType = $("input:radio[name='optImport']:checked").val();
|
||||
|
||||
$('#ImportPOCheck').modal('hide');
|
||||
if(POType == 0)
|
||||
{
|
||||
$('#txtReqType').val('IMPORT');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#txtReqType').val('');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
$('#ReqDate').val('');
|
||||
var Fromdt = '';
|
||||
var Todt = '';
|
||||
var baseurl = "<?php print base_url(); ?>";
|
||||
|
||||
//Date range picker
|
||||
$('#ReqDate').daterangepicker({
|
||||
locale: {
|
||||
format: 'YYYY/MM/DD'
|
||||
}
|
||||
});
|
||||
|
||||
var coll = [];
|
||||
var RequistionList = {
|
||||
Req: []
|
||||
};
|
||||
|
||||
var Type ='';
|
||||
var i=0;
|
||||
|
||||
|
||||
function selectReqNo(rowId)
|
||||
{
|
||||
|
||||
ckb = $('#chk'+rowId).is(':checked');
|
||||
var tr = document.getElementById(rowId);
|
||||
var cellval = tr.cells;
|
||||
//coo/kie_value_add = {};
|
||||
if(!ckb )
|
||||
{
|
||||
|
||||
var removeItem = cellval[2].innerText;
|
||||
|
||||
|
||||
$.each(RequistionList.Req, function(i, el){
|
||||
|
||||
if (this.ReqNo == removeItem){//Type = '';
|
||||
RequistionList.Req.splice(i, 1);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
var POType = '';
|
||||
function SetImportPO() {
|
||||
POType = $("input:radio[name='optImport']:checked").val();
|
||||
$('#ImportPOCheck').modal('hide');
|
||||
$('#txtReqType').val(POType == 0 ? 'IMPORT' : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$('#ReqDate').val('');
|
||||
var Fromdt = '';
|
||||
var Todt = '';
|
||||
var baseurl = "<?php print base_url(); ?>";
|
||||
|
||||
//Date range picker
|
||||
$('#ReqDate').daterangepicker({
|
||||
locale: {
|
||||
format: 'YYYY/MM/DD'
|
||||
}
|
||||
});
|
||||
|
||||
var coll = [];
|
||||
var RequistionList = {
|
||||
Req: []
|
||||
};
|
||||
|
||||
var Type = '';
|
||||
var i = 0;
|
||||
|
||||
|
||||
function selectReqNo(rowId) {
|
||||
ckb = $('#chk' + rowId).is(':checked');
|
||||
var tr = document.getElementById(rowId);
|
||||
var cellval = tr.cells;
|
||||
//alert(RequistionList.Req.length);
|
||||
if(RequistionList.Req.length > 0)
|
||||
{
|
||||
|
||||
if(Type == cellval[3].innerText )
|
||||
{
|
||||
|
||||
RequistionList.Req.push({
|
||||
"ReqNo" : cellval[2].innerText,
|
||||
"ReqType" : cellval[3].innerText,
|
||||
"ReqBy" : cellval[4].innerText,
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
alert('Same type of Requistion only can be together.')
|
||||
$('#chk'+rowId).attr('checked', false);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
RequistionList.Req.push({
|
||||
"ReqNo" : cellval[2].innerText,
|
||||
"ReqType" : cellval[3].innerText,
|
||||
"ReqBy" : cellval[4].innerText,
|
||||
});
|
||||
Type =cellval[3].innerText;
|
||||
|
||||
}
|
||||
|
||||
i= i +1;
|
||||
}
|
||||
|
||||
$('#txtReqNo').val(JSON.stringify(RequistionList));
|
||||
//coo/kie_value_add = {};
|
||||
if (!ckb) {
|
||||
var removeItem = cellval[2].innerText;
|
||||
$.each(RequistionList.Req, function(i, el) {
|
||||
if (this.ReqNo == removeItem) { //Type = '';
|
||||
RequistionList.Req.splice(i, 1);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
var tr = document.getElementById(rowId);
|
||||
var cellval = tr.cells;
|
||||
//alert(RequistionList.Req.length);
|
||||
if (RequistionList.Req.length > 0) {
|
||||
|
||||
}
|
||||
$("#myModal").on("shown.bs.modal", function(e) {
|
||||
var ReqId = $(e.relatedTarget).data('userid');
|
||||
$('#SelReqNo').html(ReqId);
|
||||
//alert(ReqId);
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data:{id:ReqId},
|
||||
type:"POST",
|
||||
if (Type == cellval[3].innerText) {
|
||||
RequistionList.Req.push({
|
||||
"ReqNo": cellval[2].innerText,
|
||||
"ReqType": cellval[3].innerText,
|
||||
"ReqBy": cellval[4].innerText,
|
||||
});
|
||||
} else {
|
||||
alert('Same type of Requistion only can be together.')
|
||||
$('#chk' + rowId).attr('checked', false);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
RequistionList.Req.push({
|
||||
"ReqNo": cellval[2].innerText,
|
||||
"ReqType": cellval[3].innerText,
|
||||
"ReqBy": cellval[4].innerText,
|
||||
});
|
||||
Type = cellval[3].innerText;
|
||||
|
||||
}
|
||||
i = i + 1;
|
||||
}
|
||||
$('#txtReqNo').val(JSON.stringify(RequistionList));
|
||||
}
|
||||
|
||||
$("#RequisitionDtlsModal").on("shown.bs.modal", function(e) {
|
||||
var ReqId = $(e.relatedTarget).data('userid');
|
||||
$('#SelReqNo').html(ReqId);
|
||||
$('#content').loader('show');
|
||||
$.ajax({
|
||||
data: { id: ReqId },
|
||||
type: "POST",
|
||||
dataType: 'json',
|
||||
url:"<?php echo base_url() ?>requisitionform/ViewRequest",
|
||||
success:function(json) {
|
||||
url: "<?php echo base_url() ?>requisitionform/ViewRequest",
|
||||
success: function(json) {
|
||||
$('#content').loader('hide');
|
||||
var getAvalAmt = json.AvilBudAmount;
|
||||
getAvalAmt = getAvalAmt.replace(/\,/g,'');
|
||||
$("#ReqType").val(json.Requist[0]['ReqType']);
|
||||
getAvalAmt = getAvalAmt.replace(/\,/g, '');
|
||||
$("#ReqType").val(json.Requist[0]['ReqType']);
|
||||
$("#ReqBy").val(json.Requist[0]['FirstName']);
|
||||
$("#RequistionDate").val(json.Requist[0]['ReqDate']);
|
||||
$("#Desigination").val(json.Requist[0]['Designation']);
|
||||
$("#RequistionDate").val(json.Requist[0]['ReqDate']);
|
||||
$("#Desigination").val(json.Requist[0]['Designation']);
|
||||
$("#CostCenter").val(json.Requist[0]['CostCenterCode']);
|
||||
$("#AvlBudgetAmount").val(parseFloat(getAvalAmt).toFixed(2));
|
||||
|
||||
$("#AvlBudgetAmount").val(parseFloat(getAvalAmt).toFixed(2));
|
||||
$("#tbleAppend").empty();
|
||||
$("#tbleAppend").append(json.Items);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function Validate()
|
||||
{
|
||||
var ReqNo = $('#txtReqNo').val();
|
||||
if(ReqNo.length <=0 )
|
||||
{
|
||||
alert('Please select the Requisition Number to Create Purchase Order' );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$('#ImportPOCheck').modal('show');
|
||||
$("#tbleAppend").append(json.Items);
|
||||
}
|
||||
}
|
||||
$(function () {
|
||||
//$("#revenueTax").DataTable();
|
||||
$('#REQLIST').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"columnDefs" : [{"targets":1, "type":"date-eu"}],
|
||||
"aaSorting": [[ 2, "desc" ]],
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true,
|
||||
"pageLength": 10,
|
||||
"lengthMenu": [10, 25, 50, 100]
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function Validate() {
|
||||
var ReqNo = $('#txtReqNo').val();
|
||||
if (ReqNo.length <= 0) {
|
||||
alert('Please select the Requisition Number to Create Purchase Order');
|
||||
return false;
|
||||
} else {
|
||||
$('#ImportPOCheck').modal('show');
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('#REQLIST').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"columnDefs": [{
|
||||
"targets": 1,
|
||||
"type": "date-eu"
|
||||
}],
|
||||
"aaSorting": [
|
||||
[2, "desc"]
|
||||
],
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true,
|
||||
"pageLength": 10,
|
||||
"lengthMenu": [10, 25, 50, 100]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php $parentPO= '';
|
||||
$AvlCapitalBudAmt = isset($AvlCapitalBudAmt) ? (int)$AvlCapitalBudAmt : 0;
|
||||
$insuranceStatus = array(
|
||||
array("name"=>"NO","value"=>"0"),array("name"=>"YES","value"=>"1")
|
||||
@ -119,7 +119,8 @@ if(!empty($POMaster))
|
||||
foreach ($POMaster as $Req)
|
||||
{
|
||||
|
||||
|
||||
$parentPO =$Req->ParentPO;
|
||||
|
||||
$SupId = $Req->SupplierID;
|
||||
|
||||
$SupName = $Req->SupplierName;
|
||||
@ -473,9 +474,11 @@ $("#PaymentMethod").select2();
|
||||
|
||||
<div style="border:2px solid #333">
|
||||
<div class="col-md-12">
|
||||
|
||||
<center><b><h2> Edit Capital Purchase Order- <?php echo $PONO;?></h2></b></center>
|
||||
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<center><b><h2> Edit Capital Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Capital Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } ?>
|
||||
<!-- <div class="col-md-1"><br/>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>purchaseorder/CreatecapitalPOPrint" target="_blank">Print</a>
|
||||
</div> -->
|
||||
@ -3900,7 +3903,7 @@ $("#PaymentMethod").select2();
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)" > <span class="bold">Save as Draft</span></a>
|
||||
<?php }?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-approve Save" ID="Submit" onclick="Save(4)" > <span class="bold">Approve</span></a>
|
||||
<a class="btn btn-approved Save" ID="Submit" onclick="Save(4)" > <span class="bold">Approve</span></a>
|
||||
<?php } else {
|
||||
if($DEPCode== FINANCE){?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
|
||||
@ -1425,11 +1425,9 @@ echo form_textarea($data);
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font EditImport" ID="EditImport" > <span class="bold">Edit Import</span></a>
|
||||
<!--<a class="btn btn-success font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
||||
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -1924,9 +1922,9 @@ echo form_textarea($data);
|
||||
|
||||
<?php //if($PONOStatus == PO_DRAFT) {?>
|
||||
<!-- <a class="btn btn-success Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a> -->
|
||||
<a class="btn btn-cancel Save" ID="Cancel" href="<?php echo base_url().'amendmentpurchaseorder'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||
<!-- <input type="reset" class="btn btn-success" value="Reset"> -->
|
||||
<a class="btn btn-success Save" ID="Cancel" href="<?php echo base_url().'amendmentpurchaseorder'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<?php //}else {?>
|
||||
<!-- <input type="reset" class="btn btn-success" value = "OK"> <?php //} ?>-->
|
||||
<br/>
|
||||
@ -1937,8 +1935,8 @@ echo form_textarea($data);
|
||||
|
||||
<label>Request On :</label><?php echo $Reqon;?><br/>
|
||||
<label>Request By :</label><?php echo $RequesterName;?><br/>
|
||||
<label>Status :</label><?php echo $StatusName;?>
|
||||
<!-- <label>Status : </label><?php
|
||||
<!--<label>Status :</label><?php echo $StatusName;?>-->
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
@ -1955,7 +1953,7 @@ echo form_textarea($data);
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?> -->
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -14,6 +14,7 @@ $otherref = '';
|
||||
$revenuesubtype = '';
|
||||
$insurencestatus = '';
|
||||
$insurenceno = '';
|
||||
$parentPO= '';
|
||||
if (!empty($MaxPODate)) {
|
||||
foreach ($MaxPODate as $date) {
|
||||
$MaxPoDate = $date->PODate;
|
||||
@ -65,6 +66,7 @@ if (!empty($POMaster)) {
|
||||
//print_r($POMaster);
|
||||
//print_r($POItem);
|
||||
foreach ($POMaster as $Req) {
|
||||
$parentPO =$Req->ParentPO;
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
@ -1846,9 +1848,11 @@ if (!empty($getlogpodtl)) {
|
||||
<div style="border:2px solid #333">
|
||||
<div id="content"></div>
|
||||
<div>
|
||||
<center><b>
|
||||
<h2>Edit Revenue Purchase Order - <?php echo $PONO; ?></h2>
|
||||
</b></center>
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<center><b><h2> Edit Revenue Purchase Order - <?php echo $PONO; ?></h2></b></center>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Revenue Purchase Order - <?php echo $PONO; ?></h2></b></center>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -2162,9 +2166,8 @@ if (!empty($getlogpodtl)) {
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2690,7 +2693,8 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<a class="btn btn-success font AddRevenue" ID="AddRevenue"> <span class="bold">Add Revenue</span></a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font AddRevenue" ID="AddRevenue"> <span class="bold">Add Revenue</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -3059,7 +3063,8 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a>
|
||||
|
||||
</div>
|
||||
|
||||
@ -3964,13 +3969,13 @@ if (!empty($getlogpodtl)) {
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
<input type="hidden" name="txttaxcheck" id="txttaxcheck" value="" />
|
||||
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
|
||||
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED) {
|
||||
if ($PONOStatus == PO_DRAFT) { ?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save</span></a>
|
||||
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
|
||||
<a class="btn btn-cancel Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<?php if ($PONOStatus == PO_DRAFT) { ?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(4)"> <span class="bold">Approve and Release </span></a>
|
||||
<a class="btn btn-success Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-approved Save" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success" ID="Viewsave" onclick="Save(2)"> <span class="bold">Submit</span></a>
|
||||
<?php } else { ?>
|
||||
|
||||
@ -363,10 +363,10 @@ if (!empty($supplier)) {
|
||||
<input type="text" id="accno" maxlength="20" name="accno" value="<?php echo $accno; ?>" class="form-control" onkeypress="return isNumberKey(event)" required>
|
||||
</div>
|
||||
<div class="col-md-3"><span>IFSC Code</span><span class="badge">*</span>
|
||||
<input type="text" id="ifsc" name="ifsc" value="<?php echo $IFSCCode; ?>" class="form-control" maxlength="12" onkeypress="return alphaNumberic(event);" style="text-transform: uppercase" required>
|
||||
<input type="text" id="ifsc" name="ifsc" value="<?php echo $IFSCCode; ?>" class="form-control" maxlength="12" style="text-transform: uppercase" required>
|
||||
</div>
|
||||
<div class="col-md-3"><span>Bank Branch Name</span>
|
||||
<input type="text" id="branchname" name="branchname" value="<?php echo $branchname; ?>" class="form-control" maxlength="200" onkeypress="return alphaNumberic(event);">
|
||||
<input type="text" id="branchname" name="branchname" value="<?php echo $branchname; ?>" class="form-control" maxlength="200">
|
||||
</div>
|
||||
<div class="col-md-3"><span>Bank Address</span>
|
||||
<input type="text" id="bankaddress" name="bankaddress" value="<?php echo $bankaddress; ?>" class="form-control" maxlength="200">
|
||||
|
||||
@ -378,7 +378,7 @@ else
|
||||
<center><b><h2> Edit Import Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } else {?>
|
||||
<center><b><h2> Amended Import Purchase Order-<?php echo "$PONO"?></h2></b></center>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!--<div class="col-md-1"><br/>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>purchaseorder/CreateimportPOPrint" target="_blank">Print</a>
|
||||
@ -3168,10 +3168,10 @@ echo form_textarea($data);
|
||||
<a class="btn btn-cancel Save" ID="Cancel" href="<?php echo base_url().'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<?php if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED ) {
|
||||
if($PONOStatus == PO_DRAFT){?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)" > <span class="bold">Save as Draft</span></a>
|
||||
<?php }?>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)" > <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(4)" > <span class="bold">Approve and Release</span></a>
|
||||
<a class="btn btn-approved Submit" ID="Submit" onclick="Save(4)" > <span class="bold">Approve</span></a>
|
||||
<!-- <input type="reset" class="btn btn-success" value="Reset"> -->
|
||||
<?php }else {?>
|
||||
|
||||
@ -3183,7 +3183,7 @@ echo form_textarea($data);
|
||||
else{?>
|
||||
<!-- <input type="reset" class="btn btn-success" value = "OK"> -->
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(2)" > <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(4)" > <span class="bold">Approve and Release</span></a>
|
||||
<a class="btn btn-approved Submit" ID="Submit" onclick="Save(4)" > <span class="bold">Approve</span></a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>purchaseorderListing">OK</a>
|
||||
<?php }?>
|
||||
<?php } ?>
|
||||
@ -3194,8 +3194,7 @@ echo form_textarea($data);
|
||||
|
||||
<label>Request On :</label><?php echo $Reqon;?><br/>
|
||||
<label>Request By :</label><?php echo $RequesterName;?><br/>
|
||||
<label>Status :</label><?php echo $StatusName;?>
|
||||
<!-- <label>Status : </label><?php
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
@ -3213,7 +3212,6 @@ echo form_textarea($data);
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -249,7 +249,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
</b></center><br />
|
||||
<div class="col-md-12 text-right" style="padding-bottom: 6px; padding-right: 23px;">
|
||||
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-success" id="back" value="Back">Back</a>
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
|
||||
</div>
|
||||
|
||||
@ -1243,13 +1243,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
|
||||
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font AddImport" ID="AddImport"> <span class="bold">Add Import</span></a>
|
||||
<!--<a class="btn btn-success font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
||||
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -1842,11 +1838,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font EditImport" ID="EditImport"> <span class="bold">Edit Import</span></a>
|
||||
<!--<a class="btn btn-success font AddService" ID="AddService" ><i class="fa fa-plus"></i> <span class="bold">Add Service</span></a>-->
|
||||
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -2000,7 +1994,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
</div>
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<div class="col-md-4 col-md-offset-8"><br />
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
@ -2009,10 +2003,9 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save</span></a>
|
||||
<input type="reset" class="btn btn-reset" value="Reset" onclick="window.location.reload()">
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<input type="reset" class="btn btn-success" value="Reset" onclick="window.location.reload()">
|
||||
|
||||
</div>
|
||||
<br />
|
||||
|
||||
@ -314,11 +314,13 @@
|
||||
<!-- </div> -->
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<center>
|
||||
<a class="btn btn-primary" onclick="modalSave()"> <span class="bold">Save</span>
|
||||
<a class="btn btn-primary" data-dismiss="modal" value="Close">Close</a>
|
||||
</center>
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12 text-right">
|
||||
<div class="col-md-4 col-md-offset-8">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Close">Close</a>
|
||||
<a class="btn btn-primary" onclick="modalSave()"> <span class="bold">Save</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- footer div closed -->
|
||||
</div><!-- modal content div closed-->
|
||||
</div><!-- modal content closed-->
|
||||
|
||||
@ -1829,7 +1829,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<div id="content"></div>
|
||||
<div> <center><b> <h2>Revenue Purchase Order</h2> </b></center> </div>
|
||||
<div class="col-md-12 text-right" style="padding-bottom:6px; padding-right:29px;">
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-success" id="back" value="Back">Back</a>
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -2151,9 +2151,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2182,9 +2181,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="FreightOption" onclick="SetfreightOption();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2221,8 +2219,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="ExciseOption" onclick="SetExciseCalculation();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2252,8 +2250,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="VatOption" onclick="SetVatCalculation();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2689,7 +2687,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<a class="btn btn-success font AddRevenue" ID="AddRevenue"> <span class="bold">Add Revenue</span></a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font AddRevenue" ID="AddRevenue"> <span class="bold">Add Revenue</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -3058,7 +3057,9 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -3203,7 +3204,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding: 2% 0%">
|
||||
<div class="col-md-3 col-md-offset-9"><br />
|
||||
<div class="col-md-4 col-md-offset-8"><br />
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
@ -3211,12 +3212,9 @@ if (!empty($INRSYMBOL)) {
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save</span></a>
|
||||
<a class="btn btn-reset Save" ID="Cancel" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
|
||||
|
||||
|
||||
</div><br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -603,7 +603,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</b></center>
|
||||
</div>
|
||||
<div class="col-md-12 text-right" style="padding-bottom: 19px; padding-right: 39px;">
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-success" id="back" value="Back">Back</a>
|
||||
<a href="<?php echo base_url() ?>CreatePO" class="btn btn-cancel" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
|
||||
@ -1245,8 +1245,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font AddService" ID="AddService"> <span class="bold">Add Service</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1533,8 +1533,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font EditService" ID="Edit"> <span class="bold">Update Service</span></a>
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1651,9 +1651,9 @@ if (!empty($INRSYMBOL)) {
|
||||
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction">
|
||||
<input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress">
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save</span></a>
|
||||
<a class="btn btn-reset Save" ID="Cancel" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
</div><br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<section class="content">
|
||||
|
||||
<div style="border:2px solid #333">
|
||||
<center><b><h2>Service Purchase Order</h2></b></center>
|
||||
<center><b><h2>Service Purchase Order.</h2></b></center>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user