Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme

This commit is contained in:
Smart 2024-09-19 17:59:24 +05:30
commit a1acecad41
10 changed files with 3608 additions and 3638 deletions

View File

@ -1085,7 +1085,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<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;">
<thead>
<tr>
@ -1437,7 +1437,9 @@ if (!empty($getlogpodtl)) {
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
</div> <input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
<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="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
@ -1461,11 +1463,15 @@ if (!empty($getlogpodtl)) {
</div>
<label>Request On : </label><?php if(isset($Reqon)){ echo $Reqon; } ?><br />
<?php if(isset($RequesterName)){ if ($RequesterName != '' || $RequesterName != null) { ?>
<label>Request On : </label><?php if (isset($Reqon)) {
echo $Reqon;
} ?><br />
<?php if (isset($RequesterName)) {
if ($RequesterName != '' || $RequesterName != null) { ?>
<label>Request By : </label><?php echo $RequesterName; ?><br />
<?php
}} ?>
}
} ?>
<!-- <label>Status : </label><?php echo $StatusName; ?> -->
<label>Status : </label><?php
$statusMappings = [
@ -1493,9 +1499,9 @@ if (!empty($getlogpodtl)) {
</div>
</div> <!-- container -->
</div> <!-- content -->
</div>
<!-- Model for servicepo -->
<div id="SERVICE" class="modal fade" tabindex="-1" role="dialog"
</div>
<!-- Model for servicepo -->
<div id="SERVICE" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content">
@ -1729,16 +1735,16 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<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>
</div>
</form>
</div>
</div>
</div>
<!-- Service Special PO Modal Starts Here -->
<div id="EditServiceSplPOModel" class="modal fade" tabindex="-1" role="dialog"
</div>
<!-- Service Special PO Modal Starts Here -->
<div id="EditServiceSplPOModel" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content">
@ -1769,11 +1775,11 @@ if (!empty($getlogpodtl)) {
</form>
</div>
</div>
</div><!-- /.modal -->
<!-- Service Special PO Modal Ends Here -->
</div><!-- /.modal -->
<!-- Service Special PO Modal Ends Here -->
<!-- Edit Service Modal content Starts Here-->
<div id="EDITSERVICE" class="modal fade" tabindex="-1" role="dialog"
<!-- Edit Service Modal content Starts Here-->
<div id="EDITSERVICE" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content">
@ -2033,10 +2039,10 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
<!-- Edit Service Modal content Ends Here-->
<!-- View Service Modal content Starts Here-->
<div id="VIEWSERVICE" class="modal fade" tabindex="-1" role="dialog"
</div>
<!-- Edit Service Modal content Ends Here-->
<!-- View Service Modal content Starts Here-->
<div id="VIEWSERVICE" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content">
@ -2313,13 +2319,13 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div><!-- /.modal -->
<!-- View Service Modal content Ends Here-->
</div><!-- /.modal -->
<!-- View Service Modal content Ends Here-->
<!-- <script type="text/html" id="ServiceList">
<!-- <script type="text/html" id="ServiceList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
<td align="left"><%=ReqNo%></td>
@ -2336,8 +2342,10 @@ if (!empty($getlogpodtl)) {
</td>
</tr>
</script> -->
<script>
var index = <?php if(isset($index)){ echo $index; } ?>;
<script>
var index = <?php if (isset($index)) {
echo $index;
} ?>;
var userid = '';
var SelectedMaterialCode = [];
var CollIndex = 0;
@ -2442,26 +2450,25 @@ if (!empty($getlogpodtl)) {
<td align="left">${Reqnumber}</td>
<td align="left">${materialCode}</td>
<td align="left">${materialName}</td>
<td align="left">${quantity}</td>
<td align="right">${quantity}</td>
<td align="left">${uom}</td>
<td align="left">${itemRate}</td>
<td align="left">${basicval}</td>
<td align="left">${TotalTaxValue}</td>
<td align="left">${TotalOrderValue}</td>
<td align="right">${itemRate}</td>
<td align="right">${basicval}</td>
<td align="right">${TotalTaxValue}</td>
<td align="right">${TotalOrderValue}</td>
<td>
<a data-target='#EDITSERVICE' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICE">
<i class="ri-pencil-fill" data-toggle="tooltip" ></i>
</a>
&nbsp;&nbsp;&nbsp;
<a href='#' onclick="DeleteRow(${temp})" class="link" data-id="${temp}" data-userid="${temp}" id="Del">
<span class="ri-delete-bin-7-fill"></span>
</a>
</td>
</tr>
`;
`;
// Append the generated HTML to your table body
$('#ServiceAppend').append(rowHtml);
// Append the generated HTML to your table body
$('#ServiceAppend').append(rowHtml);
@ -2495,6 +2502,9 @@ $('#ServiceAppend').append(rowHtml);
$('#txtRowCount').val(temp);
clearServiceModalFields();
setTimeout(() => {
$('#SERVICE').modal('hide');
}, 1000);
}
});
@ -2951,8 +2961,8 @@ $('#ServiceAppend').append(rowHtml);
}
//
</script>
<script>
</script>
<script>
function Save(status) {
if (status == '0') {
stat = '<?php echo PO_DRAFT; ?>';
@ -3009,20 +3019,21 @@ $('#ServiceAppend').append(rowHtml);
processData: false,
contentType: false,
success: function(data) {
if (data) {
// $('#content').loader('hide');
alert(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
$('#SpcialInstruction').val('');
$('#txtDeliveryAddress').val('')
window.location = "purchaseorderListing";
console.log(data);
// if (data) {
// // $('#content').loader('hide');
// alert(data);
// $('#txtRowCount').val('');
// $('#txtDeletedRow').val('');
// $('#txtStatus').val('');
// $('#SpcialInstruction').val('');
// $('#txtDeliveryAddress').val('')
// window.location = "purchaseorderListing";
} else {
// $('#content').loader('hide');
alert("Error");
}
// } else {
// // $('#content').loader('hide');
// alert("Error");
// }
}
@ -3420,7 +3431,8 @@ $('#ServiceAppend').append(rowHtml);
});
}
});});
});
});
$("#insuranceStatus").change(function() {
var InsNo = '<?php echo $InsuranceNumber; ?>';
@ -3501,9 +3513,9 @@ $('#ServiceAppend').append(rowHtml);
$('#imag').val('');
}
}
</script>
</script>
<script>
<script>
function fileupload(counter) {
var formData = new FormData();
var file = $("#images" + counter).prop('files')[0];
@ -3635,8 +3647,8 @@ $('#ServiceAppend').append(rowHtml);
$("#maint_filename" + number).val(name);
}
}
</script>
<script>
</script>
<script>
$('#IsOpenOrder').change(function() {
if (this.checked) {
$('#ServiceQuantity').val(0);
@ -3649,4 +3661,4 @@ $('#ServiceAppend').append(rowHtml);
}
});
</script>
</script>

