CHANGE_TRACKER_ISSUE_7

This commit is contained in:
aadhavan valli 2024-09-19 17:45:32 +05:30
parent ab54ba815a
commit dcc27d262e
9 changed files with 3508 additions and 3511 deletions

View File

@ -1085,7 +1085,7 @@ if (!empty($getlogpodtl)) {
</div> </div>
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="table-responsive"> <div class="table-responsive" style="padding-bottom: 30px;">
<table id="ServiceTable" class="table table-striped table-hover mb-0" style="font-size:12px;"> <table id="ServiceTable" class="table table-striped table-hover mb-0" style="font-size:12px;">
<thead> <thead>
<tr> <tr>
@ -1437,7 +1437,9 @@ if (!empty($getlogpodtl)) {
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br> <input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
</div> <input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" /> </div> <input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
<input type="hidden" name="txtStatus" id="txtStatus" /> <input type="hidden" name="txtStatus" id="txtStatus" />
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php if(isset($index)){ echo $index; }?>"> <input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php if (isset($index)) {
echo $index;
} ?>">
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" /> <input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" /> <input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
@ -1461,11 +1463,15 @@ if (!empty($getlogpodtl)) {
</div> </div>
<label>Request On : </label><?php if(isset($Reqon)){ echo $Reqon; } ?><br /> <label>Request On : </label><?php if (isset($Reqon)) {
<?php if(isset($RequesterName)){ if ($RequesterName != '' || $RequesterName != null) { ?> echo $Reqon;
} ?><br />
<?php if (isset($RequesterName)) {
if ($RequesterName != '' || $RequesterName != null) { ?>
<label>Request By : </label><?php echo $RequesterName; ?><br /> <label>Request By : </label><?php echo $RequesterName; ?><br />
<?php <?php
}} ?> }
} ?>
<!-- <label>Status : </label><?php echo $StatusName; ?> --> <!-- <label>Status : </label><?php echo $StatusName; ?> -->
<label>Status : </label><?php <label>Status : </label><?php
$statusMappings = [ $statusMappings = [
@ -1729,7 +1735,7 @@ if (!empty($getlogpodtl)) {
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a> <a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px;">Cancel</a>
<a class="btn btn-success font AddService" ID="AddService"><span class="bold">Add Service</span></a> <a class="btn btn-success font AddService" ID="AddService"><span class="bold">Add Service</span></a>
</div> </div>
</form> </form>
@ -2337,7 +2343,9 @@ if (!empty($getlogpodtl)) {
</tr> </tr>
</script> --> </script> -->
<script> <script>
var index = <?php if(isset($index)){ echo $index; } ?>; var index = <?php if (isset($index)) {
echo $index;
} ?>;
var userid = ''; var userid = '';
var SelectedMaterialCode = []; var SelectedMaterialCode = [];
var CollIndex = 0; var CollIndex = 0;
@ -2442,17 +2450,16 @@ if (!empty($getlogpodtl)) {
<td align="left">${Reqnumber}</td> <td align="left">${Reqnumber}</td>
<td align="left">${materialCode}</td> <td align="left">${materialCode}</td>
<td align="left">${materialName}</td> <td align="left">${materialName}</td>
<td align="left">${quantity}</td> <td align="right">${quantity}</td>
<td align="left">${uom}</td> <td align="left">${uom}</td>
<td align="left">${itemRate}</td> <td align="right">${itemRate}</td>
<td align="left">${basicval}</td> <td align="right">${basicval}</td>
<td align="left">${TotalTaxValue}</td> <td align="right">${TotalTaxValue}</td>
<td align="left">${TotalOrderValue}</td> <td align="right">${TotalOrderValue}</td>
<td> <td>
<a data-target='#EDITSERVICE' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICE"> <a data-target='#EDITSERVICE' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICE">
<i class="ri-pencil-fill" data-toggle="tooltip" ></i> <i class="ri-pencil-fill" data-toggle="tooltip" ></i>
</a> </a>
&nbsp;&nbsp;&nbsp;
<a href='#' onclick="DeleteRow(${temp})" class="link" data-id="${temp}" data-userid="${temp}" id="Del"> <a href='#' onclick="DeleteRow(${temp})" class="link" data-id="${temp}" data-userid="${temp}" id="Del">
<span class="ri-delete-bin-7-fill"></span> <span class="ri-delete-bin-7-fill"></span>
</a> </a>
@ -2495,6 +2502,9 @@ $('#ServiceAppend').append(rowHtml);
$('#txtRowCount').val(temp); $('#txtRowCount').val(temp);
clearServiceModalFields(); clearServiceModalFields();
setTimeout(() => {
$('#SERVICE').modal('hide');
}, 1000);
} }
}); });
@ -3009,20 +3019,21 @@ $('#ServiceAppend').append(rowHtml);
processData: false, processData: false,
contentType: false, contentType: false,
success: function(data) { success: function(data) {
if (data) { console.log(data);
// $('#content').loader('hide'); // if (data) {
alert(data); // // $('#content').loader('hide');
$('#txtRowCount').val(''); // alert(data);
$('#txtDeletedRow').val(''); // $('#txtRowCount').val('');
$('#txtStatus').val(''); // $('#txtDeletedRow').val('');
$('#SpcialInstruction').val(''); // $('#txtStatus').val('');
$('#txtDeliveryAddress').val('') // $('#SpcialInstruction').val('');
window.location = "purchaseorderListing"; // $('#txtDeliveryAddress').val('')
// window.location = "purchaseorderListing";
} else { // } else {
// $('#content').loader('hide'); // // $('#content').loader('hide');
alert("Error"); // alert("Error");
} // }
} }
@ -3420,7 +3431,8 @@ $('#ServiceAppend').append(rowHtml);
}); });
} }
});}); });
});
$("#insuranceStatus").change(function() { $("#insuranceStatus").change(function() {
var InsNo = '<?php echo $InsuranceNumber; ?>'; var InsNo = '<?php echo $InsuranceNumber; ?>';

View File

@ -2655,7 +2655,7 @@ if (!empty($INRSYMBOL)) {
</div> </div>
<div class="col-md-3" id="otheroptiondiv" style="display:none;"> <div class="col-md-3" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="badge mandatory">*</span></label> <label>Description of Payable Terms</label>
<div class="form-group"> <div class="form-group">
<?php <?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true'); $data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
@ -6875,6 +6875,7 @@ if (!empty($INRSYMBOL)) {
$('#OtherAmt' + userid).val(OtherAmt); $('#OtherAmt' + userid).val(OtherAmt);
populateValueMainFormForEditServiceTax(); populateValueMainFormForEditServiceTax();
$('#EDITSERVICE').modal('hide');
} else { } else {
console.log("in else part..."); console.log("in else part...");

View File

@ -541,7 +541,7 @@
?> ?>
</div> </div>
<div class="form-group col-md-3" id="otheroptiondiv" style="display:none;"> <div class="form-group col-md-3" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="text-danger">*</span></label> <label>Description of Payable Terms</label>
<div> <div>
<?php <?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true'); $data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
@ -4317,7 +4317,7 @@
return false; return false;
} else { } else {
$('#content').loader('show'); // $('#content').loader('show');
var formData = new FormData($('.CapitalPO')[0]); var formData = new FormData($('.CapitalPO')[0]);
formData.append('ExchangeRateOn', ExchangeRateOn); formData.append('ExchangeRateOn', ExchangeRateOn);
formData.append('PaymentMethod', PaymentMethod); formData.append('PaymentMethod', PaymentMethod);
@ -4332,7 +4332,7 @@
success: function(data) { success: function(data) {
alert(data); alert(data);
if (data) { if (data) {
$('#content').loader('hide'); // $('#content').loader('hide');
$('#txtRowCount').val(''); $('#txtRowCount').val('');
$('#txtDeletedRow').val(''); $('#txtDeletedRow').val('');
@ -4344,7 +4344,7 @@
window.location = "purchaseorderListing"; window.location = "purchaseorderListing";
} else { } else {
$('#content').loader('hide'); // $('#content').loader('hide');
alert("Error"); alert("Error");
} }

View File

@ -429,7 +429,7 @@
endDate.setHours(23, 59, 59, 999); endDate.setHours(23, 59, 59, 999);
// Get the date from the DataTable row (assuming it's in the first column in dd-mm-yyyy format) // Get the date from the DataTable row (assuming it's in the first column in dd-mm-yyyy format)
var dateStr = data[0]; var dateStr = data[1];
var dateParts = dateStr.split("-"); var dateParts = dateStr.split("-");
var rowDate = new Date(dateParts[2], dateParts[1] - 1, dateParts[0]); var rowDate = new Date(dateParts[2], dateParts[1] - 1, dateParts[0]);

View File

@ -174,8 +174,6 @@
?> ?>
<style> <style>
.dataTables_paginate { .dataTables_paginate {
margin-top: -5%; margin-top: -5%;
} }
@ -870,10 +868,10 @@
<div class="form-row"> <div class="form-row">
<div class="col-md-9" align="right" style="padding:10px"> <!-- <div class="col-md-9" align="right" style="padding:10px"> -->
<!-- <input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1"> IS THIS OPEN ORDER FORMAT --> <!-- <input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1"> IS THIS OPEN ORDER FORMAT -->
</div> <!-- </div> -->
<div class="form-group col-md-1" align=" right"> <div class="form-group col-md-12" align=" right">
<?php if ($POStatus == PO_DRAFT || $POStatus == PO_CREATED) { ?> <?php if ($POStatus == PO_DRAFT || $POStatus == PO_CREATED) { ?>
<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-success" id="abcd">Select Line Item</button> </a> <a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-success" id="abcd">Select Line Item</button> </a>
<?php } ?> <?php } ?>
@ -920,19 +918,19 @@
<td><?php echo $record->ReqNo ?></td> <td><?php echo $record->ReqNo ?></td>
<td><?php echo $record->MaterialCode ?></td> <td><?php echo $record->MaterialCode ?></td>
<td><?php echo $record->MaterialName ?></td> <td><?php echo $record->MaterialName ?></td>
<td><?php echo $record->Quantity ?></td> <td align="right"><?php echo $record->Quantity ?></td>
<td><?php echo $record->UOM ?></td> <td align="right"><?php echo $record->UOM ?></td>
<td><?php echo $record->Rate ?></td> <td align="right"><?php echo $record->Rate ?></td>
<td><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td> <td align="right"><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td>
<?php if ($CapitalRange == '1') { ?> <?php if ($CapitalRange == '1') { ?>
<td><?php echo $record->ServiceTaxamount; ?></td> <td align="right"><?php echo $record->ServiceTaxamount; ?></td>
<td><?php echo number_format($record->Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?></td> <td align="right"><?php echo number_format($record->Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?></td>
<?php } ?> <?php } ?>
<?php if ($CapitalRange == '0') { ?> <?php if ($CapitalRange == '0') { ?>
<td><?php echo '0'; ?></td> <td align="right"><?php echo '0'; ?></td>
<td><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td> <td align="right"><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td>
<?php } ?> <?php } ?>
@ -1520,8 +1518,7 @@
<form> <form>
<div class="modal-body p-4"> <div class="modal-body p-4">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-5" style="padding:0px;"> <div class="form-group col-md-2" style="padding:0px">
<div class="form-group col-md-6" style="padding:0px">
<label>Req No<span class="text-danger">*</span></label> <label>Req No<span class="text-danger">*</span></label>
<div> <div>
@ -1541,7 +1538,7 @@
</div> </div>
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-2">
<label>Department Name</label> <label>Department Name</label>
<div> <div>
<?php <?php
@ -1550,9 +1547,7 @@
?> ?>
</div> </div>
</div> </div>
</div> <div class="form-group col-md-2">
<div class="form-group col-md-5">
<div class="form-group col-md-6">
<label>Cost Center Code</label> <label>Cost Center Code</label>
<div> <div>
<?php <?php
@ -1563,7 +1558,7 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-2">
<label>Avail Bud Amount<?php echo "($INR)" ?></label> <label>Avail Bud Amount<?php echo "($INR)" ?></label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1572,7 +1567,6 @@
?> ?>
</div> </div>
</div> </div>
</div>
<div class="form-group col-md-2" id="ExchangeRateModalDiv" style="display:none;padding-right: 0px;"> <div class="form-group col-md-2" id="ExchangeRateModalDiv" style="display:none;padding-right: 0px;">
<label> Exchange Rate</label> <label> Exchange Rate</label>
<div class="form-group"> <div class="form-group">
@ -1585,8 +1579,7 @@
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6" style="padding:0px"> <div class="form-group col-md-2">
<div class="form-group col-md-3">
<label>Item Code<span class="text-danger">*</span></label> <label>Item Code<span class="text-danger">*</span></label>
<div> <div>
<?php <?php
@ -1595,7 +1588,7 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-2">
<label>Item Name</label> <label>Item Name</label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1604,8 +1597,7 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-1">
<div class="form-group col-md-3">
<label>UOM</label> <label>UOM</label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1614,7 +1606,7 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-2">
<label>Quantity<span class="text-danger">*</span></label> <label>Quantity<span class="text-danger">*</span></label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1623,10 +1615,7 @@
?> ?>
</div> </div>
</div> </div>
</div> <div class="form-group col-md-2" style="padding: 0px;">
<div class="form-group col-md-6" style="padding: 0px;">
<div class="form-group col-md-4" style="padding: 0px;">
<label id="RateIn">Rate(In INR /UOM)</label><span class="text-danger">*</span> <label id="RateIn">Rate(In INR /UOM)</label><span class="text-danger">*</span>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1635,12 +1624,12 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-1">
<label>Per</label> <?php <label>Per</label> <?php
$data = array('name' => 'AddPer', 'value' => set_value('AddPer'), 'id' => 'AddPer', 'class' => 'form-control'); $data = array('name' => 'AddPer', 'value' => set_value('AddPer'), 'id' => 'AddPer', 'class' => 'form-control');
echo form_input($data); ?> echo form_input($data); ?>
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-2">
<label id="TotalAmount">Basic value <?php echo "($INR)" ?></label> <label id="TotalAmount">Basic value <?php echo "($INR)" ?></label>
<div class="form-group"> <div class="form-group">
<?php <?php
@ -1650,7 +1639,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="form-row" style="padding:2%"> <div class="form-row" style="padding:2%">
<div class="form-row" id="ADDCAPdiv" style="padding:0px;"> <div class="form-row" id="ADDCAPdiv" style="padding:0px;">
@ -1877,7 +1865,7 @@
<div class="form-row" style="padding:1%;"></div> <div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ModalImportTaxHide" style="display:none;"> <div class="form-row" style="border:1px solid #000;padding:0px;" id="ModalImportTaxHide" style="display:none;">
<br /> <br />
<div class="form-group col-md-6" style="padding:0px;"> <div class="form-group col-md-6" style="padding:10px;">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?> Basic Price <?php echo "($INR)" ?>
@ -2008,7 +1996,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group col-md-6" style="padding:0px;"> <div class="form-group col-md-6" style="padding:10px;">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<!-- Subtotal (E)<?php echo "($INR)" ?> --> <!-- Subtotal (E)<?php echo "($INR)" ?> -->
@ -2202,8 +2190,6 @@
<div class="form-group col-md-4" style="margin-top: -25px;"> <div class="form-group col-md-4" style="margin-top: -25px;">
<!-- RMC Including Customers --> <!-- RMC Including Customers -->
<span><?php echo "Nett per UOM($INR)"; ?></span> <span><?php echo "Nett per UOM($INR)"; ?></span>
</div>
<div class="form-group col-md-4">
<div class="form-group"> <div class="form-group">
<?php <?php
$data = array('name' => 'Nett', 'value' => set_value('Nett', 0), 'id' => 'Nett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true'); $data = array('name' => 'Nett', 'value' => set_value('Nett', 0), 'id' => 'Nett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
@ -2211,6 +2197,9 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-4">
</div>
</div> </div>
@ -2219,19 +2208,18 @@
</div> </div>
</div> </div>
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align: left;">
<div class="form-row" style="padding: 20px 30px 10px 30px;text-align: left;">
<div class="form-group col-md-12">
<label>Capital Description </label> <label>Capital Description </label>
<?php <?php
$data = array('name' => 'ItemDescription', 'value' => set_value('ItemDescription'), 'id' => 'ItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40'); $data = array('name' => 'ItemDescription', 'value' => set_value('ItemDescription'), 'id' => 'ItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?> echo form_textarea($data); ?>
</div> </div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a> <a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:20px;">Cancel</a>
<a class="btn btn-success font AddCapital" ID="AddCapital"> &nbsp;&nbsp;<span class="bold">Add Capital</span></a> <a class="btn btn-success font AddCapital" ID="AddCapital"> &nbsp;&nbsp;<span class="bold">Add Capital</span></a>
</div> </div>
</form> </form>
@ -2585,11 +2573,10 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="form-row" style="padding:1%;"></div> <div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide" style="display:none;"> <div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide" style="display:none;">
<br /> <br />
<div class="form-group col-md-6" style="padding:0px;"> <div class="form-group col-md-6" style="padding:10px;">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?> Basic Price <?php echo "($INR)" ?>
@ -2720,7 +2707,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group col-md-6" style="padding:0px;"> <div class="form-group col-md-6" style="padding:10px;">
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
Subtotal (E) <?php echo "($INR) (A+B+C+D)" ?> Subtotal (E) <?php echo "($INR) (A+B+C+D)" ?>
@ -2908,8 +2895,6 @@
<div class="form-group col-md-4" style="margin-top: -25px;"> <div class="form-group col-md-4" style="margin-top: -25px;">
<!-- RMC Including Customers --> <!-- RMC Including Customers -->
<span><?php echo "Nett per UOM($INR)"; ?></span> <span><?php echo "Nett per UOM($INR)"; ?></span>
</div>
<div class="form-group col-md-4">
<div class="form-group"> <div class="form-group">
<?php <?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true'); $data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
@ -2917,6 +2902,9 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-4">
</div>
@ -2924,17 +2912,12 @@
</div> </div>
</div> </div>
<div class="form-row" style="padding: 0px 30px 10px 30px;text-align: left;"> <div class="form-row" style="padding: 0px 30px 10px 30px;text-align: left;">
<label>Capital Description </label> <label>Capital Description </label>
<?php <?php
$data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40'); $data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?> echo form_textarea($data); ?>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a> <a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
@ -3627,8 +3610,6 @@
<div class="form-group col-md-4" style="margin-top: -25px;"> <div class="form-group col-md-4" style="margin-top: -25px;">
<!-- RMC Including Customers --> <!-- RMC Including Customers -->
<span><?php echo "Nett per UOM($INR)"; ?></span> <span><?php echo "Nett per UOM($INR)"; ?></span>
</div>
<div class="form-group col-md-4">
<div class="form-group"> <div class="form-group">
<?php <?php
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true'); $data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
@ -3636,6 +3617,9 @@
?> ?>
</div> </div>
</div> </div>
<div class="form-group col-md-4">
</div>
@ -4784,15 +4768,12 @@
<td align="left">${Reqnumber}</td> <td align="left">${Reqnumber}</td>
<td align="left">${materialCode}</td> <td align="left">${materialCode}</td>
<td align="left">${materialName}</td> <td align="left">${materialName}</td>
<td align="left">${quantity}</td> <td align="right">${quantity}</td>
<td align="left">${uom}</td> <td align="right">${uom}</td>
<td align="left">${itemRate}</td> <td align="right">${itemRate}</td>
<td align="left">${basicval}</td> <td align="right">${basicval}</td>
<td align="left">${TotalTaxValue}</td> <td align="right">${TotalTaxValue}</td>
<td align="left">${Total}</td> <td align="right">${Total}</td>
<td align="left">${quantity}</td>
<td align="left">0</td>
<td align="left">${quantity}</td>
<td> <td>
<a data-target='#EDITCAPITAL' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITREVENUE"> <a data-target='#EDITCAPITAL' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITREVENUE">
<i class="ri-pencil-fill" data-toggle="tooltip" ></i> <i class="ri-pencil-fill" data-toggle="tooltip" ></i>
@ -4886,6 +4867,7 @@
clearCapitalModalFields(); clearCapitalModalFields();
$('#CAPITAL').modal('hide');
} }
}); });
@ -5352,7 +5334,7 @@
url: "<?php echo base_url() ?>purchaseorder/DeletePODetails", url: "<?php echo base_url() ?>purchaseorder/DeletePODetails",
success: function(data) { success: function(data) {
if (data) { if (data) {
$('#content').loader('hide'); // $('#content').loader('hide');
alert(data); alert(data);
} else { } else {
alert("Error"); alert("Error");
@ -5579,6 +5561,10 @@
} }
$(document).ready(function() { $(document).ready(function() {
setTimeout(() => {
$('#drpFreight').addClass('form-control');
}, 1000);
/* get Edit Capital Po Modal*/ /* get Edit Capital Po Modal*/
$("#EDITCAPITAL").on("shown.bs.modal", function(e) { $("#EDITCAPITAL").on("shown.bs.modal", function(e) {
@ -5859,7 +5845,8 @@
tinyMCE.get('ViewItemDescription').setContent($('#CapitalItemDescrition' + userid).val()); tinyMCE.get('ViewItemDescription').setContent($('#CapitalItemDescrition' + userid).val());
});}); });
});
/*get edit material list*/ /*get edit material list*/
$('#EditMaterialCode').change(function() { $('#EditMaterialCode').change(function() {
@ -6000,7 +5987,7 @@
//alert('else'); //alert('else');
$('#content').loader('show'); // $('#content').loader('show');
//alert('ss'); //alert('ss');
var formData = new FormData($('.CapitalPO')[0]); var formData = new FormData($('.CapitalPO')[0]);
formData.append('ExchangeRateOn', ExchangeRateOn); formData.append('ExchangeRateOn', ExchangeRateOn);
@ -6016,7 +6003,7 @@
success: function(data) { success: function(data) {
if (data) { if (data) {
alert(data); alert(data);
$('#content').loader('hide'); // $('#content').loader('hide');
$('#txtRowCount').val(''); $('#txtRowCount').val('');
$('#txtDeletedRow').val(''); $('#txtDeletedRow').val('');
@ -6027,7 +6014,7 @@
window.location = "purchaseorderListing"; window.location = "purchaseorderListing";
} else { } else {
$('#content').loader('hide'); // $('#content').loader('hide');
alert("Error"); alert("Error");
} }

View File

@ -2136,20 +2136,20 @@ if (!empty($getlogpodtl)) {
</div> </div>
</div> </div>
<div class="form-row"> <div class="form-row">
<div align="form-group col-md-12" align="right"> <div class="form-group col-md-12" align="right">
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?> <?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
<?php if ($PONOStatus == REQITEM_Emergency_PO_CREATED) { ?> <?php if ($PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
<input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1" <?php echo $isChecked ? 'checked' : ''; ?>> IS THIS OPEN ORDER FORMAT <input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1" <?php echo $isChecked ? 'checked' : ''; ?>> IS THIS OPEN ORDER FORMAT
<?php } ?> <?php } ?>
<!-- <a data-toggle="modal" onclick="showmodel();" class=" btn btn-success"> Select Line Item </a> --> <!-- <a data-toggle="modal" onclick="showmodel();" class=" btn btn-success"> Select Line Item </a> -->
<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd">Select Line Item</button> </a> <a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-success" id="abcd">Select Line Item</button> </a>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<br> <br>
<div class="form-row"> <div class="form-row">
<div class="table-responsive"> <div class="table-responsive" style="padding-bottom:30px;">
<table id="revenueTax" class="table table-striped table-hover mb-0" style="font-size:12px;"> <table id="revenueTax" class="table table-striped table-hover mb-0" style="font-size:12px;">
<thead> <thead>
@ -2262,7 +2262,7 @@ if (!empty($getlogpodtl)) {
} }
?> ?>
</tbody> </tbody>
</table><br> </table>
</div> </div>
</div> </div>
<div class="form-row"> <div class="form-row">
@ -2482,7 +2482,8 @@ if (!empty($getlogpodtl)) {
<!--################################################################## --> <!--################################################################## -->
<?php if (!empty($update)) { ?> <?php if (!empty($update)) { ?>
<div class="form-row" id="editpodiv"> <div class="form-row" id="editpodiv">
<div class="form-row"><label>Editable POScreen</label> <!-- <div class="form-row"> -->
<label>Editable POScreen</label>
<table id="edittable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;"> <table id="edittable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;"> <thead style="background-color: #ddd;">
<tr> <tr>
@ -2539,7 +2540,7 @@ if (!empty($getlogpodtl)) {
?> ?>
</tbody> </tbody>
</table> </table>
</div> <!-- </div> -->
</div> </div>
<?php } else { <?php } else {
} ?> } ?>
@ -4062,9 +4063,9 @@ if (!empty($getlogpodtl)) {
addHidden(theForm, "per" + temp, PER); addHidden(theForm, "per" + temp, PER);
addHidden(theForm, "service_description" + temp, service_description); addHidden(theForm, "service_description" + temp, service_description);
$('#txtRowCount').val(temp); $('#txtRowCount').val(temp);
// $('#REVENUE').modal('hide');
populateValueMainFormForRevenue(); populateValueMainFormForRevenue();
clearRevenueModalFields(); clearRevenueModalFields();
$('#REVENUE').modal('hide');
} }
}); });
@ -4170,6 +4171,9 @@ if (!empty($getlogpodtl)) {
$('#service_description' + userid).val(Service_Description); $('#service_description' + userid).val(Service_Description);
populateValueMainFormForEditRevenueTax(); populateValueMainFormForEditRevenueTax();
setTimeout(() => {
$('#EDITREVENUE').modal('hide');
}, 1000);
} }
}); });
@ -4887,19 +4891,19 @@ if (!empty($getlogpodtl)) {
processData: false, processData: false,
contentType: false, contentType: false,
success: function(data) { success: function(data) {
console.log(data); // console.log(data);
// if (data) { if (data) {
// alert(data); alert(data);
// $('#txtRowCount').val(''); $('#txtRowCount').val('');
// $('#txtDeletedRow').val(''); $('#txtDeletedRow').val('');
// $('#txtStatus').val(''); $('#txtStatus').val('');
// $('#SpcialInstruction').val(''); $('#SpcialInstruction').val('');
// $('#txtDeliveryAddress').val('') $('#txtDeliveryAddress').val('')
// window.location = "purchaseorderListing"; window.location = "purchaseorderListing";
// } else { } else {
// alert("Error"); alert("Error");
// } }
}, },
error: function(jqXHR, textStatus, errorThrown) { error: function(jqXHR, textStatus, errorThrown) {

View File

@ -565,7 +565,7 @@ if (!empty($getlogpodtl)) {
<label>Purchase Order Date</label> <label>Purchase Order Date</label>
<div > <div >
<?php <?php
$data = array('type' => 'date', 'name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;'); $data = array('name' => 'PODate', 'value' => set_value('PODate', $PODate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
echo form_input($data); echo form_input($data);
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>"> ?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
</div> </div>
@ -657,7 +657,7 @@ if (!empty($getlogpodtl)) {
</div> </div>
<div class="form-group col-md-3" id="otheroptiondiv" style="display:none;"> <div class="form-group col-md-3" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="text-danger">*</span></label> <label>Description of Payable Terms</label>
<div > <div >
<?php <?php
@ -714,10 +714,6 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-3"> <div class="form-group col-md-3">
</div> </div>
</div> </div>
<div class="form-row" align="right"> <div class="form-row" align="right">
<div class="col-md-4"> <div class="col-md-4">
@ -732,8 +728,6 @@ if (!empty($getlogpodtl)) {
</div> </div>
</div> </div>
<br><br><br> <br><br><br>
<div class="box-body" style="margin-top: -3%;"> <div class="box-body" style="margin-top: -3%;">
<table id="ImportTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;"> <table id="ImportTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">

View File

@ -1981,7 +1981,7 @@ if (!empty($INRSYMBOL)) {
</div> </div>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label>Revenue Type Options</label> <label>Revenue Type Options<span class="text-danger">*</span></label>
<div> <div>
<?php <?php
@ -2017,7 +2017,7 @@ if (!empty($INRSYMBOL)) {
?> ?>
</div> </div>
<div class="form-group col-md-3" id="otheroptiondiv" style="display:none;"> <div class="form-group col-md-3" id="otheroptiondiv" style="display:none;">
<label>Description of Payable Terms<span class="badge mandatory">*</span></label> <label>Description of Payable Terms</label>
<div> <div>
<?php <?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control'); $data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control');
@ -2047,7 +2047,7 @@ if (!empty($INRSYMBOL)) {
</div> </div>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label for="BudgetType">Budget Type</label> <label for="BudgetType">Budget Type<span class="badge mandatory">*</span></label>
<?php <?php
@ -2069,7 +2069,7 @@ if (!empty($INRSYMBOL)) {
<!-- Table --> <!-- Table -->
<div class="form-row"> <div class="form-row">
<div class="table-responsive"> <div class="table-responsive" style="padding-bottom: 30px;">
<table id="revenueTax" class="table table-striped table-hover mb-0" style="font-size:12px;"> <table id="revenueTax" class="table table-striped table-hover mb-0" style="font-size:12px;">
<thead> <thead>
<tr> <tr>
@ -2091,7 +2091,6 @@ if (!empty($INRSYMBOL)) {
</table> </table>
</div> </div>
</div> </div>
</br>
<!-- /.table --> <!-- /.table -->
<div class="form-row"> <div class="form-row">

View File

@ -946,7 +946,7 @@ if (!empty($INRSYMBOL)) {
</div> </div>
</div><!-- 6. form-row div closed here --> </div><!-- 6. form-row div closed here -->
<div class="form-row"> <div class="form-row">
<div class="table-responsive"> <div class="table-responsive" style="padding-bottom: 30px;">
<table id="serviceTax" class="table table-striped table-hover mb-0" style="font-size:12px;"> <table id="serviceTax" class="table table-striped table-hover mb-0" style="font-size:12px;">
<thead> <thead>
<tr> <tr>