edit po in po list bug fix -vadivel J

This commit is contained in:
vadivel J 2024-09-26 09:04:43 +05:30
parent dbb25ecf9a
commit 8abf7658c4

View File

@ -2215,20 +2215,20 @@ if (!empty($getlogpodtl)) {
<thead>
<tr>
<th>SNo</th>
<th>Requisition No</th>
<th>Item Code</th>
<th>Item Description</th>
<th>Quantity</th>
<th>UOM</th>
<th>Rate <?php echo "($INRSYM)" ?></th>
<th>Basic Amount <?php echo "($INRSYM)" ?></th>
<th>Tax Amount <?php echo "($INRSYM)" ?></th>
<th>Total Order Amount <?php echo "($INRSYM)" ?></th>
<th style="text-align:center !important">SNo</th>
<th style="text-align:center !important">Requisition No</th>
<th style="text-align:center !important">Item Code</th>
<th style="text-align:center !important">Item Description</th>
<th style="text-align:center !important">Quantity</th>
<th style="text-align:center !important">UOM</th>
<th style="text-align:center !important">Rate <?php echo "($INRSYM)" ?></th>
<th style="text-align:center !important">Basic Amount <?php echo "($INRSYM)" ?></th>
<th style="text-align:center !important">Tax Amount <?php echo "($INRSYM)" ?></th>
<th style="text-align:center !important">Total Order Amount <?php echo "($INRSYM)" ?></th>
<!-- <th>Actual Quantity</th>
<th>Received Quantity</th>
<th>Pending Quantity</th> -->
<th>Action</th>
<th style="text-align:center !important">Action</th>
</tr>
</thead>
<tbody id='RevenueAppend'>
@ -2240,12 +2240,12 @@ if (!empty($getlogpodtl)) {
$index = $index + 1;
?>
<tr id="<?php echo $index; ?>">
<td align="left"><?php echo $index; ?></td>
<td><?php echo $record->ReqNo ?></td>
<td><?php echo $record->MaterialCode ?></td>
<td><?php echo $record->MaterialName ?></td>
<td align="left"><?php echo $record->Quantity ?></td>
<td><?php echo $record->UOM ?></td>
<td align="center"><?php echo $index; ?></td>
<td align="center"><?php echo $record->ReqNo ?></td>
<td align="center"><?php echo $record->MaterialCode ?></td>
<td align="center"><?php echo $record->MaterialName ?></td>
<td align="center"><?php echo $record->Quantity ?></td>
<td align="center"><?php echo $record->UOM ?></td>
<td align="right"><?php echo $record->Rate ?></td>
<td align="right"><?php echo number_format($record->BasicValue, 2, '.', ''); ?></td>
@ -2293,12 +2293,14 @@ if (!empty($getlogpodtl)) {
<?php
if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == SPECIAL_PO) { ?>
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
<td align="center"> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
</td>
<?php
} else { ?>
<td> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> </td>
<td align="center"> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a>
</td>
<?php
} ?>
@ -2326,6 +2328,9 @@ if (!empty($getlogpodtl)) {
</table>
</div>
</div>
<br>
<div class="form-row">
<div class="form-group col-md-3">
<label>Basic Amount <?php echo "($INRSYM)" ?></label>
@ -2374,6 +2379,9 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<br>
<div class="form-row">
<div class="form-group col-md-3">
<label>Total Packaging Amount <?php echo "($INRSYM)" ?></label>
@ -2411,6 +2419,10 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
<br>
<div class="form-row">
<div class="form-group col-md-12">
<label>Special Instructions </label> <?php
@ -2420,6 +2432,10 @@ if (!empty($getlogpodtl)) {
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="">
</div>
</div>
<br>
<div class="form-row" id="splpodiv" style="display:none;">
<div class="form-group col-md-12"><label>Special po Table List</label>
@ -2606,8 +2622,9 @@ if (!empty($getlogpodtl)) {
<?php } else {
} ?>
<div class="form-row">
<div class="form-group col-md-12" align="right"><br />
<div class="form-group col-md-12" align="left"><br />
<div>
<label>Select Purchase Order File</label><br>
<input type="file" name="POFile" id="POFile">
<?php if ($PrePOFile) { ?>
<label><a title="previously uploaded PO File" href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously uploaded - </span><small><?= $PrePOFile; ?></small></a></label>