View File

@ -36,6 +36,33 @@ if (!empty($INRSYMBOL)) {
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
<style>
.
.filemodal-dialog {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh; /* Ensures the modal is vertically centered */
min-width: 100%;
}
.filemodal-content {
width: 90%; /* Responsive width */
max-width: 950px; /* Maximum width */
max-height: 80vh; /* Ensures it doesn't overflow vertically */
overflow-y: auto; /* Enables scrolling inside the modal if content exceeds height */
}
.filemodal-body {
max-height: 60vh; /* Set a limit for the modal body */
overflow-y: auto; /* Make the body scrollable */
}
.txtSpcialInstruction{
background-color: #f4f9fb;
}
@ -2655,7 +2682,7 @@ if (!empty($INRSYMBOL)) {
</div>
<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">
<?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
@ -2763,7 +2790,7 @@ if (!empty($INRSYMBOL)) {
<!-- Modal for Packing Calculation -->
<div id="submitmodel" class="modal fade" data-backdrop-limit="1" role="dialog"
<div id="submitmodel" class="modal fade" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog">
@ -2773,7 +2800,7 @@ if (!empty($INRSYMBOL)) {
<h4 class="modal-title">Material has been Received<span id="WeightTitle"></span></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="modal-body " style="padding:0px; max-height: 400px; overflow-y: auto;">
<form>
<div class="modal-body p-4">
<div class="form-group row">
@ -2798,146 +2825,82 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
<div id="filemodel" class="modal fade" data-backdrop-limit="1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog">
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog filemodal-dialog">
<!-- Modal content-->
<div class="modal-content" style="width:950px;">
<div class="modal-content filemodal-content">
<div class="modal-header">
<h4 class="modal-title">Add Bill Details</h4>
</div>
<div class="modal-body" style="padding:0px;">
<!-- <div class="col-md-4 pad"><strong>Select Item Code</strong>
<select id="emergencyitemcode" name="emergencyitemcode" class = "form-control select2">
<!-- <option value="1"> select material code</option>
</select>
</div>-->
<div class="col-md-4 pad"><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12"
class="form-control" value="" required onkeypress="return isNumberKey(event)">
<div class="modal-body filemodal-body">
<form action="">
<div class="row">
<div class="col-md-10 m-2 "><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12" class="form-control" value="" required onkeypress="return isNumberKey(event)">
</div>
<div class="col-md-4 pad"><strong>Delivery Challan /Inv Date</strong>
<!-- <input type="Date" name="Date1" onkeypress="return onlyAlphabets(event);" maxlength="100" id="Date1" class="form-control" required value="2"> -->
<div class="col-md-10 m-2 "><strong>Delivery Challan /Inv Date</strong>
<?php
$data = array('name' => 'Date1', 'value' => set_value('Date1', $CurrentDate), 'id' => 'Date1', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
</div>
<div class="col-md-4 pad"> <strong>Material Received Date</strong>
<div class="col-md-10 m-2 "><strong>Material Received Date</strong>
<?php
$data = array('name' => 'MRC', 'value' => set_value('MRC', $CurrentDate), 'id' => 'MRC', 'class' => 'form-control num', 'required' => 'true');
echo form_input($data); ?>
</div>
<!-- <div class="col-md-4 pad"><strong>Advise Quantity</strong>
<input type="text" name="AQuantity" id="AQuantity" maxlength="12" class="form-control" value="" required>
</div> -->
<input type="hidden" id="tablevalues" value="sample" name="tablevalues" />
<input type="hidden" id="splrow" value="sample" name="splrow" />
<div class="col-md-4 pad"><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13"
class="form-control" value="" required>
<div class="col-md-10 m-2 "><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13" class="form-control" value="" required>
</div>
<div class="col-md-4 pad"><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12"
class="form-control" value="" required>
<div class="col-md-10 m-2 "><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12" class="form-control" value="" required>
</div>
<div class="col-md-4" id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="radio">
<label><input type="radio" name="Quality" checked="checked" value='0'
id="Quality">Yes</label>
<div class="col-md-10 m-2 " id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="radio m-2">
<label><input type="radio" name="Quality" checked="checked" value='0' id="Quality">Yes</label>
</div>
<div class="radio">
<div class="radio m-2">
<label><input type="radio" name="Quality" id="Quality" value='1'>No</label>
</div>
</div>
<!-- <div class="col-md-5">
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG,.jpg" id="imag" name="images" onChange="filecheck();"/>
<label for="images">Select file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
</div> -->
<div class="col-md-10">
<!-- <legend>Multiple File</legend> -->
<div class="col-md-offset-10 col-md-1">
<input type="button" class="btn btn-success" id="addmorebutton"
value=" + ADD FILES..">
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
</div>
<div id="newdiv"></div><!-- this div for add more section-->
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
<input type="hidden" name="hideconstant" id="hideconstant" value="0" />
</div>
</div>
<table id="specialtable" class="table table-hover table-bordered"
style="background-color:#fff;font-size:12px;">
<!--<thead>
<tr>
<th>MaterialCode1</th>
<th>DeliveryChallanDate</th>
<th>DeliveryChallanNo</th>
<th>VehicleNo</th>
<th>CourierNo</th>
<th>Quantity12</th>
<th>File</th>
</tr>
</thead>-->
<tbody id="specialappend">
</tbody>
</table>
<div class="modal-footer">
<div class="col-md-12 text-right">
<!-- <div class="col-md-4">
<a class="btn btn-success Add" onclick="addtable();"><span class="bold">Add table</span></a>
</div> -->
<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 ok" ID="ExciseOption12"
onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-cancel" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-success ok" ID="ExciseOption12" onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>
</div>
</form>
<!-- Add more fields if needed -->
</div>
<div class="modal-footer">
<div class="col-md-12 text-right">
</div>
</div>
</div>
</div>
</div>
<!-- </form> -->
</div>
<div id="servicemodel" class="modal fade" data-backdrop-limit="1" role="dialog"
aria-labelledby="myModalLabel">
@ -6875,6 +6838,7 @@ if (!empty($INRSYMBOL)) {
$('#OtherAmt' + userid).val(OtherAmt);
populateValueMainFormForEditServiceTax();
$('#EDITSERVICE').modal('hide');
} else {
console.log("in else part...");

View File

@ -541,7 +541,7 @@
?>
</div>
<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>
<?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
@ -4317,7 +4317,7 @@
return false;
} else {
$('#content').loader('show');
// $('#content').loader('show');
var formData = new FormData($('.CapitalPO')[0]);
formData.append('ExchangeRateOn', ExchangeRateOn);
formData.append('PaymentMethod', PaymentMethod);
@ -4332,7 +4332,7 @@
success: function(data) {
alert(data);
if (data) {
$('#content').loader('hide');
// $('#content').loader('hide');
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
@ -4344,7 +4344,7 @@
window.location = "purchaseorderListing";
} else {
$('#content').loader('hide');
// $('#content').loader('hide');
alert("Error");
}

View File

@ -429,7 +429,7 @@
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)
var dateStr = data[0];
var dateStr = data[1];
var dateParts = dateStr.split("-");
var rowDate = new Date(dateParts[2], dateParts[1] - 1, dateParts[0]);

View File

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

View File

@ -2136,20 +2136,20 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<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 == REQITEM_Emergency_PO_CREATED) { ?>
<input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1" <?php echo $isChecked ? 'checked' : ''; ?>> IS THIS OPEN ORDER FORMAT
<?php } ?>
<!-- <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 } ?>
</div>
</div>
<br>
<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;">
<thead>
@ -2262,7 +2262,7 @@ if (!empty($getlogpodtl)) {
}
?>
</tbody>
</table><br>
</table>
</div>
</div>
<div class="form-row">
@ -2482,7 +2482,8 @@ if (!empty($getlogpodtl)) {
<!--################################################################## -->
<?php if (!empty($update)) { ?>
<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;">
<thead style="background-color: #ddd;">
<tr>
@ -2539,7 +2540,7 @@ if (!empty($getlogpodtl)) {
?>
</tbody>
</table>
</div>
<!-- </div> -->
</div>
<?php } else {
} ?>
@ -4021,7 +4022,7 @@ if (!empty($getlogpodtl)) {
</a>
</td>
</tr>
`;
`;
$('#RevenueAppend').append(rowHtml);
@ -4062,9 +4063,9 @@ if (!empty($getlogpodtl)) {
addHidden(theForm, "per" + temp, PER);
addHidden(theForm, "service_description" + temp, service_description);
$('#txtRowCount').val(temp);
// $('#REVENUE').modal('hide');
populateValueMainFormForRevenue();
clearRevenueModalFields();
$('#REVENUE').modal('hide');
}
});
@ -4170,6 +4171,9 @@ if (!empty($getlogpodtl)) {
$('#service_description' + userid).val(Service_Description);
populateValueMainFormForEditRevenueTax();
setTimeout(() => {
$('#EDITREVENUE').modal('hide');
}, 1000);
}
});
@ -4887,19 +4891,19 @@ if (!empty($getlogpodtl)) {
processData: false,
contentType: false,
success: function(data) {
console.log(data);
// if (data) {
// alert(data);
// $('#txtRowCount').val('');
// $('#txtDeletedRow').val('');
// $('#txtStatus').val('');
// $('#SpcialInstruction').val('');
// $('#txtDeliveryAddress').val('')
// window.location = "purchaseorderListing";
// console.log(data);
if (data) {
alert(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
$('#SpcialInstruction').val('');
$('#txtDeliveryAddress').val('')
window.location = "purchaseorderListing";
// } else {
// alert("Error");
// }
} else {
alert("Error");
}
},
error: function(jqXHR, textStatus, errorThrown) {

View File

@ -565,7 +565,7 @@ if (!empty($getlogpodtl)) {
<label>Purchase Order Date</label>
<div >
<?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);
?> <input type="hidden" name="b4podate" id="b4podate" value="<?php echo $PODate; ?>">
</div>
@ -657,7 +657,7 @@ if (!empty($getlogpodtl)) {
</div>
<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 >
<?php
@ -714,10 +714,6 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-3">
</div>
</div>
<div class="form-row" align="right">
<div class="col-md-4">
@ -732,8 +728,6 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<br><br><br>
<div class="box-body" style="margin-top: -3%;">
<table id="ImportTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
@ -4327,7 +4321,7 @@ if (!empty($getlogpodtl)) {
</a>
</td>
</tr>
`;
`;
// Append the generated row HTML to the target element
$('#ImportAppend').append(rowHtml);

View File

@ -81,7 +81,17 @@ td {
.th-Sno{
text-align:center !important;
width:15%;
width:5%;
}
.th-uom{
text-align:center !important;
width:10%;
}
.th-status{
text-align:center !important;
width:10%;
}
</style>
@ -194,10 +204,10 @@ td {
<th class="th th-Sno" >SNo</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 th-uom">Uom</th>
<th class="th th-requestedQuantity">RequestedQuantity</th>
<th class="th th-PoQuantity">PoQuantity</th>
<th class="th">Status</th>
<th class="th th-status">Status</th>
<th class="th">Action</th>
</tr>
</thead>
@ -216,10 +226,10 @@ td {
<input type="hidden" name="<?php echo 'te' . $index ?>" id="<?php echo 'tes' . $index ?>" value="<?php echo $record->Quantity; ?>" />
<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="center"><?php echo $record->UOM; ?></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>
<td align="center"><?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>
<a data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-target='#edit-req-modal' data-toggle="modal" href="#edit-req-modal"><i class="ri-pencil-fill" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->MaterialCode; ?> Material details"></i>&nbsp;&nbsp;&nbsp;</a> <a onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $record->MaterialCode; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>

View File

@ -1981,7 +1981,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="form-group col-md-3">
<label>Revenue Type Options</label>
<label>Revenue Type Options<span class="text-danger">*</span></label>
<div>
<?php
@ -2017,7 +2017,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
<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>
<?php
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control');
@ -2047,7 +2047,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<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
@ -2069,7 +2069,7 @@ if (!empty($INRSYMBOL)) {
<!-- Table -->
<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;">
<thead>
<tr>
@ -2091,7 +2091,6 @@ if (!empty($INRSYMBOL)) {
</table>
</div>
</div>
</br>
<!-- /.table -->
<div class="form-row">

View File

@ -946,7 +946,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div><!-- 6. form-row div closed here -->
<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;">
<thead>
<tr>
@ -2337,7 +2337,7 @@ if (!empty($INRSYMBOL)) {
$('#Otherpayment').focus();
return false;
}else {
} else {
return true;
}
}