Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
7f722ceef9
@ -801,10 +801,10 @@ class Payslip extends BaseController
|
||||
$loan = $Balance_Amount;
|
||||
}
|
||||
|
||||
$empSalaryAdd = $final_salary_amount+$shed+$diesel;
|
||||
$empSalaryAdd = $final_salary_amount;
|
||||
$empSalarySub = $loan;
|
||||
$salaryInCurrentday = $empSalaryAdd - $empSalarySub;
|
||||
$load_driver_data[$i]->driver_final_payment = $salaryInCurrentday;
|
||||
// $salaryInCurrentday = $empSalaryAdd - $empSalarySub;
|
||||
// $load_driver_data[$i]->driver_final_payment = $salaryInCurrentday;
|
||||
|
||||
$load_driver_data[$i]->payroll_id = $monthly_pay_array[$driver_id]->payroll_id;
|
||||
$load_driver_data[$i]->Festival_Bonus = $monthly_pay_array[$driver_id]->Festival_Bonus;
|
||||
@ -871,8 +871,8 @@ class Payslip extends BaseController
|
||||
|
||||
$empSalaryAdd = $final_salary_amount;
|
||||
$empSalarySub = $loan;
|
||||
$salaryInCurrentday = $empSalaryAdd - $empSalarySub;
|
||||
$load_driver_data[$i]->driver_final_payment = $salaryInCurrentday+$shed+$diesel;
|
||||
// $salaryInCurrentday = $empSalaryAdd - $empSalarySub;
|
||||
// $load_driver_data[$i]->driver_final_payment = $salaryInCurrentday+$shed+$diesel;
|
||||
$load_driver_data[$i]->total_cal_days = $get_last_date_of_the_month;
|
||||
|
||||
}
|
||||
@ -1236,6 +1236,7 @@ class Payslip extends BaseController
|
||||
'total_shed_amount'=>$Shed,
|
||||
'monthly_salary_amount'=>($Basic+$Food),
|
||||
'final_payment'=>$Estimate,
|
||||
'BASIC'=>$Basic,
|
||||
'HRA'=>$HRA,
|
||||
'ESI'=>$ESI,
|
||||
'PF'=>$PF,
|
||||
@ -1421,8 +1422,10 @@ class Payslip extends BaseController
|
||||
$currentDayBasic = isset($Data['PayDetails'][0]->monthly_salary_amount) ? $Data['PayDetails'][0]->monthly_salary_amount : 0;
|
||||
$PF_Rate = $Data['PayDetails'][0]->PF_Rate;
|
||||
$ESI_Rate = $Data['PayDetails'][0]->ESI_Rate;
|
||||
$Data['esi_amount'] = ($Data['PayDetails'][0]->esi_applicable == 1) ? $currentDayBasic * $ESI_Rate / 100 : 0;
|
||||
$Data['pf_amount'] = ($Data['PayDetails'][0]->pf_applicable == 1) ? $currentDayBasic * $PF_Rate / 100 : 0;
|
||||
// $Data['esi_amount'] = ($Data['PayDetails'][0]->esi_applicable == 1) ? $currentDayBasic * $ESI_Rate / 100 : 0;
|
||||
// $Data['pf_amount'] = ($Data['PayDetails'][0]->pf_applicable == 1) ? $currentDayBasic * $PF_Rate / 100 : 0;
|
||||
$Data['esi_amount'] = ($Data['PayDetails'][0]->esi_applicable == 1) ? $Data['PayDetails'][0]->ESI : 0;
|
||||
$Data['pf_amount'] = ($Data['PayDetails'][0]->pf_applicable == 1) ? $Data['PayDetails'][0]->PF : 0;
|
||||
$html = view("driverPayslipGeneratePrint", $Data);
|
||||
}else{
|
||||
//echo "EmpID" . $EmpID;
|
||||
|
||||
@ -3068,7 +3068,6 @@ class Purchaseorder extends BaseController
|
||||
$this->purchaseorder_model->insertlogpo($logpo);
|
||||
}
|
||||
}
|
||||
// print_r($this->request->getPost());die;
|
||||
for ($i = 1; $i <= $RowCount; $i++) {
|
||||
|
||||
$MaterialCode = $this->request->getPost('materialCode' . $i);
|
||||
|
||||
@ -285,7 +285,7 @@ class Driver_model extends Model
|
||||
$builder = $this->db->table('t_driver_payroll Pay')->select('Pay.*')
|
||||
->select('Emp.EmpID,CONCAT_WS(" ", Emp.FirstName, Emp.LastName) as driver_name,Emp.DateofBirth as Dob,Emp.PANNo as Pan,Emp.BankBranchName as BankName,Emp.BankAccountNo as BankAccountNumber,Emp.IFSCCode as IFSCCode,Emp.DateofJoining as DOJ,Emp.AadharNo,Emp.Designation as Designation,Dep.DepartmentName as DeptName,Emp.esi_applicable,Emp.pf_applicable')
|
||||
->select('t_emp_pay_data.PF_Rate,t_emp_pay_data.ESI_Rate')
|
||||
->select('month.Festival_Bonus,month.HRA,month.Loan_Recovered,month.total_diesel_amount,month.total_shed_amount')
|
||||
->select('month.Festival_Bonus,month.BASIC,month.HRA,month.Loan_Recovered,month.total_diesel_amount,month.total_shed_amount')
|
||||
// ->select('month.monthly_salary_amount,month.monthly_food_amount,month.Festival_Bonus,month.final_payment,month.HRA,month.ESI,month.PF,month.Loan_Recovered,month.total_diesel_amount,month.total_shed_amount')
|
||||
->join('t_employee_details Emp', 'Pay.driver_id = Emp.EmpID')
|
||||
->join('t_departmentdetails Dep', 'Emp.Departmentcode = Dep.DEPCode')
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1838,8 +1838,16 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
function showsubmit() {
|
||||
var isChecked = $('#IsOpenOrder').is(':checked');
|
||||
// alert("isChecked: " + isChecked);
|
||||
console.log("Step 1 = SS");
|
||||
var PO = $('#POType').val();
|
||||
|
||||
if (PO == 'SERVICE') {
|
||||
if ($('#emergdescofpo').val().trim() == '') {
|
||||
alert('Please Enter Description Of Service');
|
||||
$('#emergdescofpo').focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isChecked) {
|
||||
if (PO == 'REVENUE') {
|
||||
@ -6335,6 +6343,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
|
||||
}
|
||||
$("#PaymentMethod").trigger('change');
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
@ -6406,6 +6415,18 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//If others is the payment terms to display mandatory field
|
||||
$("#PaymentMethod").change(function () {
|
||||
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
} else {
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
});
|
||||
|
||||
/*get cost center name using department*/
|
||||
var CostArray = '';
|
||||
$('#DepartmentName').change(function () {
|
||||
@ -8018,17 +8039,6 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
|
||||
|
||||
//If others is the payment terms to display mandatory field
|
||||
$("#PaymentMethod").change(function () {
|
||||
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
} else {
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
});
|
||||
|
||||
// set default null value
|
||||
function clearTotalItemValues() {
|
||||
|
||||
|
||||
@ -123,6 +123,18 @@
|
||||
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||
$('#editpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||
});
|
||||
|
||||
//If others is the payment terms to display mandatory field
|
||||
$("#PaymentMethod").change(function() {
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
$('#Otherpayment').prop('required', true);
|
||||
} else {
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').prop('required', false);
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@ -703,7 +715,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="payablefrom">Payable Terms </label>
|
||||
<label for="payablefrom">Payable Terms<span class="text-danger">*</span> </label>
|
||||
<?php
|
||||
|
||||
$options1 = array("0" => 'Select Payment method');
|
||||
@ -722,7 +734,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="otheroptiondiv" style="display:none;">
|
||||
<label>Description of Payable Terms</label>
|
||||
<label>Description of Payable Terms<span class="text-danger">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'Otherpayment', 'Otherpayment' => set_value('Otherpayment'), 'id' => 'Otherpayment', 'class' => 'form-control', 'required' => 'true');
|
||||
@ -2740,6 +2752,11 @@ if (!empty($INRSYMBOL)) {
|
||||
RequistQuantity = obj.Quantity;
|
||||
$('#RateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||
$('#EditRateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/Ton)');
|
||||
if(obj.material_rate != 0){
|
||||
Ratechange();
|
||||
calculateFreight(3);
|
||||
calculateFreightlocaddper();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -4581,6 +4598,7 @@ if (!empty($INRSYMBOL)) {
|
||||
window.location = "purchaseorderListing";
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
} else {
|
||||
$('#loader').hide();
|
||||
// $('#content').loader('hide');
|
||||
alert("Error");
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
@ -4588,6 +4606,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
$('#loader').hide();
|
||||
console.error("AJAX Error: " + textStatus + ": " + errorThrown);
|
||||
alert("Error: " + textStatus);
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
@ -5398,17 +5417,6 @@ if (!empty($INRSYMBOL)) {
|
||||
return TAXval; // $('#AfterServiceTax').val(TAXval);
|
||||
|
||||
}
|
||||
//If others is the payment terms to display mandatory field
|
||||
$("#PaymentMethod").change(function() {
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
$('#Otherpayment').prop('required', true);
|
||||
} else {
|
||||
$('#otheroptiondiv').hide();
|
||||
$('#Otherpayment').prop('required', false);
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
});
|
||||
|
||||
function clearTotalItemValues() {
|
||||
$('#txtTotCgst').val('');
|
||||
|
||||
@ -63,6 +63,20 @@
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;">Loan Balance </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;" ><?php echo ': Rs '.$PayDetails[0]->BalanceAdvance ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;"> </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;"><?php echo ' ' ?></td>
|
||||
<td><?= ' ' ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;">Diesel </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;" ><?php echo ': Rs '.$PayDetails[0]->diesel_amount; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;"> </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;"><?php echo ' '; ?></td>
|
||||
<td><?= ' ' ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;">Shed Duty Amount </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ; white-space: nowrap;" ><?php echo ': Rs '.$PayDetails[0]->shed_amount; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
@ -71,39 +85,27 @@
|
||||
<table style="border-collapse: collapse;border-top:#fff;" cellpadding="0" cellspacing="0" border="1" width="100%" >
|
||||
<tr><th>Earnings</th><th>Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></th><th>Deductions</th><th>Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></th></tr>
|
||||
<tr>
|
||||
<td width="25%;"> Basic</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->monthly_salary_amount; ?> </td>
|
||||
<td width="25%;"> BASIC</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->BASIC; ?> </td>
|
||||
<td width="25%;"> PF</td>
|
||||
<td width="30%;" style="text-align: right;" ><?php echo $pf_amount; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%;"> Diesel</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->diesel_amount; ?> </td>
|
||||
<td width="25%;"> HRA</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->HRA; ?> </td>
|
||||
<td> ESI</td>
|
||||
<td style="text-align: right;"> <?php echo $esi_amount ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%;"> Shed Duty Amount</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->shed_amount; ?> </td>
|
||||
<td width="25%;"> Bonus</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->Festival_Bonus; ?> </td>
|
||||
<td> Salary Advance</td>
|
||||
<td style="text-align: right;"> <?php echo $PayDetails[0]->Advance ?> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="25%;"> Bonus</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->Festival_Bonus; ?> </td>
|
||||
|
||||
<td width="25%;"> </td>
|
||||
<td width="30%;" style="text-align: right;" > </td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><th nowrap> Total Earning (Rounded)</th>
|
||||
<td style="text-align: right;">
|
||||
<?php
|
||||
$totEarning = $PayDetails[0]->monthly_salary_amount + $PayDetails[0]->Festival_Bonus + $PayDetails[0]->diesel_amount + $PayDetails[0]->shed_amount;
|
||||
$totEarning = $PayDetails[0]->BASIC + $PayDetails[0]->Festival_Bonus + $PayDetails[0]->HRA ;
|
||||
echo number_format(round($totEarning),2)
|
||||
?>
|
||||
</td>
|
||||
|
||||
@ -3935,6 +3935,7 @@ if (!empty($getlogpodtl)) {
|
||||
$("#CPUOM").val('');
|
||||
$("#CPQuantity").val('');
|
||||
$("#CPTotalAmount").val('');
|
||||
$("#CPRate").val('');
|
||||
RequistQuantity = '';
|
||||
clearTaxField();
|
||||
if (id != '0') {
|
||||
@ -3946,12 +3947,16 @@ if (!empty($getlogpodtl)) {
|
||||
$("#CapitalItemName").val(obj.MaterialName);
|
||||
$("#CPUOM").val(obj.UOM);
|
||||
$("#CPQuantity").val(obj.Quantity);
|
||||
$("#CPRate").val(obj.material_rate);
|
||||
RequistQuantity = obj.Quantity;
|
||||
|
||||
var CPUOMDisplay = obj.UOM;
|
||||
|
||||
$('#RateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||
$('#EditRateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||
if(obj.material_rate != 0){
|
||||
Ratechange();calculateFreight(3);calculateFreightlocaddper();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -4779,12 +4784,12 @@ if (!empty($getlogpodtl)) {
|
||||
// ReceivedQuantity: 0,
|
||||
// PendingQuantity: quantity
|
||||
// }));
|
||||
PONOStatus = <?php echo $PONOStatus; ?>
|
||||
var PONOStatus = "<?php echo $PONOStatus; ?>";
|
||||
var shorten = materialName.length > 13 ? materialName.slice(0, 13) + "..." : materialName;
|
||||
var rowHtml = `
|
||||
<tr id="${temp}">
|
||||
<td align="left">${temp}</td>
|
||||
<td align="left">${Reqnumber}</td>
|
||||
<td align="center">${Reqnumber}</td>
|
||||
<td align="left">${materialCode}</td>
|
||||
<td align="left">${shorten}</td>`;
|
||||
if (PONOStatus === "PO_DRAFT" || PONOStatus === "PO_CREATED") {
|
||||
|
||||
@ -541,6 +541,10 @@ if (!empty($getlogpodtl)) {
|
||||
$("#ItemName").val(obj.MaterialName);
|
||||
$("#UOM").val(obj.UOM);
|
||||
$("#Quantity").val(obj.Quantity);
|
||||
$("#Rate").val(obj.material_rate);
|
||||
if(obj.material_rate != 0){
|
||||
change();
|
||||
}
|
||||
RequistQuantity = obj.Quantity;
|
||||
}
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -2274,6 +2274,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
});
|
||||
|
||||
}
|
||||
$("#PaymentTerms").trigger('change');
|
||||
});
|
||||
|
||||
|
||||
@ -2393,10 +2394,16 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
$("#ItemName").val(obj.MaterialName);
|
||||
$("#UOM").val(obj.UOM);
|
||||
$("#Quantity").val(obj.Quantity);
|
||||
$("#Rate").val(obj.material_rate);
|
||||
RequistQuantity = obj.Quantity;
|
||||
unit = obj.UOM;
|
||||
// document.getElementById("labelPurchaseRate").innerHTML ='purchase rate [Basic]/'+unit;
|
||||
// document.getElementById("labelEditPurchaseRate").innerHTML ='purchase rate [Basic]/'+unit;
|
||||
if(obj.material_rate != 0){
|
||||
Ratechange();
|
||||
validateExceedLimit();
|
||||
calculateFreight(0);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
@ -4198,7 +4205,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
formData.append('txtDeletedRow', txtDeletedRow);
|
||||
formData.append('textStatus', stat);
|
||||
// disableButtons();
|
||||
|
||||
$('#loader').show();
|
||||
$.ajax({
|
||||
// data:$('.ImportPO').serialize()+"&txtRowCount="+txtRowCount+"&txtDeletedRow="+txtDeletedRow+"&textStatus="+stat,
|
||||
//data:$('.CreatealterPO').serialize()+"&TextRowCount="+TextRowCount+"&TextDeQletedRowCount="+TextDeletedRowCount+"&TextTotalOrderValueSummaryService="+TextTotalOrderValueSummaryService+"&TextSpcialInstruction="+TextSpcialInstruction+"&TextExchangerate"+ExcLandingCharge="+hangerate+"Status="+TextStatus,
|
||||
@ -4208,6 +4215,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(data) {
|
||||
$('#loader').hide();
|
||||
if (data) {
|
||||
// $('#content').loader('hide');
|
||||
alert(data);
|
||||
@ -4219,6 +4227,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
|
||||
} else {
|
||||
$('#loader').hide();
|
||||
alert("Error");
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
}
|
||||
|
||||
@ -371,17 +371,17 @@
|
||||
|
||||
<td style="max-width:80px;text-align:right;"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="bassalary<?php echo $index ?>" style="max-width:80px;text-align:right;">
|
||||
<?php $basicWorked = $workedSalary * 70 / 100;
|
||||
echo number_format($basicWorked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="hrasalary<?php echo $index ?>" style="max-width:80px;text-align:right;">
|
||||
<?php $hraWorked = $workedSalary * 30 / 100;
|
||||
echo number_format($hraWorked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="grosalary<?php echo $index ?>" style="max-width:80px;text-align:right;">
|
||||
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
@ -583,17 +583,17 @@
|
||||
<?php echo number_format($sum_of_amount, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="bassalary<?php echo $inx ?>" style="max-width:80px;text-align:right;">
|
||||
<?php
|
||||
echo number_format($basic_worked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="hrasalary<?php echo $inx ?>" style="max-width:80px;text-align:right;">
|
||||
<?php
|
||||
echo number_format($hra_worked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
<td style="max-width:80px;text-align:right;">
|
||||
<td id="grosalary<?php echo $inx ?>" style="max-width:80px;text-align:right;">
|
||||
<?php echo number_format($basic_worked + $hra_worked, 2, '.', ''); ?>
|
||||
</td>
|
||||
|
||||
@ -653,11 +653,11 @@
|
||||
<?php if (!empty($record->payroll_id)) { ?> title="Payslip Calculated"
|
||||
style="text-align:right;color:blue;" <?php }else{ ?>style="text-align:right;" <?php } ?>>
|
||||
<?php if (!empty($record->driver_final_payment)) {
|
||||
echo $record->driver_final_payment;
|
||||
$estTotal[] = $record->driver_final_payment;
|
||||
echo ($basic_worked + $hra_worked + $record->Festival_Bonus)-($record->Monthly_Due+$record->esi_amount+$record->pf_amount);
|
||||
$estTotal[] = ($basic_worked + $hra_worked + $record->Festival_Bonus)-($record->Monthly_Due+$record->esi_amount+$record->pf_amount);
|
||||
} else {
|
||||
echo $empSalary[$i];
|
||||
$estTotal[] = $empSalary[$i];
|
||||
echo ($basic_worked + $hra_worked + $record->Festival_Bonus)-($record->Monthly_Due+$record->esi_amount+$record->pf_amount);
|
||||
$estTotal[] = ($basic_worked + $hra_worked + $record->Festival_Bonus)-($record->Monthly_Due+$record->esi_amount+$record->pf_amount);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@ -1144,10 +1144,16 @@ $(document).ready(function () {
|
||||
// console.log(sno);return true;
|
||||
|
||||
var driverEarn = parseFloat(document.getElementById('ttlsalary' + sno).textContent);
|
||||
|
||||
var grosssalary = parseFloat(document.getElementById('grosalary' + sno).textContent);
|
||||
var basicsalary = parseFloat(document.getElementById('bassalary' + sno).textContent);
|
||||
var hrasalary = parseFloat(document.getElementById('hrasalary' + sno).textContent);
|
||||
|
||||
var Festivals = parseFloat(document.getElementById('Festival' + sno).textContent);
|
||||
totalfestival[sno] = Festivals;
|
||||
|
||||
var ESI = parseFloat(document.getElementById('esiAmt' + sno).textContent);
|
||||
var PF = parseFloat(document.getElementById('pfAmt' + sno).textContent);
|
||||
|
||||
var element = document.getElementById('loanatm' + sno);
|
||||
|
||||
var loanamt = parseFloat(element.value);
|
||||
@ -1171,6 +1177,7 @@ $(document).ready(function () {
|
||||
|
||||
var current_loan_amt = 0;
|
||||
var autoLoan = parseFloat(monthDue);
|
||||
console.log(autoLoan,"autoLoan");
|
||||
var Balance_Amount = loanamt - paidamt;
|
||||
|
||||
if (autoLoan > Balance_Amount) {
|
||||
@ -1181,21 +1188,21 @@ $(document).ready(function () {
|
||||
current_loan_amt = autoLoan;
|
||||
}
|
||||
|
||||
if (isNaN(driverEarn)) { driverEarn = 0; }
|
||||
|
||||
if (isNaN(basicsalary)) { basicsalary = 0; }
|
||||
if (isNaN(hrasalary)) { hrasalary = 0; }
|
||||
|
||||
|
||||
var driverSalaryAdd = basicsalary + hrasalary + Festivals;
|
||||
console.log('bas + hra + bon ',driverSalaryAdd);
|
||||
|
||||
|
||||
|
||||
|
||||
var driverSalaryAdd = driverEarn + Festivals;
|
||||
|
||||
var driverSalarySub = current_loan_amt;
|
||||
console.log("current loan amt == ",current_loan_amt);
|
||||
var driverSalarySub = current_loan_amt+ESI + PF ;
|
||||
console.log("L + E + P ",current_loan_amt);
|
||||
|
||||
|
||||
var driverMonthSalary = driverSalaryAdd - driverSalarySub
|
||||
var driverSalary = Math.round(driverMonthSalary);
|
||||
console.log("Sal ",driverSalary);
|
||||
|
||||
|
||||
var cals = (driverSalary).toFixed(0);
|
||||
|
||||
|
||||
@ -293,7 +293,7 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
$("#PaymentTerms").trigger('change');
|
||||
});
|
||||
|
||||
|
||||
$('#drpSupplier').change(function() {
|
||||
|
||||
var id = $('#drpSupplier').val();
|
||||
@ -434,6 +434,9 @@ if (!empty($INRSYMBOL)) {
|
||||
$("#Quantity").val(obj.Quantity);
|
||||
$("#Rate").val(obj.material_rate);
|
||||
RequistQuantity = obj.Quantity;
|
||||
if(obj.material_rate != 0){
|
||||
change();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -2103,7 +2106,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="payablefrom">Payable Terms</label>
|
||||
<label for="payablefrom">Payable Terms<span class="text-danger">*</span></label>
|
||||
<?php
|
||||
if (!empty($Payment)) {
|
||||
$options6 = array("0" => 'Select Payment Terms ');
|
||||
@ -3946,7 +3949,7 @@ if (!empty($INRSYMBOL)) {
|
||||
// else {
|
||||
|
||||
var formData = new FormData($('.CreatePO')[0]);
|
||||
// disableButtons();
|
||||
$('#loader').show();
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@ -3955,6 +3958,7 @@ if (!empty($INRSYMBOL)) {
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(data) {
|
||||
$('#loader').hide();
|
||||
if (data) {
|
||||
|
||||
alert(data);
|
||||
@ -3973,6 +3977,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
$('#loader').hide();
|
||||
console.error("AJAX Error: " + textStatus + ": " + errorThrown);
|
||||
alert("Error: " + textStatus);
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
|
||||
@ -208,6 +208,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
});
|
||||
}
|
||||
$("#PaymentTerms").trigger('change');
|
||||
});
|
||||
|
||||
document.getElementById("Date").checked = true;
|
||||
@ -369,6 +370,10 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#otherdescription').show();
|
||||
$('#OtheritemDescription').val(obj.MaterialDescription);
|
||||
}
|
||||
|
||||
if(obj.material_rate != 0){
|
||||
Ratechange();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1047,7 +1052,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div><!-- 6. form-row div closed here -->
|
||||
<div class="form-row">
|
||||
<div class="table-responsive" style="padding-bottom: 30px;">
|
||||
<table id="serviceTax" class="table nowrap table-bordered table-hover mb-0" style="font-size:12px;">
|
||||
<table id="ServiceTable" class="table nowrap table-bordered table-hover mb-0" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="white-space: nowrap !important;">SNo</th>
|
||||
@ -1066,7 +1071,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</thead>
|
||||
<tbody id='ServiceAppend'>
|
||||
</tbody>
|
||||
</table><!-- serviceTax table closed here -->
|
||||
</table><!-- ServiceTable table closed here -->
|
||||
</div>
|
||||
</div><!-- 7. form-row div closed here -->
|
||||
|
||||
@ -2096,7 +2101,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
function populateValueMainFormForEditServiceTax() {
|
||||
|
||||
var rows = $('#serviceTax tbody tr').length;
|
||||
var rows = $('#ServiceTable tbody tr').length;
|
||||
|
||||
var TotCgst = 0;
|
||||
var TotSgst = 0;
|
||||
@ -2380,10 +2385,10 @@ if (!empty($INRSYMBOL)) {
|
||||
var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
||||
var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
||||
if (serviceValidate()) {
|
||||
// if (document.getElementById('serviceTax').rows.length < 2) {
|
||||
// alert('Please Select Line item to Create PO');
|
||||
// return false;
|
||||
// }
|
||||
if (document.getElementById('ServiceTable').rows.length < 1) {
|
||||
alert('Atleast One Line needed');
|
||||
return false;
|
||||
}
|
||||
// else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
|
||||
// alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
|
||||
// return false;
|
||||
@ -2392,17 +2397,17 @@ if (!empty($INRSYMBOL)) {
|
||||
// alert('Please Enter Other Payable Terms Description');
|
||||
// $('#Otherpayment').focus();
|
||||
// return false;
|
||||
// } else if ($('#descofpo').val().trim() == '') {
|
||||
// alert('Please Enter Description Of Service');
|
||||
// $('#descofpo').focus();
|
||||
// return false;
|
||||
} else if ($('#descofpo').val().trim() == '') {
|
||||
alert('Please Enter Description Of Service');
|
||||
$('#descofpo').focus();
|
||||
return false;
|
||||
// } else if ($('#PoTypeOptions').val() == "0") {
|
||||
// alert('Please Select POType');
|
||||
// $('#PoTypeOptions').focus();
|
||||
// return false;
|
||||
// } else {
|
||||
} else {
|
||||
var formData = new FormData($('.ServicePO')[0]);
|
||||
// disableButtons();
|
||||
$('#loader').show();
|
||||
console.log("inside add service purchase order view page");
|
||||
|
||||
console.log(formData);
|
||||
@ -2415,6 +2420,7 @@ if (!empty($INRSYMBOL)) {
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(data) {
|
||||
$('#loader').hide();
|
||||
if (data) {
|
||||
alert(data);
|
||||
$('#txtRowCount').val('');
|
||||
@ -2424,6 +2430,7 @@ if (!empty($INRSYMBOL)) {
|
||||
window.location = "purchaseorderListing";
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
} else {
|
||||
$('#loader').hide();
|
||||
alert("Error");
|
||||
// setTimeout(function() { enableButtons(); }, 2000);
|
||||
}
|
||||
|
||||
@ -145,14 +145,16 @@ function serviceValidate(){
|
||||
alert('Please Select Budget Type');
|
||||
$('#BudgetType').focus();
|
||||
return false;
|
||||
}else if ($('#serviceTax tbody tr').length < 1) {
|
||||
alert('Atleast One Line needed');
|
||||
return false;
|
||||
} else if ($('#descofpo').val().trim() == '') {
|
||||
alert('Please Enter Description Of Service');
|
||||
$('#descofpo').focus();
|
||||
return false;
|
||||
}else {
|
||||
}
|
||||
// else if ($('#ServiceTable tbody tr').length < 1) {
|
||||
// alert('Atleast One Line needed');
|
||||
// return false;
|
||||
// } else if ($('#descofpo').val().trim() == '') {
|
||||
// alert('Please Enter Description Of Service');
|
||||
// $('#descofpo').focus();
|
||||
// return false;
|
||||
// }
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user