CHANGE_SANJEEV_ISSUE_TRACK_ISSUE_CLEAR_CONFLIT_MERGE
This commit is contained in:
commit
511e2e6eea
@ -372,7 +372,9 @@ class Emergencypurchaseorder extends BaseController
|
|||||||
// redirect('purchaseorder/PurchaseOrderList', 'refresh');
|
// redirect('purchaseorder/PurchaseOrderList', 'refresh');
|
||||||
// }
|
// }
|
||||||
if ($POStatus == REQ_DRAFT) {
|
if ($POStatus == REQ_DRAFT) {
|
||||||
|
echo "<script>alert('You Have Successfully Saved the Purchase order! $PONO');</script>";
|
||||||
$this->session->setFlashdata('success', 'You Have Successfully Saved the Purchase order! '.$PONO);
|
$this->session->setFlashdata('success', 'You Have Successfully Saved the Purchase order! '.$PONO);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->session->setFlashdata('success', 'You Have Successfully Created the Purchase order! '.$PONO);
|
$this->session->setFlashdata('success', 'You Have Successfully Created the Purchase order! '.$PONO);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,10 +83,13 @@ class Payslip extends BaseController
|
|||||||
{
|
{
|
||||||
$loan_id = $result->Loan_ID;
|
$loan_id = $result->Loan_ID;
|
||||||
|
|
||||||
|
if($result->Remaining_Due - 1 == 0){ $is_Active = 0; }else{ $is_Active = 1; }
|
||||||
|
|
||||||
$loan = [
|
$loan = [
|
||||||
'Paid_Due' => $result->Paid_Due + 1,
|
'Paid_Due' => $result->Paid_Due + 1,
|
||||||
'Remaining_Due' => $result->Remaining_Due - 1,
|
'Remaining_Due' => $result->Remaining_Due - 1,
|
||||||
'Paid_Amount' => $result->Paid_Amount + $result->Loan_Recovered,
|
'Paid_Amount' => $result->Paid_Amount + $result->Loan_Recovered,
|
||||||
|
'is_Active' => $is_Active
|
||||||
];
|
];
|
||||||
|
|
||||||
$loanHistory = [
|
$loanHistory = [
|
||||||
@ -130,11 +133,16 @@ class Payslip extends BaseController
|
|||||||
'ESINumber' => $result->ESINO,
|
'ESINumber' => $result->ESINO,
|
||||||
'UANNO' => $result->PFNO,
|
'UANNO' => $result->PFNO,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
// print_r($result);
|
// print_r($result);
|
||||||
// print_r($loan);
|
// print_r($loan);
|
||||||
// print_r($loanHistory);
|
// print_r($loanHistory);
|
||||||
// print_r($data);
|
// print_r($data);
|
||||||
// die;
|
// die;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$insert = $this->payroll_model->insertPayroll($data);
|
$insert = $this->payroll_model->insertPayroll($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
if(count($loan)){
|
if(count($loan)){
|
||||||
@ -703,7 +711,7 @@ class Payslip extends BaseController
|
|||||||
$data['pf'] = $pf;
|
$data['pf'] = $pf;
|
||||||
$data['over_time'] = $ot;
|
$data['over_time'] = $ot;
|
||||||
|
|
||||||
// dd($data);
|
|
||||||
$this->global['pageTitle'] = 'Payroll Monthly Inputs';
|
$this->global['pageTitle'] = 'Payroll Monthly Inputs';
|
||||||
$this->loadViews("monthlypayinputs", $this->global, $data, NULL);
|
$this->loadViews("monthlypayinputs", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3262,10 +3262,18 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
|
|
||||||
$("#EditMaterialCode").empty();
|
$("#EditMaterialCode").empty();
|
||||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
$("#EditMaterialCode").append($('<option></option>')
|
||||||
// For Binding Material list center for the selected Requistion Number
|
.val($('#materialCode' + userid).val())
|
||||||
|
.html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val())
|
||||||
|
.prop('selected', true)
|
||||||
|
);
|
||||||
|
// Make the select element read-only (disable it)
|
||||||
|
$("#EditMaterialCode").prop('disabled', true);
|
||||||
|
|
||||||
// $("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
|
||||||
|
|
||||||
|
// For Binding Material list center for the selected Requistion Number
|
||||||
|
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||||
|
|
||||||
var isAdded = "0";
|
var isAdded = "0";
|
||||||
for (i = 0; i < Material.length; i++) {
|
for (i = 0; i < Material.length; i++) {
|
||||||
@ -3302,6 +3310,11 @@ if (!empty($getlogpodtl)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#VIEWSERVICE").on("shown.bs.modal", function(e) {
|
$("#VIEWSERVICE").on("shown.bs.modal", function(e) {
|
||||||
|
|
||||||
userid = $(e.relatedTarget).data('userid');
|
userid = $(e.relatedTarget).data('userid');
|
||||||
|
|||||||
@ -36,12 +36,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Custom width for the modal */
|
/* Custom width for the modal */
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
width: 100%;
|
width: 100%; /* You can adjust this percentage to your needs */
|
||||||
/* You can adjust this percentage to your needs */
|
max-width: 1200px; /* Optional: This ensures the modal doesn't grow too large on large screens */
|
||||||
max-width: 1200px;
|
|
||||||
/* Optional: This ensures the modal doesn't grow too large on large screens */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure content inside the modal scales properly */
|
/* Ensure content inside the modal scales properly */
|
||||||
@ -49,6 +51,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal { overflow: auto !important; }
|
||||||
|
|
||||||
|
|
||||||
.txtSpcialInstruction{
|
.txtSpcialInstruction{
|
||||||
background-color: #f4f9fb;
|
background-color: #f4f9fb;
|
||||||
@ -397,9 +401,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
selValue = $("#PackagingType").val();
|
selValue = $("#PackagingType").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
var PackagingCalculation = '';
|
var PackagingCalculation = '';
|
||||||
$('#REVENUE').modal('hide');
|
//$('#REVENUE').modal('hide');
|
||||||
$('#packagingcalmodel').modal('show');
|
$('#packagingcalmodel').modal('show');
|
||||||
$('#txtPackaging').removeAttr('readonly', 'true');
|
$('#txtPackaging').removeAttr('readonly', 'true');
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (selValue == NilType) {
|
if (selValue == NilType) {
|
||||||
|
|
||||||
@ -466,17 +472,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
// selValue = $("#drpFreight").val() ;
|
// selValue = $("#drpFreight").val() ;
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#EditTripsValue').show();
|
$('#EditTripsValue').show();
|
||||||
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#EditNOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#txtEditFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#txtEditAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#EditTripsValue').hide();
|
$('#EditTripsValue').hide();
|
||||||
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#EditNOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#txtEditFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#txtEditAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
}
|
}
|
||||||
if (FreightType == PercentageType) {
|
if (FreightType == PercentageType) {
|
||||||
var freightCalculation = '';
|
var freightCalculation = '';
|
||||||
@ -502,23 +502,17 @@ if (!empty($INRSYMBOL)) {
|
|||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
|
|
||||||
$('#TripsValue').show();
|
$('#TripsValue').show();
|
||||||
$(this).parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#NOOfTrips').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#txtFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
$('#txtAfterFreight').parent().removeClass('col-md-3').addClass('col-md-2');
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$('#TripsValue').hide();
|
$('#TripsValue').hide();
|
||||||
$(this).parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#NOOfTrips').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#txtFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
$('#txtAfterFreight').parent().removeClass('col-md-2').addClass('col-md-3');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
selValue = $("#drpFreight").val();
|
selValue = $("#drpFreight").val();
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
var freightCalculation = '';
|
var freightCalculation = '';
|
||||||
$('#REVENUE').modal('hide');
|
// $('#REVENUE').modal('hide');
|
||||||
$('#freightmodel').modal('show');
|
$('#freightmodel').modal('show');
|
||||||
$('#txtFreight').removeAttr('readonly', 'true');
|
$('#txtFreight').removeAttr('readonly', 'true');
|
||||||
} else if (selValue == NilType) {
|
} else if (selValue == NilType) {
|
||||||
@ -1502,7 +1496,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$('#submitmodel').modal('hide');
|
$('#submitmodel').modal('hide');
|
||||||
if (submitoptionvalue == 0) {
|
if (submitoptionvalue == 0) {
|
||||||
|
|
||||||
///alert('normal SERVICE emergency');
|
// alert('normal SERVICE emergency');
|
||||||
$('#txtSpecialservice').val(0);
|
$('#txtSpecialservice').val(0);
|
||||||
Save(1)
|
Save(1)
|
||||||
} else {
|
} else {
|
||||||
@ -1557,13 +1551,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
function SetPackagingOption() {
|
function SetPackagingOption() {
|
||||||
PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
|
||||||
$('#packagingcalmodel').modal('hide');
|
$('#packagingcalmodel').modal('hide');
|
||||||
showmodel();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setfreightOption() {
|
function setfreightOption() {
|
||||||
freightCalculation = $("input:radio[name='optfreight']:checked").val();
|
freightCalculation = $("input:radio[name='optfreight']:checked").val();
|
||||||
$('#freightmodel').modal('hide');
|
$('#freightmodel').modal('hide');
|
||||||
showmodel();
|
|
||||||
}
|
}
|
||||||
/* Set the Packaging calculation option for calculating Packaging */
|
/* Set the Packaging calculation option for calculating Packaging */
|
||||||
function SetExciseCalculation() {
|
function SetExciseCalculation() {
|
||||||
@ -1951,7 +1945,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
$('#purpose').on('change', function () {
|
$('#purpose').on('change', function () {
|
||||||
console.log("purpose first");
|
|
||||||
|
|
||||||
$('#POType').val(this.value);
|
$('#POType').val(this.value);
|
||||||
if (this.value == 'REVENUE') //Revenue po
|
if (this.value == 'REVENUE') //Revenue po
|
||||||
@ -2017,16 +2011,15 @@ if (!empty($INRSYMBOL)) {
|
|||||||
console.log("purpose Second");
|
console.log("purpose Second");
|
||||||
|
|
||||||
// $('#purpose').change(function() {
|
// $('#purpose').change(function() {
|
||||||
console.log("1111111111111");
|
|
||||||
|
|
||||||
var input = '';
|
var input = '';
|
||||||
input = $("#purpose").val();
|
input = $("#purpose").val();
|
||||||
if (input == -1) {
|
if (input == -1) {
|
||||||
$("#POType").val('');
|
$("#POType").val('');
|
||||||
console.log("222222222222222222");
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log("333333333333333333");
|
|
||||||
|
|
||||||
$("#POType").val(input);
|
$("#POType").val(input);
|
||||||
// $('#content').loader('show');
|
// $('#content').loader('show');
|
||||||
@ -2037,12 +2030,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
url: "<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
console.log("4444444444444444");
|
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
console.log("55555555");
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
materialData = data;
|
materialData = data;
|
||||||
console.log("material Data");
|
console.log("material Data");
|
||||||
|
|
||||||
@ -2058,7 +2048,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
} else if (input == 'REVENUE') {
|
} else if (input == 'REVENUE') {
|
||||||
console.log("777777777777777");
|
|
||||||
|
|
||||||
$('#MaterialCode').empty();
|
$('#MaterialCode').empty();
|
||||||
$("#MaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
$("#MaterialCode").append($('<option></option>').val("0").html("Select Item Code"));
|
||||||
@ -2102,7 +2092,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
$("#AvalBuget").val(data ? parseFloat(data).toFixed(2) : 0);
|
||||||
} else {
|
} else {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
alert("Error");
|
//alert("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2586,7 +2576,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label>Purchase Order Date</label>
|
<label>Purchase Order Date</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$formattedDate = $dt->format('Y-m-d');
|
|
||||||
|
$poDt=new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
|
$formattedDate = $poDt->format('Y-m-d');
|
||||||
$data = array('type' => 'date', 'name' => 'PODate', 'value' => set_value('PODate', $formattedDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
|
$data = array('type' => 'date', 'name' => 'PODate', 'value' => set_value('PODate', $formattedDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
@ -2677,7 +2669,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</label>
|
<label>Description of Payable Terms<span class="badge mandatory">*</span></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');
|
||||||
@ -2826,13 +2818,9 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array(
|
$data = array('name' => 'txtBasicValue',
|
||||||
'name' => 'txtBasicValue',
|
'value' => set_value('txtBasicValue'), 'id' => 'txtBasicValue',
|
||||||
'value' => set_value('txtBasicValue'),
|
'class' => 'form-control num', 'readonly' => 'true');
|
||||||
'id' => 'txtBasicValue',
|
|
||||||
'class' => 'form-control num',
|
|
||||||
'readonly' => 'true'
|
|
||||||
);
|
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -2904,7 +2892,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('PackagingType', $options, set_value('PackagingType'), 'id="PackagingType"', 'class="form-control "');
|
echo form_dropdown('PackagingType', $options, set_value('PackagingType'), 'id="PackagingType" data-id="addRevenue"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -2935,38 +2923,53 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="col-md-3"></div>
|
<div class="col-md-3"></div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Type <span class="badge mandatory"></label>
|
<label>Freight Type <span class="badge mandatory"></label>
|
||||||
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
|
//print_r( $options);
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID):
|
foreach ($FreightType as $SID):
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
|
echo form_dropdown('drpFreight', $options, set_value('drpFreight'), 'id="drpFreight"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3" id="TripsValue" style="display:none;">
|
<div class="col-md-3" id="TripsValue" style="display:none;">
|
||||||
<label>NO Of Trips<span class="badge mandatory"></label>
|
<label>NO Of Trips<span class="badge mandatory"></label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
$data = array('name' => 'NOOfTrips', 'value' => set_value('NOOfTrips'), 'id' => 'NOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Rate <span class="badge mandatory"></label>
|
<label>Freight Rate <span class="badge mandatory"></label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);change();');
|
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);change();');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
$data = array('name' => 'txtAfterFreight', 'value' => set_value('txtAfterFreight'), 'id' => 'txtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6"></div>
|
<div class="col-md-6"></div>
|
||||||
@ -3071,7 +3074,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<label><?php echo "Revenue Description"; ?></label>
|
<label><?php echo "Revenue Description"; ?></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Add_Service_Description', 'value' => set_value('Add_Service_Description'), 'id' => 'Add_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
$data = array('name' => 'Add_Service_Description', 'value' => set_value('Add_Service_Description'), 'id' => 'Add_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||||
echo form_textarea($data);;
|
echo form_textarea($data);
|
||||||
|
;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -3111,7 +3115,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<h4>Add Service Purchase Order Item </h4>
|
<h4>Add Service Purchase Order Item </h4>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
<div align="left" style="padding: 31px;">
|
<div style="padding: 31px;">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
@ -4597,6 +4601,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- modal div -->
|
||||||
|
<!-- modal div -->
|
||||||
|
<!-- modal div -->
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
|
|
||||||
@ -4604,7 +4615,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
|
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
|
||||||
style="display: none;">
|
style="display: none;">
|
||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content"
|
||||||
|
>
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Packing Calculation On <span id="WeightTitle"></span></h4>
|
<h4 class="modal-title">Packing Calculation On <span id="WeightTitle"></span></h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
@ -4623,8 +4635,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
<button type="button" class="btn btn-secondary waves-effect"
|
<button type="button" class="btn btn-secondary waves-effect"
|
||||||
onclick="
|
onclick="
|
||||||
$('#packagingcalmodel').modal('hide');
|
$('#packagingcalmodel').modal('hide');"
|
||||||
showmodel();"
|
|
||||||
|
|
||||||
value="Cancel">Cancel</button>
|
value="Cancel">Cancel</button>
|
||||||
<button type="button" class="btn btn-info waves-effect waves-light"
|
<button type="button" class="btn btn-info waves-effect waves-light"
|
||||||
@ -4846,13 +4857,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a class="btn btn-danger" data-dismiss="modal"
|
<a class="btn btn-danger" data-dismiss="modal"
|
||||||
onclick="
|
|
||||||
$('#freightmodel').modal('hide');
|
|
||||||
showmodel()"
|
|
||||||
value="Cancel">Cancel</a>
|
value="Cancel">Cancel</a>
|
||||||
<a class="btn btn-success" ID="freightOption"
|
<a class="btn btn-success" ID="freightOption"
|
||||||
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
|
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
|
||||||
onclick="setfreightOption();"><span class="bold">Ok</span></a>
|
onclick="setfreightOption();"
|
||||||
|
><span class="bold">Ok</span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -5304,15 +5313,16 @@ if (!empty($INRSYMBOL)) {
|
|||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
<!-- Modal content-->
|
||||||
<form>
|
<form>
|
||||||
<div class="modal-content" style="width:1000px;">
|
<div class="modal-content" style="width:1200px;">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<center>
|
<center>
|
||||||
<h4>Edit Revenue Purchase Order Line Item </h4>
|
<h4>Edit Revenue Purchase Order Line Item </h4>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body p-4">
|
<div class="modal-body p-4">
|
||||||
|
<!-- first row -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<label>Req No<span class="badge mandatory">*</span></label>
|
<label>Req No<span class="badge mandatory">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
@ -5323,7 +5333,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<label>Department Name</label>
|
<label>Department Name</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5332,7 +5342,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<label>Cost Center Code</label>
|
<label>Cost Center Code</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5341,6 +5351,11 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<!-- empty div for spacing needed -->
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3" style="display:none;">
|
<div class="col-md-3" style="display:none;">
|
||||||
<label>Avl Bud Amt <?php echo "($INRSYM)" ?></label>
|
<label>Avl Bud Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -5352,8 +5367,10 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- second-row -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Item Code<span class="badge mandatory">*</span></label>
|
<label>Item Code<span class="badge mandatory">*</span></label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
@ -5365,7 +5382,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Item Name</label>
|
<label>Item Name</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5374,7 +5391,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-3">
|
||||||
<label>UOM</label>
|
<label>UOM</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5383,7 +5400,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" style="padding-right:0px;">
|
<div class="col-md-3" style="padding-right:0px;">
|
||||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5392,7 +5409,18 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" style="padding-right: 0px;">
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- third row -->
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3" style="padding-right: 0px;">
|
||||||
<label><?php echo "Rate ($INRSYM)"; ?><span
|
<label><?php echo "Rate ($INRSYM)"; ?><span
|
||||||
class="badge mandatory">*</span></label>
|
class="badge mandatory">*</span></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -5402,12 +5430,14 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
|
||||||
|
<div class="col-md-3">
|
||||||
<label>Per</label> <?php
|
<label>Per</label> <?php
|
||||||
$data = array('name' => 'editrevenueEmergPer', 'value' => set_value('editrevenueEmergPer'), 'id' => 'editrevenueEmergPer', 'class' => 'form-control');
|
$data = array('name' => 'editrevenueEmergPer', 'value' => set_value('editrevenueEmergPer'), 'id' => 'editrevenueEmergPer', 'class' => 'form-control');
|
||||||
echo form_input($data); ?>
|
echo form_input($data); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" style="padding: 0px;">
|
|
||||||
|
<div class="col-md-3" style="padding: 0px;">
|
||||||
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5416,10 +5446,15 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- fourth row -->
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4"></div>
|
<div class="col-md-3"></div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<label>Discount Type </label>
|
<label>Discount Type </label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
@ -5440,7 +5475,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Discount Rate </label>
|
<label>Discount Rate </label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5449,7 +5484,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Discounted Amt <?php echo "($INRSYM)" ?> </label>
|
<label>Discounted Amt <?php echo "($INRSYM)" ?> </label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5459,9 +5494,13 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- discount row -->
|
||||||
|
|
||||||
<div class="row" style="text-align:left;">
|
<div class="row" style="text-align:left;">
|
||||||
<div class="col-md-4"></div>
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-3"></div>
|
||||||
|
<div class="col-md-3">
|
||||||
<label>Packaging Type </label>
|
<label>Packaging Type </label>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
@ -5477,12 +5516,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('EditPackagingType', $options, set_value('EditPackagingType'), 'id="EditPackagingType"', 'class="form-control "');
|
echo form_dropdown('EditPackagingType', $options, set_value('EditPackagingType'), 'id="EditPackagingType" data-id="editRevenue" ', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Packaging Rate </label>
|
<label>Packaging Rate </label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5491,7 +5530,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>Packaging Amt <?php echo "($INRSYM)" ?> </label>
|
<label>Packaging Amt <?php echo "($INRSYM)" ?> </label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5501,51 +5540,67 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- package -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4"></div>
|
<div class="col-md-3"></div>
|
||||||
<div class="col-md-4">
|
|
||||||
|
<div class="col-md-3">
|
||||||
<label>Freight Type </label>
|
<label>Freight Type </label>
|
||||||
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$options = array("0" => 'Select Freight Type');
|
$options = array("0" => 'Select Freight Type');
|
||||||
|
//print_r( $options);
|
||||||
|
|
||||||
if (!empty($FreightType)) {
|
if (!empty($FreightType)) {
|
||||||
foreach ($FreightType as $SID):
|
foreach ($FreightType as $SID):
|
||||||
|
|
||||||
|
|
||||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
|
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" id="EditTripsValue" style="display:none;">
|
</div>
|
||||||
|
<div class="col-md-3" id="EditTripsValue" style="display:none;">
|
||||||
<label>NO Of Trips</label>
|
<label>NO Of Trips</label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
<label>Freight Rate </label>
|
<label>Freight Rate </label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Editchange();', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
<label>Freight Amt <?php echo "($INRSYM)" ?></label>
|
||||||
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- freight -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-6">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>CGST in %</label>
|
<label>CGST in %</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5554,7 +5609,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>CGST Amt <?php echo "($INRSYM)" ?></label>
|
<label>CGST Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5564,10 +5619,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- CGST -->
|
||||||
<div class="row" id="SGSTEditModel">
|
<div class="row" id="SGSTEditModel">
|
||||||
<div class="col-md-8">
|
<div class="col-md-6">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>SGST in %</label>
|
<label>SGST in %</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5576,7 +5633,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>SGST Amt <?php echo "($INRSYM)" ?></label>
|
<label>SGST Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5586,10 +5643,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- IGST -->
|
||||||
<div class="row" id="IGSTEditModel">
|
<div class="row" id="IGSTEditModel">
|
||||||
<div class="col-md-8">
|
<div class="col-md-6">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>IGST in %</label>
|
<label>IGST in %</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5598,7 +5657,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label>IGST Amt <?php echo "($INRSYM)" ?></label>
|
<label>IGST Amt <?php echo "($INRSYM)" ?></label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5608,10 +5667,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- insurance amount -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-9">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<label> Insurance Amt <?php echo "($INRSYM)" ?> (if Any)</label>
|
<label> Insurance Amt <?php echo "($INRSYM)" ?> (if Any)</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
@ -5621,10 +5682,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- total order amount -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-9">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><?php echo "Total Order Amt ($INRSYM)"; ?></label>
|
<label><?php echo "Total Order Amt ($INRSYM)"; ?></label>
|
||||||
<?php
|
<?php
|
||||||
@ -5634,15 +5697,19 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- revenue description -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<label><?php echo "Revenue Description"; ?></label>
|
<label><?php echo "Revenue Description"; ?></label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||||
echo form_textarea($data);;
|
echo form_textarea($data);
|
||||||
|
;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="hiddenRevenueuserid" name="hiddenRevenueuserid" />
|
<input type="hidden" id="hiddenRevenueuserid" name="hiddenRevenueuserid" />
|
||||||
|
|
||||||
@ -5655,8 +5722,17 @@ if (!empty($INRSYMBOL)) {
|
|||||||
class="bold">Edit Revenue</span></a>
|
class="bold">Edit Revenue</span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -5665,12 +5741,12 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -5984,7 +6060,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
alert(data);
|
// alert(data);
|
||||||
//$('#txtRowCount').val('');
|
//$('#txtRowCount').val('');
|
||||||
//$('#txtDeletedRow').val('');
|
//$('#txtDeletedRow').val('');
|
||||||
|
|
||||||
@ -6022,27 +6098,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Initialize the DataTable
|
// Initialize the DataTable
|
||||||
var table = $('#serviceTax').DataTable({
|
|
||||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
|
||||||
buttons: [
|
|
||||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
|
||||||
],
|
|
||||||
pageLength: 10, // Default rows per page
|
|
||||||
lengthMenu: [
|
|
||||||
[10, 20, 30, 50, -1],
|
|
||||||
[10, 20, 30, 50, "All"]
|
|
||||||
], // Rows per page options
|
|
||||||
responsive: true, // Responsive table
|
|
||||||
order: [
|
|
||||||
[0, 'desc']
|
|
||||||
], // Default ordering (column index 0, descending)
|
|
||||||
language: {
|
|
||||||
paginate: {
|
|
||||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
|
||||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
||||||
|
|
||||||
@ -7037,8 +7093,10 @@ if (!empty($INRSYMBOL)) {
|
|||||||
success: function (data) {
|
success: function (data) {
|
||||||
// Handle the server response
|
// Handle the server response
|
||||||
// $('#content').loader('hide');
|
// $('#content').loader('hide');
|
||||||
|
if(data){
|
||||||
alert(data);
|
alert(data);
|
||||||
console.log(data);
|
}
|
||||||
|
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
$('#SpcialInstruction').val('');
|
$('#SpcialInstruction').val('');
|
||||||
@ -7481,6 +7539,8 @@ if (!empty($INRSYMBOL)) {
|
|||||||
populateValueMainFormForEditRevenueTax();
|
populateValueMainFormForEditRevenueTax();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#EDITREVENUE').modal('hide');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function validateAddRevenueTax() {
|
function validateAddRevenueTax() {
|
||||||
@ -8564,3 +8624,45 @@ if (!empty($INRSYMBOL)) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#packagingcalmodel').on('show.bs.modal', function () {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#packagingcalmodel').on('hidden.bs.modal', function () {
|
||||||
|
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// When the second modal is about to be shown
|
||||||
|
$('#freightmodel').on('show.bs.modal', function () {
|
||||||
|
// Set a higher z-index for the second modal to appear on top
|
||||||
|
$('#freightmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||||
|
// Ensure the second modal backdrop appears above the first one
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').last().css('z-index', 1055);
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Reset z-index when the second modal is hidden (optional)
|
||||||
|
$('#freightmodel').on('hidden.bs.modal', function () {
|
||||||
|
$('#freightmodel').css('z-index', ''); // Reset to default
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
@ -246,17 +246,30 @@ if (!empty($emppay)) {
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<span for="Basic_Pay">Paid Amount</span>
|
<span for="Basic_Pay">Paid Amount</span>
|
||||||
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" pattern="([0-9]{1,7}([.][0-9]{1,2})?)" title="Minimum 1 digit,Maximum 2 Digit" readonly>
|
<input type="text" class="form-control requried num" id="Paid_Amount" name="Paid_Amount" value="<?php echo $Paid_Amount; ?>" readonly>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<div class="form-group">
|
||||||
|
<span for="">Paid Due</span>
|
||||||
|
<input type="text" class="form-control requried num" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>" readonly>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>">
|
</div>
|
||||||
<input type="hidden" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>">
|
<div class="col-md-3">
|
||||||
|
<div class="form-group">
|
||||||
|
<span for="">Remaining Due</span>
|
||||||
|
<input type="text" class="form-control requried num" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>" readonly>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <input type="hidden" id="remaining_due" name="remaining_due" value="<?php echo $Remaining_Due; ?>">
|
||||||
|
<input type="hidden" id="paid_due" name="paid_due" value="<?php echo $Paid_Due; ?>"> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
<input type="button" class="btn btn-success" value="Delete" id="deleteemp" style="background-color:red ;color: white; margin-right: 15px;width: 80px;border:none;" />
|
<input type="button" class="btn btn-success" value="Delete" id="deleteemp" style="background-color:#ee4d4d;color:white;margin-right:15px;width:80px;border:none;" />
|
||||||
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
|
<input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -308,27 +321,7 @@ if (!empty($emppay)) {
|
|||||||
</div> <!-- content -->
|
</div> <!-- content -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function calculateBasic()
|
|
||||||
|
|
||||||
{
|
|
||||||
var Totalsalary = document.getElementById('Total_Salary').value;;
|
|
||||||
var HRA = document.getElementById('HRA_Rate').value;
|
|
||||||
if (HRA == '') {
|
|
||||||
alert("Please Enter HRA RATE..");
|
|
||||||
document.getElementById('HRA_Rate').focus();
|
|
||||||
} else if (Totalsalary == '') {
|
|
||||||
alert("Please Enter Total Salary..");
|
|
||||||
document.getElementById('Total_Salary').focus();
|
|
||||||
} else {
|
|
||||||
var temp = (Totalsalary * (HRA / 100));
|
|
||||||
var basic = Totalsalary - temp;
|
|
||||||
document.getElementById('Basic_Pay').value = basic;
|
|
||||||
document.getElementById('HRA_Amount').value = temp;
|
|
||||||
}
|
|
||||||
//alert(basic);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -351,14 +344,13 @@ if (!empty($emppay)) {
|
|||||||
} else {
|
} else {
|
||||||
document.getElementById('no_of_due').value = Math.ceil(totaldue);
|
document.getElementById('no_of_due').value = Math.ceil(totaldue);
|
||||||
var noofdues = document.getElementById('no_of_due').value;
|
var noofdues = document.getElementById('no_of_due').value;
|
||||||
$('#remaining_due').val(noofdues);
|
$('#remaining_due').val(noofdues - $('#paid_due').val());
|
||||||
$('#Paid_Amount').val("0.00");
|
// $('#Paid_Amount').val("0.00");
|
||||||
$('#paid_due').val(0);
|
// $('#paid_due').val(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} //else if(loan == "" || loan == 0)
|
}
|
||||||
//alert(totaldue);
|
|
||||||
|
|
||||||
dateCalulation();
|
dateCalulation();
|
||||||
|
|
||||||
@ -366,7 +358,7 @@ if (!empty($emppay)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dateCalulation() {
|
function dateCalulation() {
|
||||||
//alert('j');
|
|
||||||
var loanamount = document.getElementById('Loan_Amount').value;
|
var loanamount = document.getElementById('Loan_Amount').value;
|
||||||
if (loanamount == 0.00 || loanamount == "") {
|
if (loanamount == 0.00 || loanamount == "") {
|
||||||
$('#loan_issued_date').val("");
|
$('#loan_issued_date').val("");
|
||||||
@ -377,16 +369,11 @@ if (!empty($emppay)) {
|
|||||||
$('#Loan_Amount').val("0.00");
|
$('#Loan_Amount').val("0.00");
|
||||||
$('#paid_due').val(0);
|
$('#paid_due').val(0);
|
||||||
$('#Paid_Amount').val("0.00");
|
$('#Paid_Amount').val("0.00");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function finalCheck() {
|
function finalCheck() {
|
||||||
//alert("final check");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var loanamount = document.getElementById('Loan_Amount').value;
|
var loanamount = document.getElementById('Loan_Amount').value;
|
||||||
if (loanamount != "" && loanamount != 0.00) {
|
if (loanamount != "" && loanamount != 0.00) {
|
||||||
@ -413,9 +400,10 @@ if (!empty($emppay)) {
|
|||||||
echo $emppay[0]->Loan_ID;
|
echo $emppay[0]->Loan_ID;
|
||||||
} ?>";
|
} ?>";
|
||||||
var i = confirm("Do You want to delete " + loanid + " from Loan Master?");
|
var i = confirm("Do You want to delete " + loanid + " from Loan Master?");
|
||||||
// alert(i);s
|
|
||||||
if (i) {
|
if (i) {
|
||||||
// $('#content').loader('show');
|
|
||||||
|
$('#loader').show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data: {
|
data: {
|
||||||
id: loanid
|
id: loanid
|
||||||
@ -426,7 +414,7 @@ if (!empty($emppay)) {
|
|||||||
if (result) {
|
if (result) {
|
||||||
|
|
||||||
alert(result);
|
alert(result);
|
||||||
// $('#content').loader('hide');
|
$('#loader').hide();
|
||||||
window.location.href = "<?php echo base_url(); ?>emppayListings";
|
window.location.href = "<?php echo base_url(); ?>emppayListings";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,20 +1,16 @@
|
|||||||
<?php
|
|
||||||
// $sample = array_merge($month, $fresh);
|
|
||||||
// $show_hide_column_value = true;
|
|
||||||
// echo '<pre>';
|
|
||||||
// print_r($month);
|
|
||||||
// print_r($fresh);
|
|
||||||
// print_r($sample);
|
|
||||||
// echo '<pre>';
|
|
||||||
|
|
||||||
// foreach ($sample as $s) {
|
<style>
|
||||||
// if (!empty($s->Key)) {
|
.celda_encabezado_general {
|
||||||
// $show_hide_column_value = false;
|
background-color: #00a65a;
|
||||||
// } else {
|
border: 1px solid #ccc;
|
||||||
// $show_hide_column_value = true;
|
color: #ffffff;
|
||||||
// }
|
font-weight: bold;
|
||||||
// break;
|
padding: 2px 4px;
|
||||||
// }
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
|
||||||
$sample = $fresh;
|
$sample = $fresh;
|
||||||
|
|
||||||
$ex = explode('-', $dropdownvalue);
|
$ex = explode('-', $dropdownvalue);
|
||||||
@ -173,42 +169,35 @@
|
|||||||
|
|
||||||
<div style="overflow-x:scroll;">
|
<div style="overflow-x:scroll;">
|
||||||
<table id="monthlylistings" class="table table-bordered table-hover"
|
<table id="monthlylistings" class="table table-bordered table-hover"
|
||||||
style="background-color:#fff;font-size:12px">
|
style="background-color:#fff;font-size:12px;white-space: nowrap;">
|
||||||
<thead style="background-color: #ddd;">
|
<thead style="background-color: #ddd;">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>S.No</th>
|
<th class="celda_encabezado_general">S.No</th>
|
||||||
<th>Emp ID </th>
|
<th class="celda_encabezado_general">Emp ID </th>
|
||||||
<th>Employee </th>
|
<th class="celda_encabezado_general">Employee </th>
|
||||||
<th>DOJ</th>
|
<th class="celda_encabezado_general">DOJ</th>
|
||||||
<th>Designation</th>
|
<th class="celda_encabezado_general">Designation</th>
|
||||||
<th>Total Days</th>
|
<th class="celda_encabezado_general">Total Days</th>
|
||||||
<th>Days Worked</th>
|
<th class="celda_encabezado_general">Days Worked</th>
|
||||||
<th>LOP Days</th>
|
<th class="celda_encabezado_general">LOP Days</th>
|
||||||
<th>Paid Leave</th>
|
<th class="celda_encabezado_general">Paid Leave</th>
|
||||||
<th>OT Hrs</th>
|
<th class="celda_encabezado_general">OT Hrs</th>
|
||||||
|
<th class="celda_encabezado_general">Total Salary</th>
|
||||||
<th>Basic Salary</th>
|
<th class="celda_encabezado_general">Per Day Salary</th>
|
||||||
<th>Pre Day Salary</th>
|
<th class="celda_encabezado_general">Worked Salary</th>
|
||||||
<th>Worked Salary</th>
|
<th class="celda_encabezado_general">Per hr Salary</th>
|
||||||
<th>Pre hr Salary</th>
|
<th class="celda_encabezado_general">Earned Salary</th>
|
||||||
<th>Earned Salary</th>
|
<th class="celda_encabezado_general">Basic Salary(0.7)</th>
|
||||||
<th>Basic Salary(0.7)</th>
|
<th class="celda_encabezado_general">HRA Salary(0.3)</th>
|
||||||
<th>HRA Salary(0.3)</th>
|
<th class="celda_encabezado_general">Gross Salary</th>
|
||||||
<th>Gross Salary</th>
|
<th class="celda_encabezado_general">ESI</th>
|
||||||
<th>ESI</th>
|
<th class="celda_encabezado_general">PF</th>
|
||||||
<th>PF</th>
|
<th class="celda_encabezado_general">Over Time</th>
|
||||||
<th>Over Time</th>
|
<th class="celda_encabezado_general">Auto Loan Due ₹</th>
|
||||||
|
<th class="celda_encabezado_general">TDS Deductions in ₹</th>
|
||||||
|
<th class="celda_encabezado_general">Festival Bonus in ₹</th>
|
||||||
|
<th class="celda_encabezado_general">Estimate in ₹</th>
|
||||||
<th>Auto Loan Due ₹</th>
|
|
||||||
|
|
||||||
|
|
||||||
<th>TDS Deductions in ₹</th>
|
|
||||||
<th>Festival Bonus in ₹</th>
|
|
||||||
|
|
||||||
<th>Estimate in ₹</th>
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -237,63 +226,72 @@
|
|||||||
<td style="text-align:right;" style="background-color:blue;">
|
<td style="text-align:right;" style="background-color:blue;">
|
||||||
<?php echo $index; ?></td>
|
<?php echo $index; ?></td>
|
||||||
<td style="max-width:80px"><?php echo $record->EmpID; ?></td>
|
<td style="max-width:80px"><?php echo $record->EmpID; ?></td>
|
||||||
<td style="max-width:80px"><?php echo $record->FirstName; ?></td>
|
<td <?php if($record->is_management_team == 1){ ?> style="max-width:150px;background-color: #d8d8ea;" <?php }else{ ?> style="max-width:150px;" <?php } ?> >
|
||||||
<td style="max-width:80px">
|
<?php echo $record->FirstName; ?>
|
||||||
|
</td>
|
||||||
|
<td style="max-width: 100px;">
|
||||||
<?php
|
<?php
|
||||||
echo $record->DateofJoining;
|
$date = DateTime::createFromFormat('Y-m-d H:i:s', $record->DateofJoining);
|
||||||
// $date = DateTime::createFromFormat('Y-m-d H:i:s', $record->DateofJoining);
|
$newDateFormat = $date->format('d-m-Y');
|
||||||
// $newDateFormat = $date->format('d-m-Y');
|
echo $newDateFormat;
|
||||||
// echo $newDateFormat;
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px"><?php echo $record->Designation; ?></td>
|
|
||||||
<td style="max-width:80px"><?php echo $record->NoofDays; ?></td>
|
<td style="max-width: 150px;overflow: hidden;text-overflow: ellipsis;">
|
||||||
|
<?php echo $record->Designation; ?>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td style="max-width:80px;text-align:center;"><?php echo $record->NoofDays; ?></td>
|
||||||
|
|
||||||
<td id="dayWork<?php echo $index ?>"
|
<td id="dayWork<?php echo $index ?>"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->Days_worked)) {
|
<?php if (!empty($record->Days_worked)) {
|
||||||
echo $record->Days_worked + $record->sunday_count;
|
echo $record->Days_worked + $record->sunday_count;
|
||||||
} else {
|
} else {
|
||||||
echo "0.00";
|
echo "0.00";
|
||||||
} ?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="lopDay<?php echo $index ?>"
|
<td id="lopDay<?php echo $index ?>"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->LOP_Days)) {
|
<?php if (!empty($record->LOP_Days)) {
|
||||||
echo $record->LOP_Days;
|
echo $record->LOP_Days;
|
||||||
} else {
|
} else {
|
||||||
echo "0.00";
|
echo "0.00";
|
||||||
} ?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="paidLeave<?php echo $index ?>"
|
<td id="paidLeave<?php echo $index ?>"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->Paid_leave)) {
|
<?php if (!empty($record->Paid_leave)) {
|
||||||
echo number_format($record->Paid_leave, 2, '.', '');
|
echo number_format($record->Paid_leave, 2, '.', '');
|
||||||
} else {
|
} else {
|
||||||
echo number_format(0.00, 2, '.', '');
|
echo number_format(0.00, 2, '.', '');
|
||||||
} ?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="otHrsWork<?php echo $index ?>"
|
<td id="otHrsWork<?php echo $index ?>"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:center;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:center;" <?php } ?>>
|
||||||
<?php if (!empty($record->OT_Hrs_Worked)) {
|
<?php if (!empty($record->OT_Hrs_Worked)) {
|
||||||
echo $record->OT_Hrs_Worked;
|
echo $record->OT_Hrs_Worked;
|
||||||
} else {
|
} else {
|
||||||
@ -301,60 +299,47 @@
|
|||||||
} ?>
|
} ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="max-width:80px"><?php echo $record->TotalSalary; ?></td>
|
<td style="max-width:80px;text-align:right;"><?php echo $record->TotalSalary; ?></td>
|
||||||
<td style="max-width:80px">
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $perDaySalary = $record->TotalSalary / $record->NoofDays;
|
<?php $perDaySalary = $record->TotalSalary / $record->NoofDays;
|
||||||
echo number_format($perDaySalary, 2, '.', ''); ?>
|
echo number_format($perDaySalary, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px">
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $workedSalary = $perDaySalary * ($record->Days_worked + $record->sunday_count);
|
<?php $workedSalary = $perDaySalary * ($record->Days_worked + $record->sunday_count);
|
||||||
echo number_format($workedSalary, 2, '.', ''); ?>
|
echo number_format($workedSalary, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px">
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $perHrSalary = $perDaySalary / 8;
|
<?php $perHrSalary = $perDaySalary / 8;
|
||||||
echo number_format($perHrSalary, 2); ?>
|
echo number_format($perHrSalary, 2); ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
|
||||||
<td style="max-width:80px">
|
<td style="max-width:80px;text-align:right;"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
||||||
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $basicWorked = $workedSalary * 70 / 100;
|
<?php $basicWorked = $workedSalary * 70 / 100;
|
||||||
echo number_format($basicWorked, 2, '.', ''); ?>
|
echo number_format($basicWorked, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px">
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
<?php $hraWorked = $workedSalary * 30 / 100;
|
<?php $hraWorked = $workedSalary * 30 / 100;
|
||||||
echo number_format($hraWorked, 2, '.', ''); ?>
|
echo number_format($hraWorked, 2, '.', ''); ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="max-width:80px">
|
|
||||||
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?></td>
|
|
||||||
<td id="esiAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $esi[$i]; ?> </td>
|
|
||||||
<td id="pfAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $pf[$i]; ?> </td>
|
|
||||||
<td style="max-width:80px"> <?php echo $over_time[$i]; ?> </td>
|
|
||||||
|
|
||||||
|
<td style="max-width:80px;text-align:right;">
|
||||||
|
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td id="esiAmt<?php echo $index ?>" style="max-width:80px;text-align:right;"> <?php echo $esi[$i]; ?> </td>
|
||||||
|
|
||||||
|
<td id="pfAmt<?php echo $index ?>" style="max-width:80px;text-align:right;"> <?php echo $pf[$i]; ?> </td>
|
||||||
|
|
||||||
|
<td style="max-width:80px;text-align:right;"> <?php echo $over_time[$i]; ?> </td>
|
||||||
<!-- <td id="monthDue<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
|
||||||
<?php if (empty($record->Key)) {
|
|
||||||
echo "contenteditable='false';";
|
|
||||||
} ?>
|
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
|
||||||
style="text-align:right;color:blue;"
|
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
|
||||||
|
|
||||||
<?php if (!empty($record->Monthly_Due)) {
|
|
||||||
echo $record->Monthly_Due;
|
|
||||||
$totalmonthloan[] = $record->Monthly_Due;
|
|
||||||
} else {
|
|
||||||
echo number_format(0.00, 2, '.', '');
|
|
||||||
} ?>
|
|
||||||
|
|
||||||
</td> -->
|
|
||||||
|
|
||||||
|
|
||||||
<td id="monthDue<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
<td id="monthDue<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) { echo "contenteditable='true';"; } ?>
|
||||||
echo "contenteditable='true';";
|
|
||||||
} ?>
|
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;"
|
style="text-align:right;color:blue;"
|
||||||
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
<?php } else { ?>style="text-align:right;" <?php } ?>>
|
||||||
@ -368,7 +353,6 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td id="otherDet<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
<td id="otherDet<?php echo $index ?>" onkeypress="return isNumber(event);" onkeyup="changeInput(event);"
|
||||||
<?php if (empty($record->Key)) {
|
<?php if (empty($record->Key)) {
|
||||||
echo "contenteditable='true';";
|
echo "contenteditable='true';";
|
||||||
@ -410,7 +394,7 @@
|
|||||||
echo "contenteditable='false';";
|
echo "contenteditable='false';";
|
||||||
} ?>
|
} ?>
|
||||||
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
<?php if (!empty($record->Key)) { ?> title="Payslip Calculated"
|
||||||
style="text-align:right;color:blue;" <?php } ?>>
|
style="text-align:right;color:blue;" <?php }else{ ?>style="text-align:right;" <?php } ?>>
|
||||||
<?php if (!empty($record->Estimate)) {
|
<?php if (!empty($record->Estimate)) {
|
||||||
echo $record->Estimate;
|
echo $record->Estimate;
|
||||||
$estTotal[] = $record->Estimate;
|
$estTotal[] = $record->Estimate;
|
||||||
@ -478,20 +462,19 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="20"></th>
|
<th colspan="20"></th>
|
||||||
|
|
||||||
|
|
||||||
<th>Total</th>
|
<th>Total</th>
|
||||||
|
<th id="monthloan" style="text-align:right;">
|
||||||
<th id="monthloan">
|
|
||||||
<?php echo isset($totalmonthloan) ? array_sum($totalmonthloan) : ''; ?>
|
<?php echo isset($totalmonthloan) ? array_sum($totalmonthloan) : ''; ?>
|
||||||
</th>
|
</th>
|
||||||
|
<th id="other" style="text-align:right;">
|
||||||
<th id="other">
|
<?php echo isset($totalotherDet) ? array_sum($totalotherDet) : ''; ?>
|
||||||
<?php echo isset($totalotherDet) ? array_sum($totalotherDet) : ''; ?></th>
|
</th>
|
||||||
<th id="fest">
|
<th id="fest" style="text-align:right;">
|
||||||
<?php echo isset($totalfestival) ? array_sum($totalfestival) : ''; ?></th>
|
<?php echo isset($totalfestival) ? array_sum($totalfestival) : ''; ?>
|
||||||
<th id="estsal"><?php echo isset($estTotal) ? array_sum($estTotal) : ''; ?></th>
|
</th>
|
||||||
|
<th id="estsal" style="text-align:right;">
|
||||||
|
<?php echo isset($estTotal) ? array_sum($estTotal) : ''; ?>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
@ -530,21 +513,21 @@
|
|||||||
var totalmonthloan = [];
|
var totalmonthloan = [];
|
||||||
|
|
||||||
|
|
||||||
$(function() {
|
// $(function() {
|
||||||
var i = 0;
|
// var i = 0;
|
||||||
$('tr.lastvalue').each(function() {
|
// $('tr.lastvalue').each(function() {
|
||||||
i = i + 1;
|
// i = i + 1;
|
||||||
estTotal[i] = $(this).find('td').eq(11).text();
|
// estTotal[i] = $(this).find('td').eq(11).text();
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var i = 0;
|
// var i = 0;
|
||||||
$('tr.lastvalue').each(function() {
|
// $('tr.lastvalue').each(function() {
|
||||||
i = i + 1;
|
// i = i + 1;
|
||||||
totalotherDet[i] = $(this).find('td').eq(9).text();
|
// totalotherDet[i] = $(this).find('td').eq(9).text();
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -553,29 +536,29 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var i = 0;
|
// var i = 0;
|
||||||
$('tr.lastvalue').each(function() {
|
// $('tr.lastvalue').each(function() {
|
||||||
i = i + 1;
|
// i = i + 1;
|
||||||
totalmonthloan[i] = $(this).find('td').eq(7).text();
|
// totalmonthloan[i] = $(this).find('td').eq(7).text();
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
t.on('order.dt search.dt', function() {
|
// t.on('order.dt search.dt', function() {
|
||||||
t.column(0, {
|
// t.column(0, {
|
||||||
search: 'applied',
|
// search: 'applied',
|
||||||
order: 'applied'
|
// order: 'applied'
|
||||||
}).nodes().each(function(cell, i) {
|
// }).nodes().each(function(cell, i) {
|
||||||
cell.innerHTML = i + 1;
|
// cell.innerHTML = i + 1;
|
||||||
});
|
// });
|
||||||
}).draw();
|
// }).draw();
|
||||||
|
|
||||||
var s = "<?php echo $drop; ?>";
|
// var s = "<?php echo $drop; ?>";
|
||||||
$('#monthyear').val(s);
|
// $('#monthyear').val(s);
|
||||||
|
|
||||||
savebuttonvalidation();
|
// savebuttonvalidation();
|
||||||
|
|
||||||
});
|
// });
|
||||||
|
|
||||||
function isNumber(evt) {
|
function isNumber(evt) {
|
||||||
|
|
||||||
@ -606,7 +589,7 @@
|
|||||||
alldata = JSON.stringify(alldata)
|
alldata = JSON.stringify(alldata)
|
||||||
// Parse the JSON string back into an array of objects
|
// Parse the JSON string back into an array of objects
|
||||||
alldata = JSON.parse(alldata);
|
alldata = JSON.parse(alldata);
|
||||||
console.log(alldata);
|
|
||||||
// Filter out objects where "Emp ID" is empty
|
// Filter out objects where "Emp ID" is empty
|
||||||
alldata = alldata.filter(function(item) {
|
alldata = alldata.filter(function(item) {
|
||||||
return item["Emp ID"].trim() !== "";
|
return item["Emp ID"].trim() !== "";
|
||||||
@ -626,14 +609,10 @@ console.log(alldata);
|
|||||||
type: "POST",
|
type: "POST",
|
||||||
url: "<?php echo base_url() ?>payslip/saveMonthlyData",
|
url: "<?php echo base_url() ?>payslip/saveMonthlyData",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|
||||||
$('#loader').hide();
|
$('#loader').hide();
|
||||||
alert(data);
|
alert(data);
|
||||||
//console.log(data);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -703,14 +682,8 @@ console.log(alldata);
|
|||||||
var grandtotal = [];
|
var grandtotal = [];
|
||||||
|
|
||||||
function changeInput(event, k) {
|
function changeInput(event, k) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var str = event.target.id;
|
var str = event.target.id;
|
||||||
var sno = str.substr(8);
|
var sno = str.substr(8);
|
||||||
|
|
||||||
|
|
||||||
var dayWorks = parseFloat(document.getElementById('dayWork' + sno).textContent);
|
var dayWorks = parseFloat(document.getElementById('dayWork' + sno).textContent);
|
||||||
var lopDay = parseFloat(document.getElementById('lopDay' + sno).textContent);
|
var lopDay = parseFloat(document.getElementById('lopDay' + sno).textContent);
|
||||||
var paidLeave = parseFloat(document.getElementById('paidLeave' + sno).textContent);
|
var paidLeave = parseFloat(document.getElementById('paidLeave' + sno).textContent);
|
||||||
@ -766,18 +739,18 @@ console.log(alldata);
|
|||||||
var dayWorkPaid = dayWorks + paidLeave;
|
var dayWorkPaid = dayWorks + paidLeave;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("day" + dayWorkPaid);
|
|
||||||
var NoofDays = dayWorks + paidLeave + lopDay;
|
var NoofDays = dayWorks + paidLeave + lopDay;
|
||||||
console.log("monthday" + NoofDays);
|
|
||||||
var Food_Allowances = fAllow * dayWorks;
|
var Food_Allowances = fAllow * dayWorks;
|
||||||
// console.log("workedFA"+Food_Allowances);
|
|
||||||
|
|
||||||
var daySalary = bpay / NoofDays;
|
var daySalary = bpay / NoofDays;
|
||||||
console.log("1daysalary " + daySalary);
|
|
||||||
var dayHra = hraAmt / NoofDays;
|
var dayHra = hraAmt / NoofDays;
|
||||||
console.log("1dayHRA" + dayHra);
|
|
||||||
var onehoursSalary = (daySalary + dayHra) / 8;
|
var onehoursSalary = (daySalary + dayHra) / 8;
|
||||||
console.log("onehours " + onehoursSalary);
|
|
||||||
|
|
||||||
|
|
||||||
var totSalayOT = 0;
|
var totSalayOT = 0;
|
||||||
@ -786,21 +759,23 @@ console.log(alldata);
|
|||||||
} else {
|
} else {
|
||||||
totSalayOT = 0;
|
totSalayOT = 0;
|
||||||
}
|
}
|
||||||
console.log(totSalayOT);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var currentDaySalary = daySalary * dayWorkPaid;
|
var currentDaySalary = daySalary * dayWorkPaid;
|
||||||
console.log("11days salary" + currentDaySalary);
|
|
||||||
|
|
||||||
var currentDayHra = dayHra * dayWorkPaid;
|
var currentDayHra = dayHra * dayWorkPaid;
|
||||||
console.log("11days hra" + currentDayHra);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var current_loan_amt = 0;
|
var current_loan_amt = 0;
|
||||||
var autoLoan = parseFloat(monthDue);
|
var autoLoan = parseFloat(monthDue);
|
||||||
|
|
||||||
var Balance_Amount = loanamt - paidamt;
|
var Balance_Amount = loanamt - paidamt;
|
||||||
|
|
||||||
if (autoLoan > Balance_Amount) {
|
if (autoLoan > Balance_Amount) {
|
||||||
if (duedate <= finalpaydate) {
|
if (duedate <= finalpaydate) {
|
||||||
current_loan_amt = Balance_Amount;
|
current_loan_amt = Balance_Amount;
|
||||||
@ -813,14 +788,14 @@ console.log(alldata);
|
|||||||
if (parseFloat(Festival) == parseFloat(Festival)) {
|
if (parseFloat(Festival) == parseFloat(Festival)) {
|
||||||
|
|
||||||
var Festivals = parseFloat(Festival);
|
var Festivals = parseFloat(Festival);
|
||||||
//console.log("Festivals"+Festivals);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parseFloat(otherDet) == parseFloat(otherDet)) {
|
if (parseFloat(otherDet) == parseFloat(otherDet)) {
|
||||||
|
|
||||||
var otherDets = parseFloat(otherDet);
|
var otherDets = parseFloat(otherDet);
|
||||||
//console.log("otherDets"+ otherDets);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -845,12 +820,9 @@ console.log(alldata);
|
|||||||
|
|
||||||
|
|
||||||
var empSalaryAdd = currentDaySalary + totSalayOT + currentDayHra + Festivals;
|
var empSalaryAdd = currentDaySalary + totSalayOT + currentDayHra + Festivals;
|
||||||
console.log("empSalaryAdd " + empSalaryAdd);
|
|
||||||
var empSalarySub = current_loan_amt + esiAmount + pfAmount + otherDets;
|
var empSalarySub = current_loan_amt + esiAmount + pfAmount + otherDets;
|
||||||
console.log("current_loan_amt " + current_loan_amt);
|
|
||||||
console.log("esiAmount " + esiAmount);
|
|
||||||
console.log("pfAmount " + pfAmount);
|
|
||||||
console.log("otherDets " + otherDets);
|
|
||||||
|
|
||||||
|
|
||||||
var empMonthSalary = empSalaryAdd - empSalarySub
|
var empMonthSalary = empSalaryAdd - empSalarySub
|
||||||
@ -864,19 +836,16 @@ console.log(alldata);
|
|||||||
document.getElementById("empsal" + sno).innerHTML = cals;
|
document.getElementById("empsal" + sno).innerHTML = cals;
|
||||||
|
|
||||||
|
|
||||||
$.each(estTotal, function(i, value) {
|
// $.each(estTotal, function(i, value) {
|
||||||
if (sno == i) {
|
// if (sno == i) {
|
||||||
estTotal[i] = cals;
|
// estTotal[i] = cals;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
// $.each(totalotherDet, function(i, value) {
|
||||||
|
// if (sno == i) {
|
||||||
$.each(totalotherDet, function(i, value) {
|
// totalotherDet[i] = otherDet;
|
||||||
if (sno == i) {
|
// }
|
||||||
totalotherDet[i] = otherDet;
|
// });
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// $.each(totalmonthloan, function(i, value) {
|
// $.each(totalmonthloan, function(i, value) {
|
||||||
// if (sno == i) {
|
// if (sno == i) {
|
||||||
// totalmonthloan[i] = loanRecd;
|
// totalmonthloan[i] = loanRecd;
|
||||||
@ -887,85 +856,47 @@ console.log(alldata);
|
|||||||
calculategrandtotal();
|
calculategrandtotal();
|
||||||
|
|
||||||
}
|
}
|
||||||
var tempTotal = [];
|
|
||||||
|
|
||||||
function calculategrandtotal() {
|
function calculategrandtotal()
|
||||||
|
{
|
||||||
|
var AutoLoanDueIndex = 21;
|
||||||
|
var AutoLoanDue = 0;
|
||||||
var sum = 0;
|
$('#monthlylistings tbody tr').each(function() {
|
||||||
|
var value = $(this).find('td').eq(AutoLoanDueIndex).text();
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
AutoLoanDue += parseFloat(value) || 0;
|
||||||
sum += tempTotal[i] << 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#inst').text(parseFloat(sum).toFixed(2));
|
|
||||||
|
|
||||||
$.each(totalotherDet, function(index, value) {
|
|
||||||
//var res2 = value.split('-');
|
|
||||||
tempTotal[index] = parseFloat(value);
|
|
||||||
});
|
});
|
||||||
|
$('#monthloan').text(AutoLoanDue);
|
||||||
|
|
||||||
var sum = 0;
|
var TDSDeductionsIndex = 22;
|
||||||
|
var TDSDeductions = 0;
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
$('#monthlylistings tbody tr').each(function() {
|
||||||
sum += tempTotal[i] << 0;
|
var value = $(this).find('td').eq(TDSDeductionsIndex).text();
|
||||||
}
|
TDSDeductions += parseFloat(value) || 0;
|
||||||
$('#other').text(parseFloat(sum).toFixed(2));
|
|
||||||
|
|
||||||
$.each(totalfestival, function(index, value) {
|
|
||||||
//var res2 = value.split('-');
|
|
||||||
tempTotal[index] = parseFloat(value);
|
|
||||||
});
|
});
|
||||||
|
$('#other').text(TDSDeductions);
|
||||||
|
|
||||||
var sum = 0;
|
var FestivalBonusIndex = 23;
|
||||||
|
var FestivalBonus = 0;
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
$('#monthlylistings tbody tr').each(function() {
|
||||||
sum += tempTotal[i] << 0;
|
var value = $(this).find('td').eq(FestivalBonusIndex).text();
|
||||||
}
|
FestivalBonus += parseFloat(value) || 0;
|
||||||
$('#fest').text(parseFloat(sum).toFixed(2));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.each(estTotal, function(index, value) {
|
|
||||||
//var res2 = value.split('-');
|
|
||||||
tempTotal[index] = parseFloat(value);
|
|
||||||
});
|
});
|
||||||
|
$('#fest').text(FestivalBonus);
|
||||||
|
|
||||||
var sum = 0;
|
var EstimateIndex = 24;
|
||||||
|
var Estimate = 0;
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
$('#monthlylistings tbody tr').each(function() {
|
||||||
sum += tempTotal[i] << 0;
|
var value = $(this).find('td').eq(EstimateIndex).text();
|
||||||
}
|
Estimate += parseFloat(value) || 0;
|
||||||
$('#estsal').text(parseFloat(sum).toFixed(2));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.each(totalmonthloan, function(index, value) {
|
|
||||||
tempTotal[index] = parseFloat(value);
|
|
||||||
});
|
});
|
||||||
|
$('#estsal').text(Estimate);
|
||||||
var sum = 0;
|
|
||||||
|
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
|
||||||
sum += tempTotal[i] << 0;
|
|
||||||
}
|
|
||||||
$('#monthloan').text(parseFloat(sum).toFixed(2));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function show_hide_column(col_no, do_show) {
|
|
||||||
var rows = document.getElementById('monthlylistings').rows;
|
|
||||||
|
|
||||||
for (var row = 0; row < rows.length; row++) {
|
|
||||||
var cols = rows[row].cells;
|
|
||||||
if (col_no >= 0 && col_no < cols.length) {
|
|
||||||
cols[col_no].style.display = do_show ? '' : 'none';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user