fixed bugs from tracker date -12/09/2024

This commit is contained in:
vadivelJ96 2024-09-13 11:20:47 +05:30
parent 638c23db16
commit a5dae07787
6 changed files with 179 additions and 40 deletions

View File

@ -169,11 +169,40 @@
<?php $statusCode = $record->StatusCode;
if ($statusCode == PO_DRAFT || $statusCode == PO_CREATED) { ?>
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
if ($statusCode == PO_DRAFT || $statusCode == PO_CREATED) {
?>
<td>
<a data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"
href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType
. '&CapitalRange=' . $record->CapitalRange; ?>">
<i class="fa fa-pencil-alt" data-toggle="tooltip" > </i>
&nbsp;&nbsp;&nbsp;</a>
</td>
<?php
} else { ?>
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> &nbsp;&nbsp;&nbsp; <a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>" target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
} else {
?>
<td>
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType
. '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip"
title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>
&nbsp;&nbsp;&nbsp;</a> &nbsp;&nbsp;&nbsp;
<a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>"
target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?>
- Click here to Print the Purchase Order details"></i>
&nbsp;&nbsp;&nbsp;
</a>
</td>
<?php
} ?>
</tr>
@ -278,4 +307,9 @@ $(document).ready(function() {
}
});
});
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>

View File

@ -872,7 +872,7 @@
onkeypress="return isNumberKey(event)">
</div>
</div>
<div class="col-md-3" style="margin-top: 18px;">
<div class="col-md-3" >
<div class="form-group">
<span for="ESI_Rate">ESI Rate(%)</span>
<font color="Red">*</font>

View File

@ -34,6 +34,28 @@
.icon-button:hover {
color: #0056b3;
}
td {
padding-left: 0;
padding-right: 0;
}
td {
padding-left: 0;
padding-right: 0;
}
.configIdTh{
text-align:center !important;
width:15%;
}
.configIdTd{
text-align:center !important;
width:15%;
}
</style>
@ -96,7 +118,7 @@
<thead>
<tr>
<th>Create Date</th>
<th>Configuration ID</th>
<th class="configIdTh">Configuration ID</th>
<th>Configuration Name</th>
<th>Description</th>
<th>Action</th>
@ -114,7 +136,7 @@
$cdate = date('d-m-Y', strtotime($record->CreatedDate));
} ?>
<td ><?php echo $cdate; ?> </td>
<td><?php echo $record->Config_ID ?></td>
<td class="configIdTd"><?php echo $record->Config_ID ?></td>
<td><?php echo $record->ConfigName ?></td>
<td><?php echo $record->Comments ?> </td>
<!-- <td><?php echo $record->CreatedDate ?></td> -->
@ -125,7 +147,8 @@
<td><a href="<?php echo base_url() . 'configurationctrl/editconfig?ConfigID=' . $record->Config_ID; ?>"><i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;&nbsp;</a>
<td >
<a href="<?php echo base_url() . 'configurationctrl/editconfig?ConfigID=' . $record->Config_ID; ?>"><i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;&nbsp;</a>
<!-- <a><i class="fa fa-trash"></i>&nbsp;&nbsp;&nbsp;</a> -->
</td>

View File

