sweetalert in po screen

This commit is contained in:
gandhimathi 2017-12-18 18:44:15 +05:30
parent bda7a74cd2
commit 997547b641
39 changed files with 620 additions and 620 deletions

View File

@ -397,13 +397,13 @@ function validate()
if (Noval == 0 )
{
alert('Accepted Quantity/ Rejected Quantity is Empty.Please Enter the value');
swal('Accepted Quantity/ Rejected Quantity is Empty.Please Enter the value');
return false;
}
else if(isExceed == 1 ){
alert("Accept/Reject Quantity is exceeding the Actual Quantity.Please correct the value to procced further ")
swal("Accept/Reject Quantity is exceeding the Actual Quantity.Please correct the value to procced further ")
return false;
}
else
@ -433,7 +433,7 @@ function setaccept(rowId)
if(accept > Actulqty)
{
alert("Accept Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
swal("Accept Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
$("#AcceptQuantity"+rowId).focus();
$("#AcceptQuantity"+rowId).val('');
$("#RejectQuantity"+rowId).val('');
@ -442,7 +442,7 @@ function setaccept(rowId)
}
else if(rejected > Actulqty )
{
alert("Reject Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
swal("Reject Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
$("#RejectQuantity"+rowId).focus();
$("#RejectQuantity"+rowId).val('');
$("#QuantityRejected"+rowId).val('');
@ -493,7 +493,7 @@ function setreject(rowId)
var reject = parseFloat($('#RejectQuantity'+rowId).val());
if(reject > Actulqty )
{
alert("Reject Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
swal("Reject Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
$("#RejectQuantity"+rowId).focus();
$("#RejectQuantity"+rowId).val('');
$("#QuantityRejected"+rowId).val('');
@ -526,12 +526,12 @@ function updatemrir()
//alert("success function worked ");
if(data){
$('#content').loader('hide');
alert(data);
swal(data);
window.location ="ViewMRIR";
}
else
{
alert("value not updated");
swal("value not updated");
}
}//success function closed

View File

@ -298,7 +298,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -333,7 +333,7 @@ $('#MaterialCode').change(function() {
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -370,7 +370,7 @@ $("#EditQuantity").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -392,19 +392,19 @@ function Ratechange(){
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#CostCenter').focus();
return false;
}
@ -441,7 +441,7 @@ function EditRatechange(){
if($('#EditCostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#EditCostCenter').focus();
return false;
}
@ -472,7 +472,7 @@ function ExceedQuantityCheck()
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#Quantity').focus();
return false;
@ -489,7 +489,7 @@ function ExceedQuantityCheck()
//alert(ReqQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditQuantity').focus();
return false;
@ -503,7 +503,7 @@ function ExceedQuantityCheck()
if(ReqAmount > BudAmount )
{
alert('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.');
swal('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.');
return false;
}
else
@ -2565,11 +2565,11 @@ function DeleteRow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -2629,43 +2629,43 @@ function validateServiceTax()
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Quantity').val() == 0)
{
alert('Please Enter the Valid Quantity Value');
swal('Please Enter the Valid Quantity Value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
else if($('#Rate').val() == 0)
{
alert('Please Enter the Valid Rate of the Item');
swal('Please Enter the Valid Rate of the Item');
$('#Rate').focus();
return false;
}
@ -2674,7 +2674,7 @@ function validateServiceTax()
return false;
}
else if($('#txtSpcialInstruction').val()==''){
alert('Please Enter the Service Description');
swal('Please Enter the Service Description');
$('#txtSpcialInstruction').focus();
return false;
}
@ -2694,37 +2694,37 @@ function validateServiceTax()
if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditQuantity').val() == 0)
{
alert('Please Enter the Valid Quantity value');
swal('Please Enter the Valid Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditRate').val() == 0)
{
alert('Please Enter the Valid Rate of the Item');
swal('Please Enter the Valid Rate of the Item');
$('#EditRate').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditRate').focus();
return false;
}
@ -2733,7 +2733,7 @@ function validateServiceTax()
return false;
}
else if($('#EdittxtSpcialInstruction').val()==''){
alert('Please Enter the Service Description');
swal('Please Enter the Service Description');
$('#EdittxtSpcialInstruction').focus();
return false;
}
@ -2785,22 +2785,22 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
{
if(document.getElementById('ServiceTable').rows.length < 2)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
alert('Please Enter Other Payment Details');
swal('Please Enter Other Payment Details');
$('#Otherpayment').focus();
return false;
}
else if($('#editdescofpo').val().trim()==''){
alert('Please Enter Description Of Service');
swal('Please Enter Description Of Service');
$('#editdescofpo').focus();
return false;
}
@ -2815,7 +2815,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
@ -2827,7 +2827,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
else
{
$('#content').loader('hide');
alert("Error");
swal("Error");
}
}
@ -3049,7 +3049,7 @@ for(i=2;i<=rows;i++){
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';

View File

@ -35,7 +35,7 @@ if(!empty($rel_po))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Order Value - Released</b></p></h3></center>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Order Value - Released</b></p></h3></center>
</div>
<!-- /.box-header -->
<div class="row">

View File

@ -30,8 +30,8 @@
}
.btn-success {
background-color: #5d0411;
border-color: #5d0411;
background-color:#5d0411;
border-color:#5d0411;
}

View File

@ -30,8 +30,8 @@
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -42,7 +42,7 @@
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Consolidate (Category-Wise)</b><br><br>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Consolidate (Category-Wise)</b><br><br>
<?php
if($this->input->post('client_name')){

View File

@ -37,7 +37,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative (<?php echo date('d-m-Y'); ?>)</b></p></h3></center>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative (<?php echo date('d-m-Y'); ?>)</b></p></h3></center>
</div>
<!-- /.box-header -->

View File

@ -26,8 +26,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -38,7 +38,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Today (Category-Wise)</b></p></h3></center>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Today (Category-Wise)</b></p></h3></center>
</div>
<!-- /.box-header -->

View File

@ -27,8 +27,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -39,7 +39,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Month Category-Wise (<i>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Month Category-Wise (<i>
<?php

View File

@ -26,8 +26,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -38,7 +38,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative - Category Wise</b>(<i>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative - Category Wise</b>(<i>
<?php
if (date('m') >= 4) {

View File

@ -26,8 +26,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -38,7 +38,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Year - Inward</b>(<i>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Year - Inward</b>(<i>
<?php

View File

@ -26,8 +26,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -38,7 +38,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cumulative Year - Category Wise </b>(<i>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Cumulative Year - Category Wise </b>(<i>
<?php

View File

@ -26,8 +26,8 @@ if(!empty($mms))
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
background-color: #5d0411;
border-color: #5d0411;
}
@ -38,7 +38,7 @@ if(!empty($mms))
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Year-wise-Total(<?php echo $year; ?>)</b></p></h3></center>
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Year-wise-Total(<?php echo $year; ?>)</b></p></h3></center>
</div>
<!-- /.box-header -->
<div class="box-body">

View File

@ -481,25 +481,25 @@ function OpenModal()
{
if($('#CostCode').val()=='')
{
alert('Please Enter the Costcenter Code');
swal('Please Enter the Costcenter Code');
$('#CostCode').focus();
return false;
}
else if($('#CostName').val()=='')
{
alert('Please Enter the Costcenter Name');
swal('Please Enter the Costcenter Name');
$('#CostName').focus();
return false;
}
else if($('#txtSelectedDepartment').val()=='')
{
alert('Please Select the Department');
swal('Please Select the Department');
$('#selectDistriList').focus();
return false;
}
else if($('#ApprovedBy').val() == "-1")
{
alert('Please Select the Approver');
swal('Please Select the Approver');
$('#ApprovedBy').focus();
return false;
}
@ -529,19 +529,19 @@ var iflag = 0;
if ($("#Addbudget option:selected").val() =='-1' )
{
alert('Please Select the Budget Type ');
swal('Please Select the Budget Type ');
//return;
}
//if ($("#AddYear option:selected").val() =='0' )
if($('#AddYear').val() == '0' )
{
alert('Please Enter the Budget Year');
swal('Please Enter the Budget Year');
//return;
}
if(document.getElementById('AddAmout').value == '' )
{
alert('Please Enter the Budget Amount');
swal('Please Enter the Budget Amount');
// return;
}
@ -589,7 +589,7 @@ var iflag = 0;
}
else
{
alert(" Budget Type and Budget Year values Already Exsits in our database!");
swal(" Budget Type and Budget Year values Already Exsits in our database!");
iflag = 0;
}
@ -626,12 +626,12 @@ $('.tempClickEdit').click(function(){
if(document.getElementById('EditYear').value == '' )
{
alert('Please Enter the Budget Year');
swal('Please Enter the Budget Year');
//return;
}
if(document.getElementById('EditAmout').value == '' )
{
alert('Please Enter the Budget Amount');
swal('Please Enter the Budget Amount');
// return;
}
@ -659,7 +659,7 @@ $('.tempClickEdit').click(function(){
}
else
{
alert('Please enter all the values');
swal('Please enter all the values');
}
@ -745,7 +745,7 @@ function CountRows() {
$('#addPop').click(function () {
if ($('#distriList option:selected').val() != null) {
if($('#distriList option:selected').val()==0 ){
alert('please select Department');
swal('please select Department');
}
else
{
@ -781,7 +781,7 @@ function CountRows() {
Selectedval = '';
}
} else {
alert("Before add please select any position.");
swal("Before add please select any position.");
}
});
@ -807,7 +807,7 @@ function CountRows() {
}
}
else {
alert("Before remove please select any position.");
swal("Before remove please select any position.");
}
});
@ -826,7 +826,7 @@ function CountRows() {
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtSelectedDepartment').val('');
$('#txtRowCount').val('');
@ -835,7 +835,7 @@ function CountRows() {
}
else
{
alert("Error");
swal("Error");
}
}
@ -851,17 +851,17 @@ function validate()
if($("#txtSelectedDepartment").val().length < 1)
{
alert('Please Select Department');
swal('Please Select Department');
return false;
}
else if($("#txtRowCount").val().length < 1)
{
alert('Please Add Budget');
swal('Please Add Budget');
return false;
}
else if($("option:selected", $("#ApprovedBy")).val() == '-1')
{
alert('Please Select Approver Names');
swal('Please Select Approver Names');
return false;
}
else

View File

@ -482,52 +482,52 @@ function validate()
{
if($("#AssetName").val().length <1)
{
alert('Please Enter the AssetName');
swal('Please Enter the AssetName');
$("#AssetName").focus();
return false;
}
if($('#Description').val().length <1)
{
alert('Please Enter the Asset Description');
swal('Please Enter the Asset Description');
$("#Description").focus();
return false;
}
if($('#User').val().length <1)
{
alert('Please Enter the Asset User');
swal('Please Enter the Asset User');
$("#User").focus();
return false;
}
if($('#Location').val().length <1)
{
alert('Please Enter the Asset Location');
swal('Please Enter the Asset Location');
$("#Location").focus();
return false;
}
if($("#PONO option:selected").val() == "")
{
alert('Please Select PO Number ');
swal('Please Select PO Number ');
$("#PONO").focus();
return false;
}
if($("option:selected", $("#SelectMaterialCode")).val() == '-1')
{
alert('Please Select MaterialCode');
swal('Please Select MaterialCode');
return false;
}
if($('#DateOfCommission').val().length <1)
{
alert('Please Enter the DateOfCommission');
swal('Please Enter the DateOfCommission');
$("#DateOfCommission").focus();
return false;
}
if($("option:selected", $("#AssetStatus")).val() == '-1')
{
alert('Please Select AssetStatus');
swal('Please Select AssetStatus');
return false;
}

View File

@ -405,7 +405,7 @@ function validate()
// alert(errorflag);
if(errorflag != 0)
{
alert("Please Provide All Details..!");
swal("Please Provide All Details..!");
return false;
}

View File

@ -338,14 +338,14 @@ function validate()
if($("#PurchaseOrderNumber").val()=='0')
{
alert('Please Enter Purchase Order Number');
swal('Please Enter Purchase Order Number');
$("#PurchaseOrderNumber").focus();
return false;
}
if($("#AdvanceIn").val().length < 1)
{
alert('Please Enter Advance Amount Percentage');
swal('Please Enter Advance Amount Percentage');
$("#AdvanceIn").focus();
return false;
}

View File

@ -363,7 +363,7 @@ function selectReqNo(rowId)
else
{
alert('Same type of Requistion only can be together.')
swal('Same type of Requistion only can be together.')
$('#chk'+rowId).attr('checked', false);
}
@ -422,7 +422,7 @@ function Validate()
var ReqNo = $('#txtReqNo').val();
if(ReqNo.length <=0 )
{
alert('Please select the Requisition Number to Create Purchase Order' );
swal('Please select the Requisition Number to Create Purchase Order' );
return false;
}
else

View File

@ -2417,7 +2417,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -2503,7 +2503,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -2546,7 +2546,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -2588,7 +2588,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -2979,7 +2979,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
if(ReqAmount > BudAmount )
{
alert('Your exceeding the Avaiable Budget :'+ BudAmount +'.Please adjust the Product to proceed further.');
swal('Your exceeding the Avaiable Budget :'+ BudAmount +'.Please adjust the Product to proceed further.');
return false;
}
@ -3003,7 +3003,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
if(basicAmountRate > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#CPRate').focus();
return false;
}
@ -3017,31 +3017,31 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
{
if($('#Reqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#Reqnumber').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CPQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#CPQuantity').focus();
return false;
}
else if($('#CPRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#CPRate').focus();
return false;
}
@ -3320,7 +3320,7 @@ $('#PurQuantity').val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -3413,18 +3413,18 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
//alert(AvlBudAmt);
if(document.getElementById('serviceTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
alert('Please Enter Other Payable Terms Description');
swal('Please Enter Other Payable Terms Description');
$('#Otherpayment').focus();
return false;
}
else if(parseInt(AvlBudAmt) < parseInt(basicamt)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
@ -3445,7 +3445,7 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
success:function(data) {
if(data)
{
alert(data);
swal(data);
$('#content').loader('hide');
$('#txtRowCount').val('');
@ -3458,7 +3458,7 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
else
{
$('#content').loader('hide');
alert("Error");
swal("Error");
}
}
@ -3486,19 +3486,19 @@ EditRatechange();
if($('#EditReqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#EditReqnumber').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditCostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#EditCostCenter').focus();
return false;
}
@ -3918,43 +3918,43 @@ function validateEditCapitalTax()
if($('#EditReqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#EditReqnumber').focus();
return false;
}
else if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditCPQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditCPQuantity').focus();
return false;
}
else if($('#EditCPQuantity').val() == "0")
{
alert('Please Enter the Valid Quantity value');
swal('Please Enter the Valid Quantity value');
$('#EditCPQuantity').focus();
return false;
}
else if($('#EditCPRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditCPRate').focus();
return false;
}
else if($('#EditCPRate').val() == "0")
{
alert('Please Enter the Valid Rate of the Item');
swal('Please Enter the Valid Rate of the Item');
$('#EditCPRate').focus();
return false;
}
@ -4007,7 +4007,7 @@ function validateEditCapitalTax()
if(basicAmountRate > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditCPRate').focus();
return false;
}
@ -4307,7 +4307,7 @@ $('#EditDiscountType').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#EditDiscountType').val("0");
$('#EditCPRate').focus();
}
@ -4325,7 +4325,7 @@ function calculateDiscount(isEdit)
if($('#CPRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#CPRate').focus();
$('#txtDiscount').val('');
return false;
@ -4338,7 +4338,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtDiscount').val('');
$("#DiscountType").focus();
}
@ -4384,7 +4384,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtEditDiscount').val('');
$("#EditDiscountType").focus();
}
@ -4453,7 +4453,7 @@ function calculateFreight(isEdit)
if($('#AfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#CPRate').focus();
$('#txtFreight').val('') ;
return false;
@ -4465,7 +4465,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtFreight').val('');
$("#drpFreight").focus();
}
@ -4498,7 +4498,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#NOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -4533,7 +4533,7 @@ function calculateFreight(isEdit)
if($('#ViewAfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#ViewCPRate').focus();
$('#txtViewFreight').val('') ;
return false;
@ -4545,7 +4545,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpViewFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtViewFreight').val('');
$("#drpViewFreight").focus();
}
@ -4575,7 +4575,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#ViewNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#ViewNOOfTrips").focus();
$('#txtViewFreight').val(0)
@ -4644,7 +4644,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#AmendNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#AmendNOOfTrips").focus();
$('#AmendtxtFreight').val(0)
@ -4709,7 +4709,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -4742,7 +4742,7 @@ function calculateFreight(isEdit)
{
if($('#EditAfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditCPRate').focus();
$('#txtEditFreight').val('') ;
return false;
@ -4754,7 +4754,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpEditFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpEditFreight").focus();
}
@ -4784,7 +4784,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -4872,7 +4872,7 @@ $('#drpFreighteditloc').change(function()
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpFreighteditloc').val("0");
$('#Rate').focus();
}

View File

@ -3965,7 +3965,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -4051,7 +4051,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -4094,7 +4094,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -4136,7 +4136,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -4202,19 +4202,19 @@ EditRatechange();
if($('#Reqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#Reqnumber').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#CostCenter').focus();
return false;
}
@ -4399,7 +4399,7 @@ Calculateloadingcharge();
//alert(ReqQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#CPQuantity').focus();
return false;
@ -4749,7 +4749,7 @@ if(isNaN(CustomDutyExpenses))
if(ReqAmount > BudAmount )
{
alert('Your exceeding the Avaiable Budget :'+ BudAmount +'.Please adjust the Product to proceed further.');
swal('Your exceeding the Avaiable Budget :'+ BudAmount +'.Please adjust the Product to proceed further.');
return false;
}
@ -4996,7 +4996,7 @@ if(isNaN(CustomDutyExpenses))
}
if(basicAmountRate > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#CPRate').focus();
return false;
}
@ -5010,43 +5010,43 @@ if(isNaN(CustomDutyExpenses))
{
if($('#Reqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#Reqnumber').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CPQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#CPQuantity').focus();
return false;
}
else if($('#CPQuantity').val() == "0")
{
alert('Please Enter the Valid Quantity value');
swal('Please Enter the Valid Quantity value');
$('#CPQuantity').focus();
return false;
}
else if($('#CPRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#CPRate').focus();
return false;
}
else if($('#CPRate').val() == "0")
{
alert('Please Enter the Valid Rate of the Item');
swal('Please Enter the Valid Rate of the Item');
$('#CPRate').focus();
return false;
}
@ -5472,11 +5472,11 @@ function DeleteRow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -6032,7 +6032,7 @@ function DeleteRow(rowid)
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -6122,17 +6122,17 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
{
if(document.getElementById('serviceTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
alert('Please Enter Other Payable Terms Description');
swal('Please Enter Other Payable Terms Description');
$('#Otherpayment').focus();
return false;
}
else if(parseInt(AvlBudAmt) < parseInt(basicAmountRate)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
@ -6153,7 +6153,7 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
success:function(data) {
if(data)
{
alert(data);
swal(data);
$('#content').loader('hide');
$('#txtRowCount').val('');
@ -6168,7 +6168,7 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
else
{
$('#content').loader('hide');
alert("Error");
swal("Error");
}
}
@ -6216,19 +6216,19 @@ function clearAfterAddLineItemAdd(){
if($('#EditReqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#EditReqnumber').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditCostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#EditCostCenter').focus();
return false;
}
@ -6454,7 +6454,7 @@ var Freight=parseFloat($('#txtAfterFreightlocview').val() == '' ? '0.00' : $('#t
//alert(ReqQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditCPQuantity').focus();
return false;
@ -6744,43 +6744,43 @@ function validateEditCapitalTax()
if($('#EditReqnumber').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#EditReqnumber').focus();
return false;
}
else if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditCPQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditCPQuantity').focus();
return false;
}
else if($('#EditCPQuantity').val() == "0")
{
alert('Please Enter the Valid Quantity value');
swal('Please Enter the Valid Quantity value');
$('#EditCPQuantity').focus();
return false;
}
else if($('#EditCPRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditCPRate').focus();
return false;
}
else if($('#EditCPRate').val() == "0")
{
alert('Please Enter the Valid Rate of the Item');
swal('Please Enter the Valid Rate of the Item');
$('#EditCPRate').focus();
return false;
}
@ -6885,7 +6885,7 @@ var Freight=parseFloat($('#txtAfterFreightlocedit').val() == '' ? '0.00' : $('#t
}
if(basicAmountRate > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditCPRate').focus();
return false;
}
@ -7305,7 +7305,7 @@ $('#drpFreight').change(function() {
}
else
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#drpFreight').val("0");
$('#CPRate').focus();
}
@ -7346,7 +7346,7 @@ $('#drpEditFreight').change(function() {
}
else
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#drpEditFreight').val("0");
$('#EditCPRate').focus();
}
@ -7387,7 +7387,7 @@ $('#drpViewFreight').change(function() {
}
else
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#drpViewFreight').val("0");
$('#ViewCPRate').focus();
}
@ -7402,7 +7402,7 @@ function calculateFreight(isEdit)
if($('#AfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#CPRate').focus();
$('#txtFreight').val('') ;
return false;
@ -7414,7 +7414,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtFreight').val('');
$("#drpFreight").focus();
}
@ -7447,7 +7447,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#NOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -7482,7 +7482,7 @@ function calculateFreight(isEdit)
if($('#ViewAfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#ViewCPRate').focus();
$('#txtViewFreight').val('') ;
return false;
@ -7494,7 +7494,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpViewFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtViewFreight').val('');
$("#drpViewFreight").focus();
}
@ -7524,7 +7524,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#ViewNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#ViewNOOfTrips").focus();
$('#txtViewFreight').val(0)
@ -7593,7 +7593,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#NOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -7658,7 +7658,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -7691,7 +7691,7 @@ function calculateFreight(isEdit)
{
if($('#EditAfterBasicPriceTax').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditCPRate').focus();
$('#txtEditFreight').val('') ;
return false;
@ -7703,7 +7703,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpEditFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpEditFreight").focus();
}
@ -7733,7 +7733,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -7790,7 +7790,7 @@ function calculateFreight(isEdit)
}
else
{
alert('Please Rate Field Value');
swal('Please Rate Field Value');
$('#CPRate').focus();
}
@ -7820,7 +7820,7 @@ $('#EditDiscountType').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#EditDiscountType').val("0");
$('#EditCPRate').focus();
}
@ -7837,7 +7837,7 @@ function calculateDiscount(isEdit)
if($('#CPRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#CPRate').focus();
$('#txtDiscount').val('');
return false;
@ -7850,7 +7850,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtDiscount').val('');
$("#DiscountType").focus();
}
@ -7896,7 +7896,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtEditDiscount').val('');
$("#EditDiscountType").focus();
}
@ -8021,7 +8021,7 @@ $('#drpFreightloc').change(function()
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpFreightloc').val("0");
$('#Rate').focus();
}
@ -8192,7 +8192,7 @@ $('#drpFreighteditloc').change(function()
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpFreighteditloc').val("0");
$('#Rate').focus();
}

View File

@ -149,7 +149,7 @@ $( document ).ready(function() {
}
else
{
alert('Please select the PayOn');
swal('Please select the PayOn');
return false;
}
@ -697,18 +697,18 @@ var iflag = 0;
if ($("#Addbudget option:selected").val() =='-1' )
{
alert('Please Select the Budget Type ');
swal('Please Select the Budget Type ');
//return;
}
if($('#AddYear').val() == '0' )
{
alert('Please Enter the Budget Year');
swal('Please Enter the Budget Year');
//return;
}
if(document.getElementById('AddAmout').value == '' )
{
alert('Please Enter the Budget Amount');
swal('Please Enter the Budget Amount');
// return;
}
@ -758,7 +758,7 @@ var iflag = 0;
}
else
{
alert(" Budget Type and Budget Year values Already Exsits in our database!");
swal(" Budget Type and Budget Year values Already Exsits in our database!");
iflag = 0;
}
@ -798,12 +798,12 @@ $('.tempClickEdit').click(function(){
if(document.getElementById('EditYear').value == '' )
{
alert('Please Enter the Budget Year');
swal('Please Enter the Budget Year');
//return;
}
if(document.getElementById('EditAmout').value == '' )
{
alert('Please Enter the Budget Amount');
swal('Please Enter the Budget Amount');
// return;
}
@ -828,7 +828,7 @@ $('.tempClickEdit').click(function(){
$('#Remarks'+userid).val(BudRemarks); }
else
{
alert('Please enter all the values');
swal('Please enter all the values');
}
@ -860,7 +860,7 @@ $('.tempClickEdit').click(function(){
$('#addPop').click(function () {
if ($('#distriList option:selected').val() != null) {
if($('#distriList option:selected').val()==0 ){
alert('please select Department');
swal('please select Department');
}
else{
var tempSelect = $('#distriList option:selected').val();
@ -902,7 +902,7 @@ $('.tempClickEdit').click(function(){
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtSelectedDepartment').val('');
$('#txtRowCount').val('');
@ -926,7 +926,7 @@ $('.tempClickEdit').click(function(){
}
}
else {
alert("Before add please select any position.");
swal("Before add please select any position.");
}
});
@ -958,7 +958,7 @@ $('.tempClickEdit').click(function(){
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtSelectedDepartment').val('');
$('#txtRowCount').val('');
@ -978,7 +978,7 @@ $('.tempClickEdit').click(function(){
else
{
alert("Before remove please select any position.");
swal("Before remove please select any position.");
}
});
@ -997,7 +997,7 @@ $('.tempClickEdit').click(function(){
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtSelectedDepartment').val('');
$('#txtRowCount').val('');
@ -1078,7 +1078,7 @@ function validate()
}
else */ if($("option:selected", $("#ApprovedBy")).val() == '-1')
{
alert('Please Select Approver Names');
swal('Please Select Approver Names');
return false;
}
else

View File

@ -198,7 +198,7 @@ function validatePAN() {
{
if (regpan.test(PAN) == false)
{
alert('Please Enter Valid PAN Number');
swal('Please Enter Valid PAN Number');
return (false);
}
else
@ -208,7 +208,7 @@ function validatePAN() {
}
else
{
alert('Please Enter PAN Number');
swal('Please Enter PAN Number');
return (false);
}
@ -234,7 +234,7 @@ function ValidateAadhar(){
if(reg.test(aadhar)== false)
{
//alert('alskdjsakjf');
alert('Please Enter Valid Aadhar Number');
swal('Please Enter Valid Aadhar Number');
return (false);
}
else
@ -263,7 +263,7 @@ function validateDriverLicense() {
{
if (reg.test(VehicleNo) == false)
{
alert('Please Enter Valid Driver License Number');
swal('Please Enter Valid Driver License Number');
return (false);
}
else
@ -277,27 +277,27 @@ function Validate()
{
if($("#FirstName").val().length < 1)
{
alert('Please Enter FirstName');
swal('Please Enter FirstName');
return;
}
if($("#LastName").val().length < 1)
{
alert('Please Enter LastName');
swal('Please Enter LastName');
return;
}
if($("#FatherName").val().length < 1)
{
alert('Please Enter FatherName');
swal('Please Enter FatherName');
return;
}
if($("#DateofBirth").val().length < 1)
{
alert('Please Enter Date of Birth');
swal('Please Enter Date of Birth');
return;
}
if ( $('#ContactNumber').val().length < 1 )
{
alert('Please Enter Contact Number');
swal('Please Enter Contact Number');
return;
}
else if(!getMobileValidation())
@ -326,42 +326,42 @@ function Validate()
if($("option:selected", $("#gender")).val() == '-1')
{
alert('Please Select Gender');
swal('Please Select Gender');
$('#gender').focus();
return;
}
if($("option:selected", $("#MartialStatus")).val() == "-1")
{
alert('Please Select Martial Status');
swal('Please Select Martial Status');
$('#MartialStatus').focus();
return;
}
if($("option:selected", $("#bloodgroup")).val() == "-1")
{
alert('Please Select Blood group ');
swal('Please Select Blood group ');
$("#bloodgroup").focus();
return;
}
if($("#currentaddress").val().length < 1)
{
alert('Please Enter Current Address');
swal('Please Enter Current Address');
return;
}
if($("#permanentaddress").val().length < 1)
{
alert('Please Enter Permanent Address');
swal('Please Enter Permanent Address');
return;
}
if($("#emergencycontactname").val().length < 1)
{
alert('Please Enter Emergency Contact Name');
swal('Please Enter Emergency Contact Name');
return;
}
if($("#emergencycontactnumber").val().length < 1)
{
alert('Please Enter Emergency Contact Number');
swal('Please Enter Emergency Contact Number');
return;
}
else if(!getValidEmergencyNumber())
@ -384,7 +384,7 @@ function getMobileValidation() {
var contactNumber = $('#ContactNumber').val().length;
if(contactNumber < 10)
{
alert('Please Enter valid Contact Number');
swal('Please Enter valid Contact Number');
return false;
}
else
@ -396,7 +396,7 @@ function getValidEmergencyNumber() {
var contactNumber = $('#emergencycontactnumber').val().length;
if(contactNumber < 10)
{
alert('Please Enter valid Emergency Contact Number');
swal('Please Enter valid Emergency Contact Number');
return false;
}
else
@ -408,7 +408,7 @@ function getValidReferNumber() {
var contactNumber = $('#referrercontno').val().length;
if(contactNumber > 0 && contactNumber < 10)
{
alert('Please Enter valid Refernce Contact Number');
swal('Please Enter valid Refernce Contact Number');
return false;
}
else
@ -425,7 +425,7 @@ function validateEmail() {
{
if (reg.test(email) == false)
{
alert('Please Enter Valid Email Address');
swal('Please Enter Valid Email Address');
return (false);
}
else
@ -444,7 +444,7 @@ function validatecomEmail() {
{
if (reg.test(email) == false)
{
alert('Please Enter Valid Company Email Address');
swal('Please Enter Valid Company Email Address');
return (false);
}
else
@ -463,7 +463,7 @@ function validateESI() {
{
if (reg.test(ESI) == false)
{
alert('Please Enter Valid ESI Number');
swal('Please Enter Valid ESI Number');
return (false);
}
else
@ -482,7 +482,7 @@ function validatePF() {
{
if (regpf.test(PF) == false)
{
alert('Please Enter Valid PF Number');
swal('Please Enter Valid PF Number');
return (false);
}
else
@ -501,7 +501,7 @@ function validateUA() {
{
if (reg.test(UA) == false)
{
alert('Please Enter Valid UA Number');
swal('Please Enter Valid UA Number');
return (false);
}
else
@ -588,7 +588,7 @@ function ValidatePassport()
//alert(passport);
if(regsaid.test(passport) == false)
{
alert('You have entered invalid Passport.');
swal('You have entered invalid Passport.');
return;
}
@ -1166,7 +1166,7 @@ function onlyAlphabets(evt) {
success:function(data) {
if(data)
{
alert( data+""+" Employee already exists in the database.Please Change the mail id");
swal( data+""+" Employee already exists in the database.Please Change the mail id");
return false;
//window.location = 'Employeedetails/employeeListing';
}
@ -1188,7 +1188,7 @@ function onlyAlphabets(evt) {
url:"<?php echo base_url();?>employeedetails/checkPAN",
success:function(data) {
if(data)
{alert( data+""+" Employee already exists in the database.Please Change the Pan Card Number");
{swal( data+""+" Employee already exists in the database.Please Change the Pan Card Number");
$('#panno').val('');
$('#panno').focus();
//return false;
@ -1212,7 +1212,7 @@ function onlyAlphabets(evt) {
success:function(data) {
if(data)
{
alert( data+""+" Employee already exists in the database.Please Change the Aadhar card Number");
swal( data+""+" Employee already exists in the database.Please Change the Aadhar card Number");
$('#aadharno').val('');
$('#aadharno').focus();
//return false;

View File

@ -2150,7 +2150,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -2237,7 +2237,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -2276,7 +2276,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -2313,7 +2313,7 @@ function EditQtyZerocheck()
{
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
{
alert('Please Enter A Valid Number for Rate and Quantity');
swal('Please Enter A Valid Number for Rate and Quantity');
$('#EdittxtBasicValue').val(0);
$('#EditimBasicPrice').val(0);
var txtexchangerate=parseFloat($('#ExchangeRate').val());
@ -2361,19 +2361,19 @@ function Ratechange(){
//alert();
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#CostCenter').focus();
return false;
}
@ -2465,7 +2465,7 @@ function ExceedEditQuantityCheck()
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditQuantity').focus();
return false;
}
@ -2747,37 +2747,37 @@ function validateImport()
//alert();
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
else if($('#imBasicPrice').val()=='')
{
alert('Please Enter Basic Price In Us');
swal('Please Enter Basic Price In Us');
$('#imBasicPrice').focus();
return false;
}
@ -3199,7 +3199,7 @@ function validateEditExceedLimit()
if(exp > totavlbud || totalAmount > totavlbud)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -3331,7 +3331,7 @@ function Budgetcheck()
//console.log(TotalSum);
if(totordring>TotalSum)
{
alert('You are Exceeding The Budget Amount');
swal('You are Exceeding The Budget Amount');
return false;
}
@ -3363,7 +3363,7 @@ if(validate()&&Budgetcheck())
if(document.getElementById('ImportTax').rows.length <= 0)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
@ -3381,7 +3381,7 @@ if(validate()&&Budgetcheck())
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
//$('#SpcialInstruction').val('');
@ -3391,7 +3391,7 @@ if(validate()&&Budgetcheck())
}
else
{
alert("Error");
swal("Error");
}
}
@ -3484,7 +3484,7 @@ $('#drpamendFreight').change(function(){
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpamendFreight').val("0");
$('#EditRate').focus();
}
@ -3502,14 +3502,14 @@ function calculateFreight()
//alert('af');
if($('#EditMaterialCode').val() == '')
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#edittxtFreight').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#AmendtxtFreight').val('');
return false;
@ -3520,7 +3520,7 @@ function calculateFreight()
var FreightType =$("#drpamendFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#AmendtxtFreight').val('');
$("#drpamendFreight").focus();
}
@ -3550,7 +3550,7 @@ function calculateFreight()
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#AmendNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#AmendNOOfTrips").focus();
$('#AmendtxtFreight').val(0)

View File

@ -459,10 +459,10 @@ function calculateBasic()
var Totalsalary = document.getElementById('Total_Salary').value;;
var HRA=document.getElementById('HRA_Rate').value;
if(HRA==''){
alert("Please Enter HRA RATE..");
swal("Please Enter HRA RATE..");
document.getElementById('HRA_Rate').focus();
}else if(Totalsalary==''){
alert("Please Enter Total Salary..");
swal("Please Enter Total Salary..");
document.getElementById('Total_Salary').focus();
}
else{
@ -488,7 +488,7 @@ function duecalculation()
{
if(due == 0)
{
alert("Enter Monthly Due Amount....!");
swal("Enter Monthly Due Amount....!");
$('#monthly_due').focus();
}
else
@ -498,7 +498,7 @@ function duecalculation()
if(totaldue < 1)
{
alert("Please Enter Correct Due Amount..!");
swal("Please Enter Correct Due Amount..!");
$('#monthly_due').focus();
}
else{
@ -551,7 +551,7 @@ function finalCheck()
var due=document.getElementById('monthly_due').value;
var dsdate=document.getElementById('due_started').value;
if(idate == "" || due == "" || due == 0.00 || dsdate == ""){
alert("Enter All Loan Information Correctly...!");
swal("Enter All Loan Information Correctly...!");
return false;
}
}
@ -559,7 +559,7 @@ function finalCheck()
if($('#Total_Salary').val() == '' || $('#HRA_Rate').val() == '' || $('#Allowances').val() == '' ||$('#PF_Rate').val() == '' ||$('#ESI_Rate').val() == '' || $('#Food_Allowances').val() == '')
{
alert("Please Enter All Information Correctly..!");
swal("Please Enter All Information Correctly..!");
return false;
}
}
@ -581,7 +581,7 @@ $("#deleteemp").click(function(){
if(result)
{
alert(result);
swal(result);
$('#content').loader('hide');
window.location.href = "<?php echo base_url();?>emppayListings";

View File

@ -52,7 +52,7 @@ function validateLOP(){
//alert(x);
//var ck_lopdays = /^[0-9]{1,2}([.][0-9]{1,2})$/;
if( x > 32){
alert("LOP Days 0 to 31 Days Allowed.")
swal("LOP Days 0 to 31 Days Allowed.")
//$("#LOPDays").css({"border-style":"dotted","border-color":"#ff8080","border-width":"2px","background-color":"#ffe6e6"});
//$("#LOPDays").attr("title","0 to 31 Days Only");

View File

@ -766,7 +766,7 @@ function calculateSalary()
var res2 = isNaN($('#incentive').val());
if(res || res1 || res2)
{
alert("Enter a Number");
swal("Enter a Number");
return false;
}else
{
@ -821,11 +821,11 @@ $("#save").click(function(){
var i =result;
if(i == "1")
{
alert("sucessfully Updated..!");
swal("sucessfully Updated..!");
}
else
{
alert("Something went wrong. Try later..!");
swal("Something went wrong. Try later..!");
}
window.location.href = "<?php echo base_url();?>PaysilpListing";
}

View File

@ -388,7 +388,7 @@ function calculateDiscount()
if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -400,7 +400,7 @@ function calculateDiscount()
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtEditDiscount').val('');
$("#EditDiscountType").focus();
}
@ -483,7 +483,7 @@ function calculatePackaging()
if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -497,7 +497,7 @@ function calculatePackaging()
if(PackagingType == "0")
{
alert('Please select the Packaging Type');
swal('Please select the Packaging Type');
$('#txtEditPackaging').val('');
$("#EditPackagingType").focus();
}
@ -511,7 +511,7 @@ function calculatePackaging()
{
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditPackaging').val('');
return false;
@ -628,7 +628,7 @@ function calculatePackaging()
if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -667,7 +667,7 @@ function calculatePackaging()
if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -716,7 +716,7 @@ function calculatePackaging()
if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -727,7 +727,7 @@ function calculatePackaging()
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpEditFreight").focus();
}
@ -743,7 +743,7 @@ function calculatePackaging()
if(FreightCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
{
//alert(FreightType);
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditFreight').val('');
return false;
@ -789,7 +789,7 @@ function calculatePackaging()
var nooftrips=$('#EditNOOfTrips').val();
var freightrate=$('#txtEditFreight').val();
if((nooftrips == '') || (txtEditFreight == '')){
alert("Please Enter Number of Trips or Freight Rate!");
swal("Please Enter Number of Trips or Freight Rate!");
$('#EditNOOfTrips').val(0.0);
$('#txtEditFreight').val(0.0);
$('#txtEditAfterFreight').val(0.0);
@ -883,7 +883,7 @@ function validateEditExceedLimit()
//alert(basicAmountRate+'-'+avalbudAmt+'-'+discount);
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -2513,25 +2513,25 @@ function validateEditRevenueTax()
{
if($('#EditCostCenter').val() == "")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0)
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditRate').val() == '' || $('#EditRate').val() == 0)
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditRate').focus();
return false;
}
@ -2566,7 +2566,7 @@ function validateBudgetExceedLimit()
if(basicAmountRate > avalbudAmt || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('.content').loader('hide');
$('#Rate').focus();
return false;
@ -2615,12 +2615,12 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
//alert(realrows);
if(document.getElementById('revenueTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else if(parseInt(AvlBudAmt) < (parseInt(txtTotBasicAmount) - parseInt(txtTotalDiscount))) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
@ -2636,7 +2636,7 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
if(data)
{
$('.content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
@ -2648,7 +2648,7 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
else
{
$('.content').loader('hide');
alert("Error");
swal("Error");
}
}

View File

@ -344,7 +344,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -381,7 +381,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -416,7 +416,7 @@ $("#txtEditBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -707,13 +707,13 @@ function calculateDiscount(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -725,7 +725,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtDiscount').val('');
$("#DiscountType").focus();
}
@ -761,13 +761,13 @@ function calculateDiscount(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -779,7 +779,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtEditDiscount').val('');
$("#EditDiscountType").focus();
}
@ -820,13 +820,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -839,7 +839,7 @@ function calculatePackaging(isEdit)
if(PackagingType == "0")
{
alert('Please select the Packaging Type');
swal('Please select the Packaging Type');
$('#txtPackaging').val('');
$("#PackagingType").focus();
}
@ -853,7 +853,7 @@ function calculatePackaging(isEdit)
{
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtPackaging').val('');
$('#DiscountType').focus();
@ -894,13 +894,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -914,7 +914,7 @@ function calculatePackaging(isEdit)
if(PackagingType == "0")
{
alert('Please select the Packaging Type');
swal('Please select the Packaging Type');
$('#txtEditPackaging').val('');
$("#EditPackagingType").focus();
}
@ -928,7 +928,7 @@ function calculatePackaging(isEdit)
{
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditPackaging').val('');
return false;
@ -971,14 +971,14 @@ function calculatePackaging(isEdit)
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtExciseDuty').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#txtExciseDuty').val('');
$('#Rate').focus();
return false;
@ -1001,7 +1001,7 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#DiscountType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1016,14 +1016,14 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#DiscountType').focus();
$('#txtExciseDuty').val('');
return false;
}
else if($('#txtAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#PackagingType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1040,7 +1040,7 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#PackagingType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1067,13 +1067,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1097,7 +1097,7 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1112,14 +1112,14 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditExciseDuty').val('');
return false;
}
else if($('#txtEditAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#EditPackagingType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1135,7 +1135,7 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#EditPackagingType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1167,13 +1167,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -1187,7 +1187,7 @@ function calculatePackaging(isEdit)
if($('#txtAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtExciseDuty').focus();
$('#txtVat').val('');
return false;
@ -1223,13 +1223,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1244,7 +1244,7 @@ function calculatePackaging(isEdit)
if($('#txtEditAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtEditAfterExciseDuty').focus();
$('#txtEditVat').val('');
return false;
@ -1284,13 +1284,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -1304,7 +1304,7 @@ function calculatePackaging(isEdit)
if($('#txtAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtExciseDuty').focus();
$('#txtAfterCST').val('');
return false;
@ -1340,13 +1340,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1361,7 +1361,7 @@ function calculatePackaging(isEdit)
if($('#txtEditAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtEditAfterExciseDuty').focus();
$('#txtEditCST').val('');
return false;
@ -1403,13 +1403,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -1440,13 +1440,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1481,13 +1481,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -1519,13 +1519,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1562,13 +1562,13 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
return false;
}
@ -1578,7 +1578,7 @@ function calculatePackaging(isEdit)
var FreightType =$("#drpFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtFreight').val('');
$("#drpFreight").focus();
}
@ -1594,7 +1594,7 @@ function calculatePackaging(isEdit)
{
if($(FreightCalculation != 0 && '#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtFreight').val('');
$('#DiscountType').focus();
@ -1622,7 +1622,7 @@ function calculatePackaging(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#NOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -1664,7 +1664,7 @@ function calculatePackaging(isEdit)
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1674,7 +1674,7 @@ function calculatePackaging(isEdit)
var FreightType =$("#drpEditFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpEditFreight").focus();
}
@ -1693,7 +1693,7 @@ function calculatePackaging(isEdit)
{
if($(FreightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtEditFreight').val('');
$('#DiscountType').focus();
@ -1721,7 +1721,7 @@ function calculatePackaging(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -1763,7 +1763,7 @@ function calculatePackaging(isEdit)
}
else if($('#ViewRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#ViewRate').focus();
return false;
}
@ -1773,7 +1773,7 @@ function calculatePackaging(isEdit)
var FreightType =$("#drpViewFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtViewFreight').val('');
$("#drpViewFreight").focus();
}
@ -1792,7 +1792,7 @@ function calculatePackaging(isEdit)
{
if($(FreightCalculation != 0 && '#txtViewAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtViewFreight').val('');
$('#DiscountType').focus();
@ -1821,7 +1821,7 @@ function calculatePackaging(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#ViewNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#ViewNOOfTrips").focus();
$('#txtViewFreight').val(0)
@ -1963,7 +1963,7 @@ SetVatorCST();
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//$('#Quantity').val(RequistQuantity);
$('#Quantity').focus();
return false;
@ -1980,7 +1980,7 @@ SetVatorCST();
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditQuantity').focus();
return false;
}
@ -2070,7 +2070,7 @@ function validateEditExceedLimit()
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -4528,25 +4528,25 @@ function validateEditRevenueTax()
{
if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditRate').focus();
return false;
}
@ -4647,7 +4647,7 @@ function validateBudgetExceedLimit()
avalbudAmt = parseFloat(data);
if(basicAmountRate > avalbudAmt || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#Rate').focus();
return false;
@ -4748,12 +4748,12 @@ function DeleteRow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -4848,7 +4848,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
{
if(document.getElementById('revenueTax').rows.length < 2)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
@ -4857,18 +4857,18 @@ var totaldiscount = $('#txtTotalDiscount').val();
// return false;
//}
else if(parseInt(AvlBudAmt) < (parseInt(txtTotalbasicamount)- parseInt(totaldiscount))){
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
alert('Please Enter Payable Terms Description');
swal('Please Enter Payable Terms Description');
$('#Otherpayment').focus();
return false;
}
else if($('#insurancestatus').val() == 1 && $('#insuranceno').val() == ''){
alert('Please Enter Insurance No..!');
swal('Please Enter Insurance No..!');
$('#insurance').focus();
return false;
}
@ -4883,7 +4883,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
@ -4895,7 +4895,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
else
{
$('#content').loader('hide');
alert("Error");
swal("Error");
}
}
@ -5127,7 +5127,7 @@ $("#AvlBudAmt").val('');
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';

View File

@ -279,7 +279,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -404,7 +404,7 @@ for(i=2;i<=rows;i++){
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -438,7 +438,7 @@ $('#MaterialCode').change(function() {
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -475,7 +475,7 @@ $("#EditQuantity").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -487,19 +487,19 @@ function Ratechange(){
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#CostCenter').focus();
return false;
}
@ -536,7 +536,7 @@ function EditRatechange(){
if($('#EditCostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#EditCostCenter').focus();
return false;
}
@ -602,7 +602,7 @@ function IGSTchange()
if(ReqAmount > BudAmount )
{
alert('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.');
swal('Your exceeding the Avaiable Budget :'+ AvilBudAmt +'.Please adjust the Product to proceed further.');
return false;
}
else
@ -1981,11 +1981,11 @@ function DeleteRow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -2045,31 +2045,31 @@ function validateServiceTax()
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
@ -2093,25 +2093,25 @@ function validateServiceTax()
if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0.00)
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditRate').val() == '' || $('#EditRate').val() == 0.00)
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditRate').focus();
return false;
}
@ -2125,7 +2125,7 @@ function validateServiceTax()
return false;
}
else if($('#EdittxtSpcialInstruction').val()==''){
alert('Please Enter the Service Description');
swal('Please Enter the Service Description');
$('#EdittxtSpcialInstruction').focus();
return false;
}
@ -2164,17 +2164,17 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
if(validate())
{
if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
alert('Please Enter Other Payment Details');
swal('Please Enter Other Payment Details');
$('#Otherpayment').focus();
return false;
}
else if($('#amenddescofpo').val().trim()==''){
alert('Please Enter Description Of Service');
swal('Please Enter Description Of Service');
$('#amenddescofpo').focus();
return false;
}
@ -2189,7 +2189,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
$('#txtStatus').val('');
@ -2201,7 +2201,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
else
{
$('#content').loader('hide');
alert("Error");
swal("Error");
}
}

View File

@ -133,7 +133,7 @@ if(!empty($supplier))
function blockKeyPress(evt)
{
var charCode = (evt.which) ? evt.which : evt.keyCode;
alert(charCode);
swal(charCode);
if(charCode == 8 || charCode == 46 )
{
@ -171,7 +171,7 @@ var reg = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;//(?=.*[A-Za-z]).{5,}(?=.*[0
{
if (reg.test(PAN) == false)
{
alert('Please Enter Valid PAN Number');
swal('Please Enter Valid PAN Number');
return (false);
}
else
@ -181,7 +181,7 @@ var reg = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;//(?=.*[A-Za-z]).{5,}(?=.*[0
}
else
{
alert('Please Enter PAN Number');
swal('Please Enter PAN Number');
return (false);
}
@ -195,7 +195,7 @@ function validateECCNumber() {
{
if (reg.test(ECC) == false)
{
alert('Please Enter Valid Excise Control Code Number');
swal('Please Enter Valid Excise Control Code Number');
return (false);
}
else
@ -235,13 +235,13 @@ function getContactNumberValidation(){
}
else{
alert('Please Enter valid Contact Number ex: 044 12345678 , 0444 1234567,04444 123456 and 9876543210');//alert('need to change:'+contactNumber);
swal('Please Enter valid Contact Number ex: 044 12345678 , 0444 1234567,04444 123456 and 9876543210');//alert('need to change:'+contactNumber);
return false;
}
}
else{
alert('please correct format of contact number');
swal('please correct format of contact number');
//alert('invalid'+contactNumber);
return false;
}
@ -274,13 +274,13 @@ function getContactNumberValidation(){
}
else{
alert('Please Enter valid Contact Number ex: 044 12345678 , 0444 1234567,04444 123456 and 9876543210');//alert('need to change:'+contactNumber);
swal('Please Enter valid Contact Number ex: 044 12345678 , 0444 1234567,04444 123456 and 9876543210');//alert('need to change:'+contactNumber);
return false;
}
}
else{
alert('please correct format of contact number');
swal('please correct format of contact number');
//alert('invalid'+contactNumber);
return false;
}
@ -297,7 +297,7 @@ function validateEmail() {
{
if (reg.test(email) == false)
{
alert('Please Enter Valid Email Address');
swal('Please Enter Valid Email Address');
return (false);
}
else
@ -307,7 +307,7 @@ function validateEmail() {
}
else
{
alert('Please Enter email id');
swal('Please Enter email id');
}
}
@ -321,7 +321,7 @@ function validateGST() {
{
if (reg.test(GST) == false)
{
alert('Please Enter Valid GST Number Format should be 12ABCDE1234A1Z1 or 12ABCDE1234A1ZA');
swal('Please Enter Valid GST Number Format should be 12ABCDE1234A1Z1 or 12ABCDE1234A1ZA');
return (false);
}
else
@ -331,7 +331,7 @@ function validateGST() {
}
else
{
alert('Please Enter GST Number');
swal('Please Enter GST Number');
return (false);
}
@ -345,7 +345,7 @@ function validateUA() {
{
if (reguano.test(UA) == false)
{
alert('Please Enter Valid UA Number');
swal('Please Enter Valid UA Number');
return (false);
}
else
@ -685,7 +685,7 @@ function Validate()
// }
if($("#supplierName").val().length < 1)
{
alert('Please Enter Supplier Name');
swal('Please Enter Supplier Name');
$("#supplierName").focus();
return false;
}
@ -702,14 +702,14 @@ if(!getContactNumberValidation)
if($("#Address").val().length < 1)
{
alert('Please Enter Address');
swal('Please Enter Address');
$("#Address").focus();
return false;
}
if($("#TIN").val().length < 1)
{
alert('Please Enter TIN number');
swal('Please Enter TIN number');
$("#TIN").focus();
return false;
}
@ -735,7 +735,7 @@ if(!validateGST())
success:function(data) {
if(data)
{
alert(data+""+" supplier details is already exists in the database.Do you want to change the SUPPLIER details?");
swal(data+""+" supplier details is already exists in the database.Do you want to change the SUPPLIER details?");
$('#panno').val('');
$('#panno').focus();
@ -758,7 +758,7 @@ if(!validateGST())
}
else
{
alert('Please enter the PAN Number');
swal('Please enter the PAN Number');
$('#panno').focus();
// return false;
}
@ -777,7 +777,7 @@ if(!validateGST())
success:function(data) {
if(data)
{
alert(data + " " +" supplier details is already exists in the database.Do you want to change the SUPPLIER details?");
swal(data + " " +" supplier details is already exists in the database.Do you want to change the SUPPLIER details?");
$('#GSTNo').val('');
$('#GSTNo').focus();
@ -802,7 +802,7 @@ if(!validateGST())
}
else
{
alert('Please enter the GST Number');
swal('Please enter the GST Number');
$('#GSTNo').focus();
return false;
}

View File

@ -426,7 +426,7 @@ function validate()
{
if($("option:selected", $("#ApprovedBy")).val() == '-1')
{
alert('Please Select Approver Names');
swal('Please Select Approver Names');
return false;
}
else

View File

@ -3355,7 +3355,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -3445,7 +3445,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -3487,7 +3487,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -3528,7 +3528,7 @@ function EditQtyZerocheck()
{
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
{
alert('Please Enter A Valid Number for Rate and Quantity');
swal('Please Enter A Valid Number for Rate and Quantity');
$('#EdittxtBasicValue').val(0);
$('#EditimBasicPrice').val(0);
var txtexchangerate=parseFloat($('#ExchangeRate').val());
@ -3576,7 +3576,7 @@ function QtyZerocheck()
{
if(($('#Rate').val()=="0")||$('#Quantity').val()=="0"||($('#Rate').val()=='')||$('#Quantity').val()=='')
{
alert('Please Enter A Valid Number for Rate and Quantity');
swal('Please Enter A Valid Number for Rate and Quantity');
$('#txtBasicValue').val(0);
$('#imBasicPrice').val(0);
$('#ExchangeRt').val(0);
@ -3598,19 +3598,19 @@ function Ratechange()
//alert();
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the CostCenterCode');
swal('Please select the CostCenterCode');
$('#CostCenter').focus();
return false;
}
@ -3799,7 +3799,7 @@ function ExceedEditQuantityCheck()
//var ReqQuantity=parseFloat($('#EditQuantity').val());
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditQuantity').focus();
return false;
}
@ -4300,7 +4300,7 @@ function ExceedQuantityCheck()
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//$('#Quantity').val(RequistQuantity);
$('#Quantity').focus();
return false;
@ -4332,7 +4332,7 @@ function validateEditExceedLimit()
if(exp > totavlbud || totalAmount > totavlbud)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -4370,7 +4370,7 @@ var totavlbud=avalbudAmt+Sum;
if(exp > totavlbud || totalAmount > totavlbud)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#Rate').focus();
return false;
}
@ -4737,37 +4737,37 @@ function validateImport()
//alert();
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
else if($('#MaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#MaterialCode').focus();
return false;
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
else if($('#imBasicPrice').val()=='')
{
alert('Please Enter Basic Price In Us');
swal('Please Enter Basic Price In Us');
$('#imBasicPrice').focus();
return false;
}
@ -5561,11 +5561,11 @@ function DeleteRow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -5683,7 +5683,7 @@ function Budgetcheck()
//console.log(TotalSum);
if(totordring>TotalSum)
{
alert('You are Exceeding The Budget');
swal('You are Exceeding The Budget');
return false;
}
@ -5741,7 +5741,7 @@ if(validate()&&Budgetcheck())
if(document.getElementById('ImportTax').rows.length <= 0)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
@ -5759,7 +5759,7 @@ if(validate()&&Budgetcheck())
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
//$('#SpcialInstruction').val('');
@ -5769,7 +5769,7 @@ if(validate()&&Budgetcheck())
}
else
{
alert("Error");
swal("Error");
}
}
@ -5892,7 +5892,7 @@ $('#edittxtAfterFreight').val('');
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpEditFreight').val("0");
$('#EditRate').focus();
}
@ -5940,7 +5940,7 @@ if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" )
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpaddFreight').val("0");
$('#Rate').focus();
}
@ -5960,14 +5960,14 @@ function calculateFreight(isEdit)
{ //alert();
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtFreight').val('') ;
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#addtxtFreight').val('') ;
return false;
@ -5979,7 +5979,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpaddFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#addtxtFreight').val('');
$("#drpaddFreight").focus();
}
@ -6010,7 +6010,7 @@ function calculateFreight(isEdit)
{
if($('#addNOOfTrips').val()=='')
{
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#addNOOfTrips").focus();
$('#addtxtFreight').val(0)
@ -6053,14 +6053,14 @@ function calculateFreight(isEdit)
// alert('af');
if($('#EditMaterialCode').val() == '')
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#edittxtFreight').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#edittxtFreight').val('');
return false;
@ -6071,7 +6071,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpeditFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#edittxtFreight').val('');
$("#drpeditFreight").focus();
}
@ -6101,7 +6101,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#editNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#editNOOfTrips").focus();
$('#edittxtFreight').val(0)
@ -6142,7 +6142,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpviewFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#viewtxtFreight').val('');
$("#drpviewFreight").focus();
}
@ -6172,7 +6172,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#viewNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#viewNOOfTrips").focus();
$('#viewtxtFreight').val(0)

View File

@ -649,7 +649,7 @@ $("#UOM").val('');
$("#mypo").on("shown.bs.modal", function(e) {
if($("option:selected", $("#CostCenter")).val() == '-1')
{
alert('Please select the CostCenter ');
swal('Please select the CostCenter ');
e.close();
}
});
@ -661,13 +661,13 @@ $("#mypo").on("shown.bs.modal", function(e) {
if ($("#MaterialCode option:selected").val() =='-1' )
{
alert('Please Select the MaterialCode ');
swal('Please Select the MaterialCode ');
return false;
}
if(document.getElementById('Quantity').value == '' )
{
alert('Please Enter the Quantity');
swal('Please Enter the Quantity');
return false;
}
@ -872,14 +872,14 @@ function Deleterow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -959,14 +959,14 @@ function Deleterow(rowid)
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
}
else
{
alert("Error");
swal("Error");
}
}});
@ -981,7 +981,7 @@ function validateBeforeAdd()
if ($("#CostCenter option:selected").val() =='-1' )
{
alert('Please Select the CostCenterCode ');
swal('Please Select the CostCenterCode ');
$("#CostCenter").focus();
return false;
}
@ -990,7 +990,7 @@ function validateBeforeAdd()
else if( isExceed == '1')
{
alert('You dont have available Budget Amount. You cant raise new StoreRequisition');
swal('You dont have available Budget Amount. You cant raise new StoreRequisition');
return false;
}
else
@ -1038,7 +1038,7 @@ else
{
if(document.getElementById('mytable').rows.length < 0)
{
alert('Please Select Line item to Store Requisition');
swal('Please Select Line item to Store Requisition');
$('#Deliverydt').focus();
return false;
}
@ -1057,7 +1057,7 @@ else
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
@ -1066,7 +1066,7 @@ else
}
else
{
alert("Error");
swal("Error");
}
}
@ -1081,24 +1081,24 @@ function validate()
if($("option:selected", $("#CostCenter")).val() == '-1')
{
alert('Please Select CostCenter');
swal('Please Select CostCenter');
return false;
}
else if($("option:selected", $("#MaterialCode")).val() == '-1')
{
alert('Please Select MaterialCode');
swal('Please Select MaterialCode');
return false;
}
else if(document.getElementById('mytable').rows.length < 1)
{
alert('Please Add Line Item');
swal('Please Add Line Item');
return false;
}
else if(isExceed == 1)
{
alert('You dont have Budget and You cant Raise New StoreRequisition');
swal('You dont have Budget and You cant Raise New StoreRequisition');
return false;
}
else

View File

@ -165,19 +165,19 @@ function vaildateBeforeOpenModal()
{
if($('#PODate').val() == '')
{
alert('Please Enter the Purchase Order date');
swal('Please Enter the Purchase Order date');
$('#PODate').focus();
return false;
}
else if($('#drpSupplier').val() == "0")
{
alert('Please Select the Supplier details');
swal('Please Select the Supplier details');
$('#drpSupplier').focus();
return false;
}
else if($('#DeliveryAddr').val() == '')
{
alert('Please Enter the Delivery Address');
swal('Please Enter the Delivery Address');
$('#DeliveryAddr').focus();
return false;
}
@ -185,47 +185,47 @@ function vaildateBeforeOpenModal()
{
if(document.getElementById("Schedule").checked)
{
alert('Please Enter Schedule By');
swal('Please Enter Schedule By');
return false;
}
else if(document.getElementById("Date").checked)
{
alert('Please Enter Dispatch Instruction');
swal('Please Enter Dispatch Instruction');
return false;
}
}
else if($('#currencytype').val() == '0')
{
alert('Please Select the Currency Type');
swal('Please Select the Currency Type');
$('#currencytype').focus();
return false;
}
else if($('#ExchangeRate').val() == '')
{
alert('Please Enter the Exchange Rate');
swal('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
return false;
}
else if($('#ExchangeRate').val() == 0)
{
alert('Please Enter the Exchange Rate');
swal('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
return false;
}
else if($('#PlaceOforigin').val()== '')
{
alert('Please Enter Place Of Origin');
swal('Please Enter Place Of Origin');
$('#PlaceOforigin').focus();
return false;
}
else if($('#PaymentTerms').val()=='')
{
alert('Please Select Payment Terms');
swal('Please Select Payment Terms');
$('#PaymentTerms').focus();
return false;
@ -236,7 +236,7 @@ function vaildateBeforeOpenModal()
else if($('#Importoption').val()== "0")
{
alert('Please Select POType');
swal('Please Select POType');
$('#Importoption').focus();
return false;
@ -2257,7 +2257,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -2357,7 +2357,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -2400,7 +2400,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -2483,7 +2483,7 @@ function QtyZerocheck()
{
if(($('#Rate').val()=="0")||$('#Quantity').val()=="0"||($('#Rate').val()=='')||$('#Quantity').val()=='')
{
alert('Please Enter A Valid Number for Rate and Quantity');
swal('Please Enter A Valid Number for Rate and Quantity');
$('#txtBasicValue').val(0);
$('#imBasicPrice').val(0);
$('#ExchangeRt').val(0);
@ -2577,7 +2577,7 @@ function EditQtyZerocheck()
{
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
{
alert('Please Enter A Valid Number for Rate and Quantity');
swal('Please Enter A Valid Number for Rate and Quantity');
$('#EdittxtBasicValue').val(0);
$('#EditimBasicPrice').val(0);
var txtexchangerate=parseFloat($('#ExchangeRate').val());
@ -2674,7 +2674,7 @@ function validateEditExceedLimit()
if(exp > avalbudAmte || totalAmount > avalbudAmte)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -2706,7 +2706,7 @@ var avalbudAmt= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
if(exp > avalbudAmt || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#Rate').focus();
return false;
}
@ -2868,7 +2868,7 @@ function ExceedQuantityCheck()
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//$('#Quantity').val(RequistQuantity);
$('#Quantity').focus();
return false;
@ -2886,7 +2886,7 @@ return true;
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//$('#Quantity').val(RequistQuantity);
$('#EditQuantity').focus();
return false;
@ -3381,7 +3381,7 @@ $('#drpFreight').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpFreight').val("0");
$('#Rate').focus();
}
@ -3405,14 +3405,14 @@ function calculateFreight(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtFreight').val('') ;
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtFreight').val('') ;
return false;
@ -3455,7 +3455,7 @@ function calculateFreight(isEdit)
{
if($('#NOOfTrips').val()=='')
{
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -3495,14 +3495,14 @@ function calculateFreight(isEdit)
//alert();
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditFreight').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditFreight').val('');
return false;
@ -3513,7 +3513,7 @@ function calculateFreight(isEdit)
var FreightType =$("#drpeditFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpeditFreight").focus();
}
@ -3543,7 +3543,7 @@ function calculateFreight(isEdit)
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#editNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#editNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -3759,13 +3759,13 @@ function validateImport()
//alert();
if($('#ReqNo').val() == "0")
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
$('#ReqNo').focus();
return false;
}
else if($('#CostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#CostCenter').focus();
return false;
}
@ -3777,19 +3777,19 @@ function validateImport()
}
else if($('#Quantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#Quantity').focus();
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#Rate').focus();
return false;
}
else if($('#imBasicPrice').val()=='')
{
alert('Please Enter Basic Price In Us');
swal('Please Enter Basic Price In Us');
$('#imBasicPrice').focus();
return false;
}
@ -4494,7 +4494,7 @@ function Budgetcheck()
var TotalSum=avalbudAmte;
if(totordring>TotalSum)
{
alert('You are Exceeding The Budget');
swal('You are Exceeding The Budget');
return false;
}
@ -4535,7 +4535,7 @@ if(validate()&&Budgetcheck())
if(document.getElementById('ImportTax').rows.length <= 0)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
@ -4553,7 +4553,7 @@ if(validate()&&Budgetcheck())
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
//$('#SpcialInstruction').val('');
@ -4563,7 +4563,7 @@ if(validate()&&Budgetcheck())
}
else
{
alert("Error");
swal("Error");
}
}
@ -4671,7 +4671,7 @@ if (FreightType == "PER TRIP")
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpEditFreight').val("0");
$('#EditRate').focus();
}

View File

@ -50,7 +50,7 @@ $("#Employee").empty();
}
else
{
alert('Please select the PayOn');
swal('Please select the PayOn');
return false;
}

View File

@ -193,12 +193,12 @@ if(empty($Status))
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
location.reload();
}
else
{
alert("Error");
swal("Error");
}
}
@ -218,7 +218,7 @@ return;
}
else
{
alert('please Select Status!');
swal('please Select Status!');
}

View File

@ -193,12 +193,12 @@ if(empty($Status))
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
location.reload();
}
else
{
alert("Error");
swal("Error");
}
}
@ -218,7 +218,7 @@ return;
}
else
{
alert('please Select Status!');
swal('please Select Status!');
}

View File

@ -137,46 +137,46 @@ function vaildateBeforeOpenModal()
var radioValue = $("input[name='DateRange']:checked").val();
if($('#PODate').val() == '')
{
alert('Please Enter the Purchase Order date');
swal('Please Enter the Purchase Order date');
$('#PODate').focus();
return false;
}
else if($('#drpSupplier').val() == "0")
{
alert('Please Select the Supplier details');
swal('Please Select the Supplier details');
$('#drpSupplier').focus();
return false;
}
else if($('#DeliveryAddr').val() == '')
{
alert('Please Enter the Delivery Address');
swal('Please Enter the Delivery Address');
$('#DeliveryAddr').focus();
return false;
}
else if(radioValue==0 && $('#Deliverydate').val()==''){
alert('Please Select the Delivery Date');
swal('Please Select the Delivery Date');
$('#Deliverydate').focus();
return false;
}
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
alert('Please Enter the Schedule By');
swal('Please Enter the Schedule By');
$('#Deliverydate').focus();
return false;
}
else if(radioValue==0 && $('#Deliverydate').val()==''){
alert('Please Select the Delivery Date');
swal('Please Select the Delivery Date');
$('#Deliverydate').focus();
return false;
}
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
alert('Please Enter the Schedule By');
swal('Please Enter the Schedule By');
$('#Deliverydate').focus();
return false;
}
else if($('#PoTypeOptions').val()==0)
{
alert('Please Select POType');
swal('Please Select POType');
$('#PoTypeOptions').focus();
return false;
}
@ -318,7 +318,7 @@ $('#drpSupplier').change(function() {
}
else
{
alert('Please select the SupplierID');
swal('Please select the SupplierID');
return false;
}
@ -399,7 +399,7 @@ $("#AvlBudAmt").val('');
}
else
{
alert('Please select the Requisition Number');
swal('Please select the Requisition Number');
return false;
}
id = '';
@ -436,7 +436,7 @@ $("#txtBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -472,7 +472,7 @@ $("#txtEditBasicValue").val('');
}
else
{
alert('Please select the MaterialCode');
swal('Please select the MaterialCode');
return false;
}
@ -505,7 +505,7 @@ $("#txtEditBasicValue").val('');
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#PackagingType').val("0");
$('#Rate').focus();
}
@ -538,7 +538,7 @@ $('#EditDiscountType').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#EditDiscountType').val("0");
$('#EditRate').focus();
}
@ -577,7 +577,7 @@ $('#PackagingType').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#PackagingType').val("0");
$('#Rate').focus();
}
@ -771,7 +771,7 @@ $('#drpFreight').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpFreight').val("0");
$('#Rate').focus();
}
@ -819,7 +819,7 @@ $('#drpEditFreight').change(function() {
}
else
{
alert('Please Select MaterialCode and Rate Field Value');
swal('Please Select MaterialCode and Rate Field Value');
$('#drpEditFreight').val("0");
$('#EditRate').focus();
}
@ -835,14 +835,14 @@ function calculateDiscount(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtDiscount').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtDiscount').val('');
return false;
@ -855,7 +855,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtDiscount').val('');
$("#DiscountType").focus();
}
@ -892,14 +892,14 @@ function calculateDiscount(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditDiscount').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditDiscount').val('');
return false;
@ -912,7 +912,7 @@ function calculateDiscount(isEdit)
if(DiscountType == "0")
{
alert('Please Select the discount Type');
swal('Please Select the discount Type');
$('#txtEditDiscount').val('');
$("#EditDiscountType").focus();
}
@ -955,14 +955,14 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtPackaging').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtPackaging').val('');
return false;
@ -976,7 +976,7 @@ function calculatePackaging(isEdit)
if(PackagingType == "0")
{
alert('Please select the Packaging Type');
swal('Please select the Packaging Type');
$('#txtPackaging').val('');
$("#PackagingType").focus();
}
@ -990,7 +990,7 @@ function calculatePackaging(isEdit)
{
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtPackaging').val('');
$('#DiscountType').focus();
@ -1034,14 +1034,14 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditPackaging').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditPackaging').val('');
return false;
@ -1056,7 +1056,7 @@ function calculatePackaging(isEdit)
if(PackagingType == "0")
{
alert('Please select the Packaging Type');
swal('Please select the Packaging Type');
$('#txtEditPackaging').val('');
$("#EditPackagingType").focus();
}
@ -1070,7 +1070,7 @@ function calculatePackaging(isEdit)
{
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditPackaging').val('');
return false;
@ -1113,14 +1113,14 @@ function calculatePackaging(isEdit)
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtExciseDuty').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#txtExciseDuty').val('');
$('#Rate').focus();
return false;
@ -1143,7 +1143,7 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#DiscountType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1158,14 +1158,14 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#DiscountType').focus();
$('#txtExciseDuty').val('');
return false;
}
else if($('#txtAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#PackagingType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1182,7 +1182,7 @@ function calculatePackaging(isEdit)
{
if($('#txtAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#PackagingType').focus();
$('#txtExciseDuty').val('');
return false;
@ -1210,13 +1210,13 @@ function calculatePackaging(isEdit)
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
return false;
}
@ -1240,7 +1240,7 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1255,14 +1255,14 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterDiscount').val() == '')
{
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#EditDiscountType').focus();
$('#txtEditExciseDuty').val('');
return false;
}
else if($('#txtEditAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#EditPackagingType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1278,7 +1278,7 @@ function calculatePackaging(isEdit)
{
if($('#txtEditAfterPackaging').val() == '')
{
alert('Please Enter the Packaging value');
swal('Please Enter the Packaging value');
$('#EditPackagingType').focus();
$('#txtEditExciseDuty').val('');
return false;
@ -1310,14 +1310,14 @@ function calculatePackaging(isEdit)
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtVat').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtVat').val('');
return false;
@ -1332,7 +1332,7 @@ function calculatePackaging(isEdit)
if($('#txtAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtExciseDuty').focus();
$('#txtVat').val('');
return false;
@ -1375,14 +1375,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditVat').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditVat').val('');
return false;
@ -1398,7 +1398,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
if($('#txtEditAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtEditAfterExciseDuty').focus();
$('#txtEditVat').val('');
return false;
@ -1438,14 +1438,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtCST').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtCST').val('');
return false;
@ -1462,7 +1462,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
if($('#txtAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtExciseDuty').focus();
$('#txtAfterCST').val('');
return false;
@ -1499,14 +1499,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditCST').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditCST').val('');
return false;
@ -1522,7 +1522,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
if($('#txtEditAfterExciseDuty').val() == '')
{
alert('Please Enter the Excise value');
swal('Please Enter the Excise value');
$('#txtEditAfterExciseDuty').focus();
$('#txtEditCST').val('');
return false;
@ -1562,14 +1562,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtGST').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtGST').val('');
return false;
@ -1601,14 +1601,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditGST').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditGST').val('');
return false;
@ -1644,14 +1644,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtOtherTax').val('');
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtOtherTax').val('');
return false;
@ -1684,14 +1684,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditOtherTax').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditOtherTax').val('');
return false;
@ -1729,14 +1729,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
{
if($('#MaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#MaterialCode').focus();
$('#txtFreight').val('') ;
return false;
}
else if($('#Rate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#Rate').focus();
$('#txtFreight').val('') ;
return false;
@ -1747,7 +1747,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
var FreightType =$("#drpFreight").val();
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtFreight').val('');
$("#drpFreight").focus();
// calculateCgstTax();
@ -1765,7 +1765,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '')
{
//alert(freightCalculation);
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtFreight').val('');
$('#DiscountType').focus();
return false;
@ -1801,7 +1801,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#NOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#NOOfTrips").focus();
$('#txtFreight').val(0)
@ -1838,14 +1838,14 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
//alert('1');
if($('#EditMaterialCode').val() == "0")
{
alert('Please Select the Material Code');
swal('Please Select the Material Code');
$('#EditMaterialCode').focus();
$('#txtEditFreight').val('');
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate value');
swal('Please Enter the Rate value');
$('#EditRate').focus();
$('#txtEditFreight').val('');
return false;
@ -1857,7 +1857,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
//alert(FreightType);
if(FreightType == "0")
{
alert('Please select Freight Type');
swal('Please select Freight Type');
$('#txtEditFreight').val('');
$("#drpEditFreight").focus();
}
@ -1879,7 +1879,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
{
//alert(freightCalculation);
alert('Please Enter the Discount value');
swal('Please Enter the Discount value');
$('#txtEditFreight').val('');
$('#EditDiscountType').focus();
return false;
@ -1913,7 +1913,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
else if(FreightType == '<?php echo PERTRIP;?>')
{
if($('#EditNOOfTrips').val()==''){
alert('Please Enter No of Trip');
swal('Please Enter No of Trip');
$("#EditNOOfTrips").focus();
$('#txtEditFreight').val(0)
@ -2019,7 +2019,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
//$('#Quantity').val(RequistQuantity);
$('#Quantity').focus();
return false;
@ -2036,7 +2036,7 @@ return true;
var ReqQuantity = parseFloat(RequistQuantity);
if(EnterQuantity > ReqQuantity)
{
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
swal('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
$('#EditQuantity').focus();
return false;
}
@ -2130,7 +2130,7 @@ function validateEditExceedLimit()
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
{
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
$('#EditRate').focus();
return false;
}
@ -4122,25 +4122,25 @@ function validateEditRevenueTax()
{
if($('#EditCostCenter').val() == "0")
{
alert('Please select the Cost center');
swal('Please select the Cost center');
$('#EditCostCenter').focus();
return false;
}
else if($('#EditMaterialCode').val() == "0")
{
alert('Please select the Material Code');
swal('Please select the Material Code');
$('#EditMaterialCode').focus();
return false;
}
else if($('#EditQuantity').val() == '')
{
alert('Please Enter the Quantity value');
swal('Please Enter the Quantity value');
$('#EditQuantity').focus();
return false;
}
else if($('#EditRate').val() == '')
{
alert('Please Enter the Rate of the Item');
swal('Please Enter the Rate of the Item');
$('#EditRate').focus();
return false;
}
@ -4266,22 +4266,22 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
{
if(document.getElementById('revenueTax').rows.length < 3)
{
alert('Please Select Line item to Create PO');
swal('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else if(parseInt(AvlBudAmt) < parseInt(finalBasicAmount)) {
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
swal('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false;
}
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
alert('Please Enter Payable Terms Description');
swal('Please Enter Payable Terms Description');
$('#Otherpayment').focus();
return false;
}
else if($('#insurance').val() == 1 && $('#insuranceno').val() == ''){
alert('Please Enter Insurance No..!');
swal('Please Enter Insurance No..!');
$('#insurance').focus();
return false;
}
@ -4298,7 +4298,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');
//$('#SpcialInstruction').val('');
@ -4308,7 +4308,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
}
else
{
alert("Error");
swal("Error");
}
}

View File

@ -176,7 +176,7 @@ $('#addspec').click(function(){
var customer = $('#customer').val();
if(product == -1 || customer == -1)
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else
{
@ -196,7 +196,7 @@ function addNewRow()
if(sname == '' || uom =='' || min == '' || max == '')
{
alert('Please Enter all specification');
swal('Please Enter all specification');
}
else
{
@ -232,7 +232,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
var customer = $('#customer').val();
if(product == -1 || customer == -1)
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else{
$('#content').loader('show');
@ -245,7 +245,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
if(data)
{
$('#content').loader('hide');
alert(data);
swal(data);
//console.log(data);
@ -263,7 +263,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
var customer = $('#customer').val();
if(product == -1 || customer == -1)
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else{
var d='';
@ -285,7 +285,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
success:function(data){
$('#content').loader('hide');
alert(data);
swal(data);
}
});

View File

@ -197,7 +197,7 @@ $('#addspec').click(function(){
var customer = $('#customer').val();
if(product == -1 || customer == -1)
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else
{
@ -217,7 +217,7 @@ function addNewRow()
var temp = $('#temp').val();
if(sname == '' || uom =='' || min == '' || max == '' || temp == '')
{
alert('Please Enter all specification');
swal('Please Enter all specification');
}
else
{
@ -254,7 +254,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
var type = $('#ttype').val();
if(product == -1 || customer == -1)
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else{
$('#content').loader('show');
@ -267,7 +267,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
if(data)
{
alert(data);
swal(data);
window.location = "<?php echo base_url().'quality';?>";
$('#content').loader('hide');
@ -285,7 +285,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
var customer = $('#customer').val();
if(product == '' || customer == '')
{
alert('Please Select Product and Customer.');
swal('Please Select Product and Customer.');
}
else{
var rowid = r;
@ -310,7 +310,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
success:function(data){
$('#content').loader('hide');
alert(data);
swal(data);
}
});