@ -753,11 +753,11 @@ foreach ($PaymentTerms as $TER) {
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="form-row">
<div class="form-group col-md-3">
<label>Work Status<span class="text-danger">*</span></label>
<?php
@ -998,6 +998,16 @@ foreach ($PaymentTerms as $TER) {
</div>
</div>
</div>
</div>
</div>
<div class="form-row">
</div>

View File

@ -50,6 +50,32 @@ if (!empty($ReqPOType)) {
font-size: 14px;
}
td {
padding-left: 0;
padding-right: 0;
}
td {
padding-left: 0;
padding-right: 0;
}
.th-materialCode{
text-align:center !important;
width:15%;
}
.th-requestedQuantity{
text-align:center !important;
width:15%;
}
.th-PoQuantity{
text-align:center !important;
width:15%;
}
</style>
<script type="text/javascript">
window.onload = function() {
@ -158,11 +184,11 @@ if (!empty($ReqPOType)) {
<thead>
<tr>
<th class="th">SNo</th>
<th class="th">Material Code</th>
<th class="th">Material Name</th>
<th class="th th-materialCode">Material Code</th>
<th class="th th-materialName">Material Name</th>
<th class="th">Uom</th>
<th class="th">RequestedQuantity</th>
<th class="th">PoQuantity</th>
<th class="th th-requestedQuantity">RequestedQuantity</th>
<th class="th th-PoQuantity">PoQuantity</th>
<th class="th">Status</th>
<th class="th">Action</th>
</tr>
@ -176,15 +202,15 @@ if (!empty($ReqPOType)) {
$materialdesc = isset($record->MaterialDescription) ? $record->MaterialDescription : "";
//echo $materialdesc;
?>
<tr id="<?php echo $index; ?>">
<td align="left"><?php echo $index; ?></td>
<tr id="<?php echo $index; ?>">
<td align="center"><?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 'tes' . $index ?>" value="<?php echo $record->Quantity; ?>" />
<td align="left"><?php echo $record->MaterialCode; ?></td>
<td align="center"><?php echo $record->MaterialCode; ?></td>
<td align="left"><?php echo $record->MaterialName; ?></td>
<td align="left"><?php echo $record->UOM; ?></td>
<td align="left"><?php echo $record->Quantity; ?></td>
<td align="left"><?php echo $record->POQTY; ?></td>
<td align="center"><?php echo $record->Quantity; ?></td>
<td align="center"><?php echo $record->POQTY; ?></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 : ''; ?>" />
<td>

View File

@ -12,11 +12,12 @@ $Terms = '';
$t = '';
if (!empty($staticspecialinstruction)) {
foreach ($staticspecialinstruction as $text)
$t = $text->ConfigValue;
$t=$staticspecialinstruction[0]->ConfigValue;
}
date_default_timezone_set('Asia/Kolkata');
$date = date('d/m/Y h:i:s a', time());
@ -91,6 +92,8 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
setup: function(ed) {
ed.on('init', function(evt) {
console.log(evt);
console.log('<?php echo $t; ?>')
ed.setContent('<?php echo $t; ?>');
});
}
@ -276,7 +279,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
$ReqType = $SID->ReqType;
endforeach;
}
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo"', 'required="true"');
echo form_multiselect('RequistionNo', $options, set_value('RequistionNo', array()), 'id="RequistionNo" required="true"');
?>
</div>
@ -679,28 +682,71 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label>Special Instructions :</label> <?php
$data = array('name' => 'txtSpcialInstruction', 'value' => set_value('txtSpcialInstruction'), 'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
echo form_textarea($data);
?>
<label>Special Instructions :</label>
<?php
$data = array('name' => 'txtSpcialInstruction', 'value' => set_value(field: 'txtSpcialInstruction'),
'id' => 'txtSpcialInstruction', 'class' => 'form-control', 'rows' => '10', 'cols' => '40');
echo form_textarea(data: $data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label>
Select Purchase Order File
</label>
<br>
<input type="file" name="POFile" id="POFile"><br>
</div>
</div>
<div class="form-row" align="right" style="padding-right:10px">
<br><br>
<div class="form-group 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" />
<input type="hidden" name="txtStatus" id="txtStatus" />
<input type="hidden" name="txtRowCount" id="txtRowCount" />
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<div class="form-row" >
<div class="form-group col-md-4">
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">
<span class="bold">Save as Draft</span>
</a>
</div>
<div class="form-group col-md-4">
</div>
<div class="form-group col-md-4" align="right">
<input type="hidden" name="txtPoRange" id="txtPoRange"/>
<input type="hidden" name="isEdit" id="isEdit" value="0"/>
<input type="hidden" name="txtStatus" id="txtStatus"/>
<input type="hidden" name="txtRowCount" id="txtRowCount"/>
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow"/>
<input type="hidden" name="Budget" id="Budget" />
<input type="reset" class="btn btn-reset" value="Reset" onclick="window.location.reload()">
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<input type="reset" class="btn btn-success" value="Reset" onclick="window.location.reload()">
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">
<span class="bold">Submit</span>
</a>
</div>
<br />