sweetalert in po screen
This commit is contained in:
parent
bda7a74cd2
commit
997547b641
@ -397,13 +397,13 @@ function validate()
|
|||||||
if (Noval == 0 )
|
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;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(isExceed == 1 ){
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -433,7 +433,7 @@ function setaccept(rowId)
|
|||||||
|
|
||||||
if(accept > Actulqty)
|
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).focus();
|
||||||
$("#AcceptQuantity"+rowId).val('');
|
$("#AcceptQuantity"+rowId).val('');
|
||||||
$("#RejectQuantity"+rowId).val('');
|
$("#RejectQuantity"+rowId).val('');
|
||||||
@ -442,7 +442,7 @@ function setaccept(rowId)
|
|||||||
}
|
}
|
||||||
else if(rejected > Actulqty )
|
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).focus();
|
||||||
$("#RejectQuantity"+rowId).val('');
|
$("#RejectQuantity"+rowId).val('');
|
||||||
$("#QuantityRejected"+rowId).val('');
|
$("#QuantityRejected"+rowId).val('');
|
||||||
@ -493,7 +493,7 @@ function setreject(rowId)
|
|||||||
var reject = parseFloat($('#RejectQuantity'+rowId).val());
|
var reject = parseFloat($('#RejectQuantity'+rowId).val());
|
||||||
if(reject > Actulqty )
|
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).focus();
|
||||||
$("#RejectQuantity"+rowId).val('');
|
$("#RejectQuantity"+rowId).val('');
|
||||||
$("#QuantityRejected"+rowId).val('');
|
$("#QuantityRejected"+rowId).val('');
|
||||||
@ -526,12 +526,12 @@ function updatemrir()
|
|||||||
//alert("success function worked ");
|
//alert("success function worked ");
|
||||||
if(data){
|
if(data){
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
window.location ="ViewMRIR";
|
window.location ="ViewMRIR";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("value not updated");
|
swal("value not updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
}//success function closed
|
}//success function closed
|
||||||
|
|||||||
@ -298,7 +298,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ $('#MaterialCode').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -370,7 +370,7 @@ $("#EditQuantity").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,19 +392,19 @@ function Ratechange(){
|
|||||||
|
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -441,7 +441,7 @@ function EditRatechange(){
|
|||||||
|
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -472,7 +472,7 @@ function ExceedQuantityCheck()
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
|
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -489,7 +489,7 @@ function ExceedQuantityCheck()
|
|||||||
//alert(ReqQuantity);
|
//alert(ReqQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -503,7 +503,7 @@ function ExceedQuantityCheck()
|
|||||||
|
|
||||||
if(ReqAmount > BudAmount )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2565,11 +2565,11 @@ function DeleteRow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -2629,43 +2629,43 @@ function validateServiceTax()
|
|||||||
|
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Quantity').val() == '')
|
else if($('#Quantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Quantity').val() == 0)
|
else if($('#Quantity').val() == 0)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Valid Quantity Value');
|
swal('Please Enter the Valid Quantity Value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == 0)
|
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();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2674,7 +2674,7 @@ function validateServiceTax()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtSpcialInstruction').val()==''){
|
else if($('#txtSpcialInstruction').val()==''){
|
||||||
alert('Please Enter the Service Description');
|
swal('Please Enter the Service Description');
|
||||||
$('#txtSpcialInstruction').focus();
|
$('#txtSpcialInstruction').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2694,37 +2694,37 @@ function validateServiceTax()
|
|||||||
|
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == '')
|
else if($('#EditQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == 0)
|
else if($('#EditQuantity').val() == 0)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Valid Quantity value');
|
swal('Please Enter the Valid Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == 0)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2733,7 +2733,7 @@ function validateServiceTax()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EdittxtSpcialInstruction').val()==''){
|
else if($('#EdittxtSpcialInstruction').val()==''){
|
||||||
alert('Please Enter the Service Description');
|
swal('Please Enter the Service Description');
|
||||||
$('#EdittxtSpcialInstruction').focus();
|
$('#EdittxtSpcialInstruction').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2785,22 +2785,22 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
{
|
{
|
||||||
if(document.getElementById('ServiceTable').rows.length < 2)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
||||||
alert('Please Enter Other Payment Details');
|
swal('Please Enter Other Payment Details');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#editdescofpo').val().trim()==''){
|
else if($('#editdescofpo').val().trim()==''){
|
||||||
alert('Please Enter Description Of Service');
|
swal('Please Enter Description Of Service');
|
||||||
$('#editdescofpo').focus();
|
$('#editdescofpo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2815,7 +2815,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
$('#txtStatus').val('');
|
$('#txtStatus').val('');
|
||||||
@ -2827,7 +2827,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -3049,7 +3049,7 @@ for(i=2;i<=rows;i++){
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
|
|||||||
@ -35,7 +35,7 @@ if(!empty($rel_po))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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>
|
</div>
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #5d0411;
|
background-color:#5d0411;
|
||||||
border-color: #5d0411;
|
border-color:#5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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
|
<?php
|
||||||
if($this->input->post('client_name')){
|
if($this->input->post('client_name')){
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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>
|
</div>
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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>
|
</div>
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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
|
<?php
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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
|
<?php
|
||||||
|
|
||||||
if (date('m') >= 4) {
|
if (date('m') >= 4) {
|
||||||
|
|||||||
@ -26,8 +26,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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
|
<?php
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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
|
<?php
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ if(!empty($mms))
|
|||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: #3c8dbc;
|
background-color: #5d0411;
|
||||||
border-color: #3c8dbc;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ if(!empty($mms))
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<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>
|
</div>
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|||||||
@ -481,25 +481,25 @@ function OpenModal()
|
|||||||
{
|
{
|
||||||
if($('#CostCode').val()=='')
|
if($('#CostCode').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Costcenter Code');
|
swal('Please Enter the Costcenter Code');
|
||||||
$('#CostCode').focus();
|
$('#CostCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostName').val()=='')
|
else if($('#CostName').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Costcenter Name');
|
swal('Please Enter the Costcenter Name');
|
||||||
$('#CostName').focus();
|
$('#CostName').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtSelectedDepartment').val()=='')
|
else if($('#txtSelectedDepartment').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Select the Department');
|
swal('Please Select the Department');
|
||||||
$('#selectDistriList').focus();
|
$('#selectDistriList').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#ApprovedBy').val() == "-1")
|
else if($('#ApprovedBy').val() == "-1")
|
||||||
{
|
{
|
||||||
alert('Please Select the Approver');
|
swal('Please Select the Approver');
|
||||||
$('#ApprovedBy').focus();
|
$('#ApprovedBy').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -529,19 +529,19 @@ var iflag = 0;
|
|||||||
|
|
||||||
if ($("#Addbudget option:selected").val() =='-1' )
|
if ($("#Addbudget option:selected").val() =='-1' )
|
||||||
{
|
{
|
||||||
alert('Please Select the Budget Type ');
|
swal('Please Select the Budget Type ');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if ($("#AddYear option:selected").val() =='0' )
|
//if ($("#AddYear option:selected").val() =='0' )
|
||||||
if($('#AddYear').val() == '0' )
|
if($('#AddYear').val() == '0' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
swal('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
if(document.getElementById('AddAmout').value == '' )
|
if(document.getElementById('AddAmout').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Amount');
|
swal('Please Enter the Budget Amount');
|
||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -589,7 +589,7 @@ var iflag = 0;
|
|||||||
}
|
}
|
||||||
else
|
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;
|
iflag = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -626,12 +626,12 @@ $('.tempClickEdit').click(function(){
|
|||||||
|
|
||||||
if(document.getElementById('EditYear').value == '' )
|
if(document.getElementById('EditYear').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
swal('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
if(document.getElementById('EditAmout').value == '' )
|
if(document.getElementById('EditAmout').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Amount');
|
swal('Please Enter the Budget Amount');
|
||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -659,7 +659,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please enter all the values');
|
swal('Please enter all the values');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -745,7 +745,7 @@ function CountRows() {
|
|||||||
$('#addPop').click(function () {
|
$('#addPop').click(function () {
|
||||||
if ($('#distriList option:selected').val() != null) {
|
if ($('#distriList option:selected').val() != null) {
|
||||||
if($('#distriList option:selected').val()==0 ){
|
if($('#distriList option:selected').val()==0 ){
|
||||||
alert('please select Department');
|
swal('please select Department');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -781,7 +781,7 @@ function CountRows() {
|
|||||||
Selectedval = '';
|
Selectedval = '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
alert("Before add please select any position.");
|
swal("Before add please select any position.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -807,7 +807,7 @@ function CountRows() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
alert("Before remove please select any position.");
|
swal("Before remove please select any position.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -826,7 +826,7 @@ function CountRows() {
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtSelectedDepartment').val('');
|
$('#txtSelectedDepartment').val('');
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
|
|
||||||
@ -835,7 +835,7 @@ function CountRows() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -851,17 +851,17 @@ function validate()
|
|||||||
|
|
||||||
if($("#txtSelectedDepartment").val().length < 1)
|
if($("#txtSelectedDepartment").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Select Department');
|
swal('Please Select Department');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($("#txtRowCount").val().length < 1)
|
else if($("#txtRowCount").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Add Budget');
|
swal('Please Add Budget');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
else if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select Approver Names');
|
swal('Please Select Approver Names');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -482,52 +482,52 @@ function validate()
|
|||||||
{
|
{
|
||||||
if($("#AssetName").val().length <1)
|
if($("#AssetName").val().length <1)
|
||||||
{
|
{
|
||||||
alert('Please Enter the AssetName');
|
swal('Please Enter the AssetName');
|
||||||
$("#AssetName").focus();
|
$("#AssetName").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($('#Description').val().length <1)
|
if($('#Description').val().length <1)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Asset Description');
|
swal('Please Enter the Asset Description');
|
||||||
$("#Description").focus();
|
$("#Description").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($('#User').val().length <1)
|
if($('#User').val().length <1)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Asset User');
|
swal('Please Enter the Asset User');
|
||||||
$("#User").focus();
|
$("#User").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($('#Location').val().length <1)
|
if($('#Location').val().length <1)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Asset Location');
|
swal('Please Enter the Asset Location');
|
||||||
$("#Location").focus();
|
$("#Location").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if($("#PONO option:selected").val() == "")
|
if($("#PONO option:selected").val() == "")
|
||||||
{
|
{
|
||||||
alert('Please Select PO Number ');
|
swal('Please Select PO Number ');
|
||||||
$("#PONO").focus();
|
$("#PONO").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("option:selected", $("#SelectMaterialCode")).val() == '-1')
|
if($("option:selected", $("#SelectMaterialCode")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode');
|
swal('Please Select MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($('#DateOfCommission').val().length <1)
|
if($('#DateOfCommission').val().length <1)
|
||||||
{
|
{
|
||||||
alert('Please Enter the DateOfCommission');
|
swal('Please Enter the DateOfCommission');
|
||||||
$("#DateOfCommission").focus();
|
$("#DateOfCommission").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("option:selected", $("#AssetStatus")).val() == '-1')
|
if($("option:selected", $("#AssetStatus")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select AssetStatus');
|
swal('Please Select AssetStatus');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -405,7 +405,7 @@ function validate()
|
|||||||
// alert(errorflag);
|
// alert(errorflag);
|
||||||
if(errorflag != 0)
|
if(errorflag != 0)
|
||||||
{
|
{
|
||||||
alert("Please Provide All Details..!");
|
swal("Please Provide All Details..!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -338,14 +338,14 @@ function validate()
|
|||||||
|
|
||||||
if($("#PurchaseOrderNumber").val()=='0')
|
if($("#PurchaseOrderNumber").val()=='0')
|
||||||
{
|
{
|
||||||
alert('Please Enter Purchase Order Number');
|
swal('Please Enter Purchase Order Number');
|
||||||
$("#PurchaseOrderNumber").focus();
|
$("#PurchaseOrderNumber").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("#AdvanceIn").val().length < 1)
|
if($("#AdvanceIn").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Advance Amount Percentage');
|
swal('Please Enter Advance Amount Percentage');
|
||||||
$("#AdvanceIn").focus();
|
$("#AdvanceIn").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -363,7 +363,7 @@ function selectReqNo(rowId)
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Same type of Requistion only can be together.')
|
swal('Same type of Requistion only can be together.')
|
||||||
$('#chk'+rowId).attr('checked', false);
|
$('#chk'+rowId).attr('checked', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ function Validate()
|
|||||||
var ReqNo = $('#txtReqNo').val();
|
var ReqNo = $('#txtReqNo').val();
|
||||||
if(ReqNo.length <=0 )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -2417,7 +2417,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2503,7 +2503,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -2546,7 +2546,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2588,7 +2588,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2979,7 +2979,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
|
|
||||||
if(ReqAmount > BudAmount )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3003,7 +3003,7 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
|
|
||||||
if(basicAmountRate > avalbudAmt)
|
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();
|
$('#CPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3017,31 +3017,31 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
|||||||
{
|
{
|
||||||
if($('#Reqnumber').val() == "0")
|
if($('#Reqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#Reqnumber').focus();
|
$('#Reqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPQuantity').val() == '')
|
else if($('#CPQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#CPQuantity').focus();
|
$('#CPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPRate').val() == '')
|
else if($('#CPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3320,7 +3320,7 @@ $('#PurQuantity').val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3413,18 +3413,18 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
|
|||||||
//alert(AvlBudAmt);
|
//alert(AvlBudAmt);
|
||||||
if(document.getElementById('serviceTax').rows.length < 2)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
|
||||||
alert('Please Enter Other Payable Terms Description');
|
swal('Please Enter Other Payable Terms Description');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(parseInt(AvlBudAmt) < parseInt(basicamt)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3445,7 +3445,7 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
|
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
@ -3458,7 +3458,7 @@ basicamt=$('#txtTotalBasic').val() - $('#txtTotalDiscount').val();
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -3486,19 +3486,19 @@ EditRatechange();
|
|||||||
|
|
||||||
if($('#EditReqnumber').val() == "0")
|
if($('#EditReqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#EditReqnumber').focus();
|
$('#EditReqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCostCenter').val() == "0")
|
else if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3918,43 +3918,43 @@ function validateEditCapitalTax()
|
|||||||
|
|
||||||
if($('#EditReqnumber').val() == "0")
|
if($('#EditReqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#EditReqnumber').focus();
|
$('#EditReqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCostCenter').val() == "0")
|
else if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPQuantity').val() == '')
|
else if($('#EditCPQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditCPQuantity').focus();
|
$('#EditCPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPQuantity').val() == "0")
|
else if($('#EditCPQuantity').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Enter the Valid Quantity value');
|
swal('Please Enter the Valid Quantity value');
|
||||||
$('#EditCPQuantity').focus();
|
$('#EditCPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPRate').val() == '')
|
else if($('#EditCPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPRate').val() == "0")
|
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();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4007,7 +4007,7 @@ function validateEditCapitalTax()
|
|||||||
|
|
||||||
if(basicAmountRate > avalbudAmt)
|
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();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4307,7 +4307,7 @@ $('#EditDiscountType').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#EditDiscountType').val("0");
|
$('#EditDiscountType').val("0");
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
}
|
}
|
||||||
@ -4325,7 +4325,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if($('#CPRate').val() == '')
|
if($('#CPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -4338,7 +4338,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
$("#DiscountType").focus();
|
$("#DiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -4384,7 +4384,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
$("#EditDiscountType").focus();
|
$("#EditDiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -4453,7 +4453,7 @@ function calculateFreight(isEdit)
|
|||||||
|
|
||||||
if($('#AfterBasicPriceTax').val() == '')
|
if($('#AfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -4465,7 +4465,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpFreight").val();
|
var FreightType =$("#drpFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$("#drpFreight").focus();
|
$("#drpFreight").focus();
|
||||||
}
|
}
|
||||||
@ -4498,7 +4498,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()==''){
|
if($('#NOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -4533,7 +4533,7 @@ function calculateFreight(isEdit)
|
|||||||
|
|
||||||
if($('#ViewAfterBasicPriceTax').val() == '')
|
if($('#ViewAfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#ViewCPRate').focus();
|
$('#ViewCPRate').focus();
|
||||||
$('#txtViewFreight').val('') ;
|
$('#txtViewFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -4545,7 +4545,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpViewFreight").val();
|
var FreightType =$("#drpViewFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtViewFreight').val('');
|
$('#txtViewFreight').val('');
|
||||||
$("#drpViewFreight").focus();
|
$("#drpViewFreight").focus();
|
||||||
}
|
}
|
||||||
@ -4575,7 +4575,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#ViewNOOfTrips').val()==''){
|
if($('#ViewNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#ViewNOOfTrips").focus();
|
$("#ViewNOOfTrips").focus();
|
||||||
$('#txtViewFreight').val(0)
|
$('#txtViewFreight').val(0)
|
||||||
@ -4644,7 +4644,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#AmendNOOfTrips').val()==''){
|
if($('#AmendNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#AmendNOOfTrips").focus();
|
$("#AmendNOOfTrips").focus();
|
||||||
$('#AmendtxtFreight').val(0)
|
$('#AmendtxtFreight').val(0)
|
||||||
@ -4709,7 +4709,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -4742,7 +4742,7 @@ function calculateFreight(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditAfterBasicPriceTax').val() == '')
|
if($('#EditAfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
$('#txtEditFreight').val('') ;
|
$('#txtEditFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -4754,7 +4754,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpEditFreight").val();
|
var FreightType =$("#drpEditFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpEditFreight").focus();
|
$("#drpEditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -4784,7 +4784,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -4872,7 +4872,7 @@ $('#drpFreighteditloc').change(function()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpFreighteditloc').val("0");
|
$('#drpFreighteditloc').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3965,7 +3965,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4051,7 +4051,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -4094,7 +4094,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4136,7 +4136,7 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4202,19 +4202,19 @@ EditRatechange();
|
|||||||
|
|
||||||
if($('#Reqnumber').val() == "0")
|
if($('#Reqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#Reqnumber').focus();
|
$('#Reqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4399,7 +4399,7 @@ Calculateloadingcharge();
|
|||||||
//alert(ReqQuantity);
|
//alert(ReqQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#CPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -4749,7 +4749,7 @@ if(isNaN(CustomDutyExpenses))
|
|||||||
|
|
||||||
if(ReqAmount > BudAmount )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4996,7 +4996,7 @@ if(isNaN(CustomDutyExpenses))
|
|||||||
}
|
}
|
||||||
if(basicAmountRate > avalbudAmt)
|
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();
|
$('#CPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -5010,43 +5010,43 @@ if(isNaN(CustomDutyExpenses))
|
|||||||
{
|
{
|
||||||
if($('#Reqnumber').val() == "0")
|
if($('#Reqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#Reqnumber').focus();
|
$('#Reqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPQuantity').val() == '')
|
else if($('#CPQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#CPQuantity').focus();
|
$('#CPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPQuantity').val() == "0")
|
else if($('#CPQuantity').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Enter the Valid Quantity value');
|
swal('Please Enter the Valid Quantity value');
|
||||||
$('#CPQuantity').focus();
|
$('#CPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPRate').val() == '')
|
else if($('#CPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CPRate').val() == "0")
|
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();
|
$('#CPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -5472,11 +5472,11 @@ function DeleteRow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -6032,7 +6032,7 @@ function DeleteRow(rowid)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6122,17 +6122,17 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
|
|||||||
{
|
{
|
||||||
if(document.getElementById('serviceTax').rows.length < 2)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentMethod').val()=='PT08'){
|
||||||
alert('Please Enter Other Payable Terms Description');
|
swal('Please Enter Other Payable Terms Description');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(parseInt(AvlBudAmt) < parseInt(basicAmountRate)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -6153,7 +6153,7 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
|
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
@ -6168,7 +6168,7 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -6216,19 +6216,19 @@ function clearAfterAddLineItemAdd(){
|
|||||||
|
|
||||||
if($('#EditReqnumber').val() == "0")
|
if($('#EditReqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#EditReqnumber').focus();
|
$('#EditReqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCostCenter').val() == "0")
|
else if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -6454,7 +6454,7 @@ var Freight=parseFloat($('#txtAfterFreightlocview').val() == '' ? '0.00' : $('#t
|
|||||||
//alert(ReqQuantity);
|
//alert(ReqQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#EditCPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -6744,43 +6744,43 @@ function validateEditCapitalTax()
|
|||||||
|
|
||||||
if($('#EditReqnumber').val() == "0")
|
if($('#EditReqnumber').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#EditReqnumber').focus();
|
$('#EditReqnumber').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCostCenter').val() == "0")
|
else if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPQuantity').val() == '')
|
else if($('#EditCPQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditCPQuantity').focus();
|
$('#EditCPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPQuantity').val() == "0")
|
else if($('#EditCPQuantity').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Enter the Valid Quantity value');
|
swal('Please Enter the Valid Quantity value');
|
||||||
$('#EditCPQuantity').focus();
|
$('#EditCPQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPRate').val() == '')
|
else if($('#EditCPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditCPRate').val() == "0")
|
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();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -6885,7 +6885,7 @@ var Freight=parseFloat($('#txtAfterFreightlocedit').val() == '' ? '0.00' : $('#t
|
|||||||
}
|
}
|
||||||
if(basicAmountRate > avalbudAmt)
|
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();
|
$('#EditCPRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -7305,7 +7305,7 @@ $('#drpFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#drpFreight').val("0");
|
$('#drpFreight').val("0");
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
}
|
}
|
||||||
@ -7346,7 +7346,7 @@ $('#drpEditFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#drpEditFreight').val("0");
|
$('#drpEditFreight').val("0");
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
}
|
}
|
||||||
@ -7387,7 +7387,7 @@ $('#drpViewFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#drpViewFreight').val("0");
|
$('#drpViewFreight').val("0");
|
||||||
$('#ViewCPRate').focus();
|
$('#ViewCPRate').focus();
|
||||||
}
|
}
|
||||||
@ -7402,7 +7402,7 @@ function calculateFreight(isEdit)
|
|||||||
|
|
||||||
if($('#AfterBasicPriceTax').val() == '')
|
if($('#AfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -7414,7 +7414,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpFreight").val();
|
var FreightType =$("#drpFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$("#drpFreight").focus();
|
$("#drpFreight").focus();
|
||||||
}
|
}
|
||||||
@ -7447,7 +7447,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()==''){
|
if($('#NOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -7482,7 +7482,7 @@ function calculateFreight(isEdit)
|
|||||||
|
|
||||||
if($('#ViewAfterBasicPriceTax').val() == '')
|
if($('#ViewAfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#ViewCPRate').focus();
|
$('#ViewCPRate').focus();
|
||||||
$('#txtViewFreight').val('') ;
|
$('#txtViewFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -7494,7 +7494,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpViewFreight").val();
|
var FreightType =$("#drpViewFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtViewFreight').val('');
|
$('#txtViewFreight').val('');
|
||||||
$("#drpViewFreight").focus();
|
$("#drpViewFreight").focus();
|
||||||
}
|
}
|
||||||
@ -7524,7 +7524,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#ViewNOOfTrips').val()==''){
|
if($('#ViewNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#ViewNOOfTrips").focus();
|
$("#ViewNOOfTrips").focus();
|
||||||
$('#txtViewFreight').val(0)
|
$('#txtViewFreight').val(0)
|
||||||
@ -7593,7 +7593,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()==''){
|
if($('#NOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -7658,7 +7658,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -7691,7 +7691,7 @@ function calculateFreight(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditAfterBasicPriceTax').val() == '')
|
if($('#EditAfterBasicPriceTax').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
$('#txtEditFreight').val('') ;
|
$('#txtEditFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -7703,7 +7703,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpEditFreight").val();
|
var FreightType =$("#drpEditFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpEditFreight").focus();
|
$("#drpEditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -7733,7 +7733,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -7790,7 +7790,7 @@ function calculateFreight(isEdit)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Rate Field Value');
|
swal('Please Rate Field Value');
|
||||||
|
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
}
|
}
|
||||||
@ -7820,7 +7820,7 @@ $('#EditDiscountType').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#EditDiscountType').val("0");
|
$('#EditDiscountType').val("0");
|
||||||
$('#EditCPRate').focus();
|
$('#EditCPRate').focus();
|
||||||
}
|
}
|
||||||
@ -7837,7 +7837,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if($('#CPRate').val() == '')
|
if($('#CPRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#CPRate').focus();
|
$('#CPRate').focus();
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -7850,7 +7850,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
$("#DiscountType").focus();
|
$("#DiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -7896,7 +7896,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
$("#EditDiscountType").focus();
|
$("#EditDiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -8021,7 +8021,7 @@ $('#drpFreightloc').change(function()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpFreightloc').val("0");
|
$('#drpFreightloc').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -8192,7 +8192,7 @@ $('#drpFreighteditloc').change(function()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpFreighteditloc').val("0");
|
$('#drpFreighteditloc').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -149,7 +149,7 @@ $( document ).ready(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the PayOn');
|
swal('Please select the PayOn');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -697,18 +697,18 @@ var iflag = 0;
|
|||||||
|
|
||||||
if ($("#Addbudget option:selected").val() =='-1' )
|
if ($("#Addbudget option:selected").val() =='-1' )
|
||||||
{
|
{
|
||||||
alert('Please Select the Budget Type ');
|
swal('Please Select the Budget Type ');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($('#AddYear').val() == '0' )
|
if($('#AddYear').val() == '0' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
swal('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
if(document.getElementById('AddAmout').value == '' )
|
if(document.getElementById('AddAmout').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Amount');
|
swal('Please Enter the Budget Amount');
|
||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ var iflag = 0;
|
|||||||
}
|
}
|
||||||
else
|
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;
|
iflag = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -798,12 +798,12 @@ $('.tempClickEdit').click(function(){
|
|||||||
|
|
||||||
if(document.getElementById('EditYear').value == '' )
|
if(document.getElementById('EditYear').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
swal('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
if(document.getElementById('EditAmout').value == '' )
|
if(document.getElementById('EditAmout').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Amount');
|
swal('Please Enter the Budget Amount');
|
||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -828,7 +828,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
$('#Remarks'+userid).val(BudRemarks); }
|
$('#Remarks'+userid).val(BudRemarks); }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please enter all the values');
|
swal('Please enter all the values');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -860,7 +860,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
$('#addPop').click(function () {
|
$('#addPop').click(function () {
|
||||||
if ($('#distriList option:selected').val() != null) {
|
if ($('#distriList option:selected').val() != null) {
|
||||||
if($('#distriList option:selected').val()==0 ){
|
if($('#distriList option:selected').val()==0 ){
|
||||||
alert('please select Department');
|
swal('please select Department');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var tempSelect = $('#distriList option:selected').val();
|
var tempSelect = $('#distriList option:selected').val();
|
||||||
@ -902,7 +902,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtSelectedDepartment').val('');
|
$('#txtSelectedDepartment').val('');
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
|
|
||||||
@ -926,7 +926,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
alert("Before add please select any position.");
|
swal("Before add please select any position.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -958,7 +958,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtSelectedDepartment').val('');
|
$('#txtSelectedDepartment').val('');
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
|
|
||||||
@ -978,7 +978,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Before remove please select any position.");
|
swal("Before remove please select any position.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -997,7 +997,7 @@ $('.tempClickEdit').click(function(){
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtSelectedDepartment').val('');
|
$('#txtSelectedDepartment').val('');
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
|
|
||||||
@ -1078,7 +1078,7 @@ function validate()
|
|||||||
}
|
}
|
||||||
else */ if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
else */ if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select Approver Names');
|
swal('Please Select Approver Names');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -198,7 +198,7 @@ function validatePAN() {
|
|||||||
{
|
{
|
||||||
if (regpan.test(PAN) == false)
|
if (regpan.test(PAN) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid PAN Number');
|
swal('Please Enter Valid PAN Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -208,7 +208,7 @@ function validatePAN() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter PAN Number');
|
swal('Please Enter PAN Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ function ValidateAadhar(){
|
|||||||
if(reg.test(aadhar)== false)
|
if(reg.test(aadhar)== false)
|
||||||
{
|
{
|
||||||
//alert('alskdjsakjf');
|
//alert('alskdjsakjf');
|
||||||
alert('Please Enter Valid Aadhar Number');
|
swal('Please Enter Valid Aadhar Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -263,7 +263,7 @@ function validateDriverLicense() {
|
|||||||
{
|
{
|
||||||
if (reg.test(VehicleNo) == false)
|
if (reg.test(VehicleNo) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid Driver License Number');
|
swal('Please Enter Valid Driver License Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -277,27 +277,27 @@ function Validate()
|
|||||||
{
|
{
|
||||||
if($("#FirstName").val().length < 1)
|
if($("#FirstName").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter FirstName');
|
swal('Please Enter FirstName');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#LastName").val().length < 1)
|
if($("#LastName").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter LastName');
|
swal('Please Enter LastName');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#FatherName").val().length < 1)
|
if($("#FatherName").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter FatherName');
|
swal('Please Enter FatherName');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#DateofBirth").val().length < 1)
|
if($("#DateofBirth").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Date of Birth');
|
swal('Please Enter Date of Birth');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( $('#ContactNumber').val().length < 1 )
|
if ( $('#ContactNumber').val().length < 1 )
|
||||||
{
|
{
|
||||||
alert('Please Enter Contact Number');
|
swal('Please Enter Contact Number');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(!getMobileValidation())
|
else if(!getMobileValidation())
|
||||||
@ -326,42 +326,42 @@ function Validate()
|
|||||||
|
|
||||||
if($("option:selected", $("#gender")).val() == '-1')
|
if($("option:selected", $("#gender")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select Gender');
|
swal('Please Select Gender');
|
||||||
$('#gender').focus();
|
$('#gender').focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("option:selected", $("#MartialStatus")).val() == "-1")
|
if($("option:selected", $("#MartialStatus")).val() == "-1")
|
||||||
{
|
{
|
||||||
alert('Please Select Martial Status');
|
swal('Please Select Martial Status');
|
||||||
$('#MartialStatus').focus();
|
$('#MartialStatus').focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("option:selected", $("#bloodgroup")).val() == "-1")
|
if($("option:selected", $("#bloodgroup")).val() == "-1")
|
||||||
{
|
{
|
||||||
alert('Please Select Blood group ');
|
swal('Please Select Blood group ');
|
||||||
$("#bloodgroup").focus();
|
$("#bloodgroup").focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#currentaddress").val().length < 1)
|
if($("#currentaddress").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Current Address');
|
swal('Please Enter Current Address');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#permanentaddress").val().length < 1)
|
if($("#permanentaddress").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Permanent Address');
|
swal('Please Enter Permanent Address');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#emergencycontactname").val().length < 1)
|
if($("#emergencycontactname").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Emergency Contact Name');
|
swal('Please Enter Emergency Contact Name');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("#emergencycontactnumber").val().length < 1)
|
if($("#emergencycontactnumber").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Emergency Contact Number');
|
swal('Please Enter Emergency Contact Number');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(!getValidEmergencyNumber())
|
else if(!getValidEmergencyNumber())
|
||||||
@ -384,7 +384,7 @@ function getMobileValidation() {
|
|||||||
var contactNumber = $('#ContactNumber').val().length;
|
var contactNumber = $('#ContactNumber').val().length;
|
||||||
if(contactNumber < 10)
|
if(contactNumber < 10)
|
||||||
{
|
{
|
||||||
alert('Please Enter valid Contact Number');
|
swal('Please Enter valid Contact Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -396,7 +396,7 @@ function getValidEmergencyNumber() {
|
|||||||
var contactNumber = $('#emergencycontactnumber').val().length;
|
var contactNumber = $('#emergencycontactnumber').val().length;
|
||||||
if(contactNumber < 10)
|
if(contactNumber < 10)
|
||||||
{
|
{
|
||||||
alert('Please Enter valid Emergency Contact Number');
|
swal('Please Enter valid Emergency Contact Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -408,7 +408,7 @@ function getValidReferNumber() {
|
|||||||
var contactNumber = $('#referrercontno').val().length;
|
var contactNumber = $('#referrercontno').val().length;
|
||||||
if(contactNumber > 0 && contactNumber < 10)
|
if(contactNumber > 0 && contactNumber < 10)
|
||||||
{
|
{
|
||||||
alert('Please Enter valid Refernce Contact Number');
|
swal('Please Enter valid Refernce Contact Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -425,7 +425,7 @@ function validateEmail() {
|
|||||||
{
|
{
|
||||||
if (reg.test(email) == false)
|
if (reg.test(email) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid Email Address');
|
swal('Please Enter Valid Email Address');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -444,7 +444,7 @@ function validatecomEmail() {
|
|||||||
{
|
{
|
||||||
if (reg.test(email) == false)
|
if (reg.test(email) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid Company Email Address');
|
swal('Please Enter Valid Company Email Address');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -463,7 +463,7 @@ function validateESI() {
|
|||||||
{
|
{
|
||||||
if (reg.test(ESI) == false)
|
if (reg.test(ESI) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid ESI Number');
|
swal('Please Enter Valid ESI Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -482,7 +482,7 @@ function validatePF() {
|
|||||||
{
|
{
|
||||||
if (regpf.test(PF) == false)
|
if (regpf.test(PF) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid PF Number');
|
swal('Please Enter Valid PF Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -501,7 +501,7 @@ function validateUA() {
|
|||||||
{
|
{
|
||||||
if (reg.test(UA) == false)
|
if (reg.test(UA) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid UA Number');
|
swal('Please Enter Valid UA Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -588,7 +588,7 @@ function ValidatePassport()
|
|||||||
//alert(passport);
|
//alert(passport);
|
||||||
if(regsaid.test(passport) == false)
|
if(regsaid.test(passport) == false)
|
||||||
{
|
{
|
||||||
alert('You have entered invalid Passport.');
|
swal('You have entered invalid Passport.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1166,7 +1166,7 @@ function onlyAlphabets(evt) {
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(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;
|
return false;
|
||||||
//window.location = 'Employeedetails/employeeListing';
|
//window.location = 'Employeedetails/employeeListing';
|
||||||
}
|
}
|
||||||
@ -1188,7 +1188,7 @@ function onlyAlphabets(evt) {
|
|||||||
url:"<?php echo base_url();?>employeedetails/checkPAN",
|
url:"<?php echo base_url();?>employeedetails/checkPAN",
|
||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(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').val('');
|
||||||
$('#panno').focus();
|
$('#panno').focus();
|
||||||
//return false;
|
//return false;
|
||||||
@ -1212,7 +1212,7 @@ function onlyAlphabets(evt) {
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(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').val('');
|
||||||
$('#aadharno').focus();
|
$('#aadharno').focus();
|
||||||
//return false;
|
//return false;
|
||||||
|
|||||||
@ -2150,7 +2150,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2237,7 +2237,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -2276,7 +2276,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2313,7 +2313,7 @@ function EditQtyZerocheck()
|
|||||||
{
|
{
|
||||||
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
|
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);
|
$('#EdittxtBasicValue').val(0);
|
||||||
$('#EditimBasicPrice').val(0);
|
$('#EditimBasicPrice').val(0);
|
||||||
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
||||||
@ -2361,19 +2361,19 @@ function Ratechange(){
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2465,7 +2465,7 @@ function ExceedEditQuantityCheck()
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2747,37 +2747,37 @@ function validateImport()
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Quantity').val() == '')
|
else if($('#Quantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#imBasicPrice').val()=='')
|
else if($('#imBasicPrice').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter Basic Price In Us');
|
swal('Please Enter Basic Price In Us');
|
||||||
$('#imBasicPrice').focus();
|
$('#imBasicPrice').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3199,7 +3199,7 @@ function validateEditExceedLimit()
|
|||||||
|
|
||||||
if(exp > totavlbud || totalAmount > totavlbud)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3331,7 +3331,7 @@ function Budgetcheck()
|
|||||||
//console.log(TotalSum);
|
//console.log(TotalSum);
|
||||||
if(totordring>TotalSum)
|
if(totordring>TotalSum)
|
||||||
{
|
{
|
||||||
alert('You are Exceeding The Budget Amount');
|
swal('You are Exceeding The Budget Amount');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3363,7 +3363,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(document.getElementById('ImportTax').rows.length <= 0)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3381,7 +3381,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
//$('#SpcialInstruction').val('');
|
//$('#SpcialInstruction').val('');
|
||||||
@ -3391,7 +3391,7 @@ if(validate()&&Budgetcheck())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -3484,7 +3484,7 @@ $('#drpamendFreight').change(function(){
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpamendFreight').val("0");
|
$('#drpamendFreight').val("0");
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
}
|
}
|
||||||
@ -3502,14 +3502,14 @@ function calculateFreight()
|
|||||||
//alert('af');
|
//alert('af');
|
||||||
if($('#EditMaterialCode').val() == '')
|
if($('#EditMaterialCode').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#edittxtFreight').val('');
|
$('#edittxtFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#AmendtxtFreight').val('');
|
$('#AmendtxtFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -3520,7 +3520,7 @@ function calculateFreight()
|
|||||||
var FreightType =$("#drpamendFreight").val();
|
var FreightType =$("#drpamendFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#AmendtxtFreight').val('');
|
$('#AmendtxtFreight').val('');
|
||||||
$("#drpamendFreight").focus();
|
$("#drpamendFreight").focus();
|
||||||
}
|
}
|
||||||
@ -3550,7 +3550,7 @@ function calculateFreight()
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#AmendNOOfTrips').val()==''){
|
if($('#AmendNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#AmendNOOfTrips").focus();
|
$("#AmendNOOfTrips").focus();
|
||||||
$('#AmendtxtFreight').val(0)
|
$('#AmendtxtFreight').val(0)
|
||||||
|
|||||||
@ -459,10 +459,10 @@ function calculateBasic()
|
|||||||
var Totalsalary = document.getElementById('Total_Salary').value;;
|
var Totalsalary = document.getElementById('Total_Salary').value;;
|
||||||
var HRA=document.getElementById('HRA_Rate').value;
|
var HRA=document.getElementById('HRA_Rate').value;
|
||||||
if(HRA==''){
|
if(HRA==''){
|
||||||
alert("Please Enter HRA RATE..");
|
swal("Please Enter HRA RATE..");
|
||||||
document.getElementById('HRA_Rate').focus();
|
document.getElementById('HRA_Rate').focus();
|
||||||
}else if(Totalsalary==''){
|
}else if(Totalsalary==''){
|
||||||
alert("Please Enter Total Salary..");
|
swal("Please Enter Total Salary..");
|
||||||
document.getElementById('Total_Salary').focus();
|
document.getElementById('Total_Salary').focus();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -488,7 +488,7 @@ function duecalculation()
|
|||||||
{
|
{
|
||||||
if(due == 0)
|
if(due == 0)
|
||||||
{
|
{
|
||||||
alert("Enter Monthly Due Amount....!");
|
swal("Enter Monthly Due Amount....!");
|
||||||
$('#monthly_due').focus();
|
$('#monthly_due').focus();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -498,7 +498,7 @@ function duecalculation()
|
|||||||
|
|
||||||
if(totaldue < 1)
|
if(totaldue < 1)
|
||||||
{
|
{
|
||||||
alert("Please Enter Correct Due Amount..!");
|
swal("Please Enter Correct Due Amount..!");
|
||||||
$('#monthly_due').focus();
|
$('#monthly_due').focus();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -551,7 +551,7 @@ function finalCheck()
|
|||||||
var due=document.getElementById('monthly_due').value;
|
var due=document.getElementById('monthly_due').value;
|
||||||
var dsdate=document.getElementById('due_started').value;
|
var dsdate=document.getElementById('due_started').value;
|
||||||
if(idate == "" || due == "" || due == 0.00 || dsdate == ""){
|
if(idate == "" || due == "" || due == 0.00 || dsdate == ""){
|
||||||
alert("Enter All Loan Information Correctly...!");
|
swal("Enter All Loan Information Correctly...!");
|
||||||
return false;
|
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() == '')
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -581,7 +581,7 @@ $("#deleteemp").click(function(){
|
|||||||
if(result)
|
if(result)
|
||||||
{
|
{
|
||||||
|
|
||||||
alert(result);
|
swal(result);
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
window.location.href = "<?php echo base_url();?>emppayListings";
|
window.location.href = "<?php echo base_url();?>emppayListings";
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ function validateLOP(){
|
|||||||
//alert(x);
|
//alert(x);
|
||||||
//var ck_lopdays = /^[0-9]{1,2}([.][0-9]{1,2})$/;
|
//var ck_lopdays = /^[0-9]{1,2}([.][0-9]{1,2})$/;
|
||||||
if( x > 32){
|
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").css({"border-style":"dotted","border-color":"#ff8080","border-width":"2px","background-color":"#ffe6e6"});
|
||||||
|
|
||||||
//$("#LOPDays").attr("title","0 to 31 Days Only");
|
//$("#LOPDays").attr("title","0 to 31 Days Only");
|
||||||
|
|||||||
@ -766,7 +766,7 @@ function calculateSalary()
|
|||||||
var res2 = isNaN($('#incentive').val());
|
var res2 = isNaN($('#incentive').val());
|
||||||
if(res || res1 || res2)
|
if(res || res1 || res2)
|
||||||
{
|
{
|
||||||
alert("Enter a Number");
|
swal("Enter a Number");
|
||||||
return false;
|
return false;
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
@ -821,11 +821,11 @@ $("#save").click(function(){
|
|||||||
var i =result;
|
var i =result;
|
||||||
if(i == "1")
|
if(i == "1")
|
||||||
{
|
{
|
||||||
alert("sucessfully Updated..!");
|
swal("sucessfully Updated..!");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Something went wrong. Try later..!");
|
swal("Something went wrong. Try later..!");
|
||||||
}
|
}
|
||||||
window.location.href = "<?php echo base_url();?>PaysilpListing";
|
window.location.href = "<?php echo base_url();?>PaysilpListing";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -388,7 +388,7 @@ function calculateDiscount()
|
|||||||
|
|
||||||
if($('#EditRate').val() == '')
|
if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -400,7 +400,7 @@ function calculateDiscount()
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
$("#EditDiscountType").focus();
|
$("#EditDiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -483,7 +483,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if($('#EditRate').val() == '')
|
if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -497,7 +497,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if(PackagingType == "0")
|
if(PackagingType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Packaging Type');
|
swal('Please select the Packaging Type');
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
$("#EditPackagingType").focus();
|
$("#EditPackagingType").focus();
|
||||||
}
|
}
|
||||||
@ -511,7 +511,7 @@ function calculatePackaging()
|
|||||||
{
|
{
|
||||||
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -628,7 +628,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if($('#EditRate').val() == '')
|
if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -667,7 +667,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if($('#EditRate').val() == '')
|
if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -716,7 +716,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if($('#EditRate').val() == '')
|
if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -727,7 +727,7 @@ function calculatePackaging()
|
|||||||
|
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpEditFreight").focus();
|
$("#drpEditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -743,7 +743,7 @@ function calculatePackaging()
|
|||||||
if(FreightCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
if(FreightCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
//alert(FreightType);
|
//alert(FreightType);
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -789,7 +789,7 @@ function calculatePackaging()
|
|||||||
var nooftrips=$('#EditNOOfTrips').val();
|
var nooftrips=$('#EditNOOfTrips').val();
|
||||||
var freightrate=$('#txtEditFreight').val();
|
var freightrate=$('#txtEditFreight').val();
|
||||||
if((nooftrips == '') || (txtEditFreight == '')){
|
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);
|
$('#EditNOOfTrips').val(0.0);
|
||||||
$('#txtEditFreight').val(0.0);
|
$('#txtEditFreight').val(0.0);
|
||||||
$('#txtEditAfterFreight').val(0.0);
|
$('#txtEditAfterFreight').val(0.0);
|
||||||
@ -883,7 +883,7 @@ function validateEditExceedLimit()
|
|||||||
//alert(basicAmountRate+'-'+avalbudAmt+'-'+discount);
|
//alert(basicAmountRate+'-'+avalbudAmt+'-'+discount);
|
||||||
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2513,25 +2513,25 @@ function validateEditRevenueTax()
|
|||||||
{
|
{
|
||||||
if($('#EditCostCenter').val() == "")
|
if($('#EditCostCenter').val() == "")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0)
|
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '' || $('#EditRate').val() == 0)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2566,7 +2566,7 @@ function validateBudgetExceedLimit()
|
|||||||
if(basicAmountRate > avalbudAmt || totalAmount > avalbudAmt)
|
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');
|
$('.content').loader('hide');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -2615,12 +2615,12 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
|
|||||||
//alert(realrows);
|
//alert(realrows);
|
||||||
if(document.getElementById('revenueTax').rows.length < 2)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(parseInt(AvlBudAmt) < (parseInt(txtTotBasicAmount) - parseInt(txtTotalDiscount))) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2636,7 +2636,7 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('.content').loader('hide');
|
$('.content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
$('#txtStatus').val('');
|
$('#txtStatus').val('');
|
||||||
@ -2648,7 +2648,7 @@ var txtTotalDiscount = $('#txtTotalDiscount').val();
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('.content').loader('hide');
|
$('.content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -344,7 +344,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -381,7 +381,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,7 +416,7 @@ $("#txtEditBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -707,13 +707,13 @@ function calculateDiscount(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -725,7 +725,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
$("#DiscountType").focus();
|
$("#DiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -761,13 +761,13 @@ function calculateDiscount(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -779,7 +779,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
$("#EditDiscountType").focus();
|
$("#EditDiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -820,13 +820,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -839,7 +839,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if(PackagingType == "0")
|
if(PackagingType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Packaging Type');
|
swal('Please select the Packaging Type');
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
$("#PackagingType").focus();
|
$("#PackagingType").focus();
|
||||||
}
|
}
|
||||||
@ -853,7 +853,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
|
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
|
|
||||||
@ -894,13 +894,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -914,7 +914,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if(PackagingType == "0")
|
if(PackagingType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Packaging Type');
|
swal('Please select the Packaging Type');
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
$("#EditPackagingType").focus();
|
$("#EditPackagingType").focus();
|
||||||
}
|
}
|
||||||
@ -928,7 +928,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -971,14 +971,14 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -1001,7 +1001,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterDiscount').val() == '')
|
if($('#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1016,14 +1016,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterDiscount').val() == '')
|
if($('#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtAfterPackaging').val() == '')
|
else if($('#txtAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#PackagingType').focus();
|
$('#PackagingType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1040,7 +1040,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterPackaging').val() == '')
|
if($('#txtAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#PackagingType').focus();
|
$('#PackagingType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1067,13 +1067,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1097,7 +1097,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterDiscount').val() == '')
|
if($('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1112,14 +1112,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterDiscount').val() == '')
|
if($('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtEditAfterPackaging').val() == '')
|
else if($('#txtEditAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#EditPackagingType').focus();
|
$('#EditPackagingType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1135,7 +1135,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterPackaging').val() == '')
|
if($('#txtEditAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#EditPackagingType').focus();
|
$('#EditPackagingType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1167,13 +1167,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1187,7 +1187,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#txtAfterExciseDuty').val() == '')
|
if($('#txtAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtExciseDuty').focus();
|
$('#txtExciseDuty').focus();
|
||||||
$('#txtVat').val('');
|
$('#txtVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1223,13 +1223,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1244,7 +1244,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#txtEditAfterExciseDuty').val() == '')
|
if($('#txtEditAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtEditAfterExciseDuty').focus();
|
$('#txtEditAfterExciseDuty').focus();
|
||||||
$('#txtEditVat').val('');
|
$('#txtEditVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1284,13 +1284,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1304,7 +1304,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#txtAfterExciseDuty').val() == '')
|
if($('#txtAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtExciseDuty').focus();
|
$('#txtExciseDuty').focus();
|
||||||
$('#txtAfterCST').val('');
|
$('#txtAfterCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1340,13 +1340,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1361,7 +1361,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#txtEditAfterExciseDuty').val() == '')
|
if($('#txtEditAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtEditAfterExciseDuty').focus();
|
$('#txtEditAfterExciseDuty').focus();
|
||||||
$('#txtEditCST').val('');
|
$('#txtEditCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1403,13 +1403,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1440,13 +1440,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1481,13 +1481,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1519,13 +1519,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1562,13 +1562,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1578,7 +1578,7 @@ function calculatePackaging(isEdit)
|
|||||||
var FreightType =$("#drpFreight").val();
|
var FreightType =$("#drpFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$("#drpFreight").focus();
|
$("#drpFreight").focus();
|
||||||
}
|
}
|
||||||
@ -1594,7 +1594,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($(FreightCalculation != 0 && '#txtAfterDiscount').val() == '')
|
if($(FreightCalculation != 0 && '#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
|
|
||||||
@ -1622,7 +1622,7 @@ function calculatePackaging(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()==''){
|
if($('#NOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -1664,7 +1664,7 @@ function calculatePackaging(isEdit)
|
|||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1674,7 +1674,7 @@ function calculatePackaging(isEdit)
|
|||||||
var FreightType =$("#drpEditFreight").val();
|
var FreightType =$("#drpEditFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpEditFreight").focus();
|
$("#drpEditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -1693,7 +1693,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($(FreightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
|
if($(FreightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
|
|
||||||
@ -1721,7 +1721,7 @@ function calculatePackaging(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -1763,7 +1763,7 @@ function calculatePackaging(isEdit)
|
|||||||
}
|
}
|
||||||
else if($('#ViewRate').val() == '')
|
else if($('#ViewRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#ViewRate').focus();
|
$('#ViewRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1773,7 +1773,7 @@ function calculatePackaging(isEdit)
|
|||||||
var FreightType =$("#drpViewFreight").val();
|
var FreightType =$("#drpViewFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtViewFreight').val('');
|
$('#txtViewFreight').val('');
|
||||||
$("#drpViewFreight").focus();
|
$("#drpViewFreight").focus();
|
||||||
}
|
}
|
||||||
@ -1792,7 +1792,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($(FreightCalculation != 0 && '#txtViewAfterDiscount').val() == '')
|
if($(FreightCalculation != 0 && '#txtViewAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtViewFreight').val('');
|
$('#txtViewFreight').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
|
|
||||||
@ -1821,7 +1821,7 @@ function calculatePackaging(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#ViewNOOfTrips').val()==''){
|
if($('#ViewNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#ViewNOOfTrips").focus();
|
$("#ViewNOOfTrips").focus();
|
||||||
$('#txtViewFreight').val(0)
|
$('#txtViewFreight').val(0)
|
||||||
@ -1963,7 +1963,7 @@ SetVatorCST();
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
//$('#Quantity').val(RequistQuantity);
|
//$('#Quantity').val(RequistQuantity);
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -1980,7 +1980,7 @@ SetVatorCST();
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2070,7 +2070,7 @@ function validateEditExceedLimit()
|
|||||||
|
|
||||||
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4528,25 +4528,25 @@ function validateEditRevenueTax()
|
|||||||
{
|
{
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == '')
|
else if($('#EditQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4647,7 +4647,7 @@ function validateBudgetExceedLimit()
|
|||||||
avalbudAmt = parseFloat(data);
|
avalbudAmt = parseFloat(data);
|
||||||
if(basicAmountRate > avalbudAmt || totalAmount > avalbudAmt)
|
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();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -4748,12 +4748,12 @@ function DeleteRow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -4848,7 +4848,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
|
|||||||
{
|
{
|
||||||
if(document.getElementById('revenueTax').rows.length < 2)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4857,18 +4857,18 @@ var totaldiscount = $('#txtTotalDiscount').val();
|
|||||||
// return false;
|
// return false;
|
||||||
//}
|
//}
|
||||||
else if(parseInt(AvlBudAmt) < (parseInt(txtTotalbasicamount)- parseInt(totaldiscount))){
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
||||||
alert('Please Enter Payable Terms Description');
|
swal('Please Enter Payable Terms Description');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#insurancestatus').val() == 1 && $('#insuranceno').val() == ''){
|
else if($('#insurancestatus').val() == 1 && $('#insuranceno').val() == ''){
|
||||||
alert('Please Enter Insurance No..!');
|
swal('Please Enter Insurance No..!');
|
||||||
$('#insurance').focus();
|
$('#insurance').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4883,7 +4883,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
$('#txtStatus').val('');
|
$('#txtStatus').val('');
|
||||||
@ -4895,7 +4895,7 @@ var totaldiscount = $('#txtTotalDiscount').val();
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -5127,7 +5127,7 @@ $("#AvlBudAmt").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
|
|||||||
@ -279,7 +279,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ for(i=2;i<=rows;i++){
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -438,7 +438,7 @@ $('#MaterialCode').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -475,7 +475,7 @@ $("#EditQuantity").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -487,19 +487,19 @@ function Ratechange(){
|
|||||||
|
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -536,7 +536,7 @@ function EditRatechange(){
|
|||||||
|
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -602,7 +602,7 @@ function IGSTchange()
|
|||||||
|
|
||||||
if(ReqAmount > BudAmount )
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1981,11 +1981,11 @@ function DeleteRow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -2045,31 +2045,31 @@ function validateServiceTax()
|
|||||||
|
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Quantity').val() == '')
|
else if($('#Quantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2093,25 +2093,25 @@ function validateServiceTax()
|
|||||||
|
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0.00)
|
else if($('#EditQuantity').val() == '' || $('#EditQuantity').val() == 0.00)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '' || $('#EditRate').val() == 0.00)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2125,7 +2125,7 @@ function validateServiceTax()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EdittxtSpcialInstruction').val()==''){
|
else if($('#EdittxtSpcialInstruction').val()==''){
|
||||||
alert('Please Enter the Service Description');
|
swal('Please Enter the Service Description');
|
||||||
$('#EdittxtSpcialInstruction').focus();
|
$('#EdittxtSpcialInstruction').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2164,17 +2164,17 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
if(validate())
|
if(validate())
|
||||||
{
|
{
|
||||||
if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
||||||
alert('Please Enter Other Payment Details');
|
swal('Please Enter Other Payment Details');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#amenddescofpo').val().trim()==''){
|
else if($('#amenddescofpo').val().trim()==''){
|
||||||
alert('Please Enter Description Of Service');
|
swal('Please Enter Description Of Service');
|
||||||
$('#amenddescofpo').focus();
|
$('#amenddescofpo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2189,7 +2189,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
{
|
{
|
||||||
|
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
$('#txtStatus').val('');
|
$('#txtStatus').val('');
|
||||||
@ -2201,7 +2201,7 @@ var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,7 +133,7 @@ if(!empty($supplier))
|
|||||||
function blockKeyPress(evt)
|
function blockKeyPress(evt)
|
||||||
{
|
{
|
||||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||||
alert(charCode);
|
swal(charCode);
|
||||||
if(charCode == 8 || charCode == 46 )
|
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)
|
if (reg.test(PAN) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid PAN Number');
|
swal('Please Enter Valid PAN Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -181,7 +181,7 @@ var reg = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;//(?=.*[A-Za-z]).{5,}(?=.*[0
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter PAN Number');
|
swal('Please Enter PAN Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ function validateECCNumber() {
|
|||||||
{
|
{
|
||||||
if (reg.test(ECC) == false)
|
if (reg.test(ECC) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid Excise Control Code Number');
|
swal('Please Enter Valid Excise Control Code Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -235,13 +235,13 @@ function getContactNumberValidation(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
else{
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
alert('please correct format of contact number');
|
swal('please correct format of contact number');
|
||||||
//alert('invalid'+contactNumber);
|
//alert('invalid'+contactNumber);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -274,13 +274,13 @@ function getContactNumberValidation(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
else{
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
alert('please correct format of contact number');
|
swal('please correct format of contact number');
|
||||||
//alert('invalid'+contactNumber);
|
//alert('invalid'+contactNumber);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -297,7 +297,7 @@ function validateEmail() {
|
|||||||
{
|
{
|
||||||
if (reg.test(email) == false)
|
if (reg.test(email) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid Email Address');
|
swal('Please Enter Valid Email Address');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -307,7 +307,7 @@ function validateEmail() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter email id');
|
swal('Please Enter email id');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -321,7 +321,7 @@ function validateGST() {
|
|||||||
{
|
{
|
||||||
if (reg.test(GST) == false)
|
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);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -331,7 +331,7 @@ function validateGST() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Enter GST Number');
|
swal('Please Enter GST Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +345,7 @@ function validateUA() {
|
|||||||
{
|
{
|
||||||
if (reguano.test(UA) == false)
|
if (reguano.test(UA) == false)
|
||||||
{
|
{
|
||||||
alert('Please Enter Valid UA Number');
|
swal('Please Enter Valid UA Number');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -685,7 +685,7 @@ function Validate()
|
|||||||
// }
|
// }
|
||||||
if($("#supplierName").val().length < 1)
|
if($("#supplierName").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Supplier Name');
|
swal('Please Enter Supplier Name');
|
||||||
$("#supplierName").focus();
|
$("#supplierName").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -702,14 +702,14 @@ if(!getContactNumberValidation)
|
|||||||
|
|
||||||
if($("#Address").val().length < 1)
|
if($("#Address").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter Address');
|
swal('Please Enter Address');
|
||||||
$("#Address").focus();
|
$("#Address").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($("#TIN").val().length < 1)
|
if($("#TIN").val().length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Enter TIN number');
|
swal('Please Enter TIN number');
|
||||||
$("#TIN").focus();
|
$("#TIN").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -735,7 +735,7 @@ if(!validateGST())
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(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').val('');
|
||||||
$('#panno').focus();
|
$('#panno').focus();
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ if(!validateGST())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please enter the PAN Number');
|
swal('Please enter the PAN Number');
|
||||||
$('#panno').focus();
|
$('#panno').focus();
|
||||||
// return false;
|
// return false;
|
||||||
}
|
}
|
||||||
@ -777,7 +777,7 @@ if(!validateGST())
|
|||||||
success:function(data) {
|
success:function(data) {
|
||||||
if(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').val('');
|
||||||
$('#GSTNo').focus();
|
$('#GSTNo').focus();
|
||||||
|
|
||||||
@ -802,7 +802,7 @@ if(!validateGST())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please enter the GST Number');
|
swal('Please enter the GST Number');
|
||||||
$('#GSTNo').focus();
|
$('#GSTNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -426,7 +426,7 @@ function validate()
|
|||||||
{
|
{
|
||||||
if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
if($("option:selected", $("#ApprovedBy")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select Approver Names');
|
swal('Please Select Approver Names');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -3355,7 +3355,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3445,7 +3445,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -3487,7 +3487,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3528,7 +3528,7 @@ function EditQtyZerocheck()
|
|||||||
{
|
{
|
||||||
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
|
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);
|
$('#EdittxtBasicValue').val(0);
|
||||||
$('#EditimBasicPrice').val(0);
|
$('#EditimBasicPrice').val(0);
|
||||||
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
||||||
@ -3576,7 +3576,7 @@ function QtyZerocheck()
|
|||||||
{
|
{
|
||||||
if(($('#Rate').val()=="0")||$('#Quantity').val()=="0"||($('#Rate').val()=='')||$('#Quantity').val()=='')
|
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);
|
$('#txtBasicValue').val(0);
|
||||||
$('#imBasicPrice').val(0);
|
$('#imBasicPrice').val(0);
|
||||||
$('#ExchangeRt').val(0);
|
$('#ExchangeRt').val(0);
|
||||||
@ -3598,19 +3598,19 @@ function Ratechange()
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenterCode');
|
swal('Please select the CostCenterCode');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3799,7 +3799,7 @@ function ExceedEditQuantityCheck()
|
|||||||
//var ReqQuantity=parseFloat($('#EditQuantity').val());
|
//var ReqQuantity=parseFloat($('#EditQuantity').val());
|
||||||
if(EnterQuantity > 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();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4300,7 +4300,7 @@ function ExceedQuantityCheck()
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
//$('#Quantity').val(RequistQuantity);
|
//$('#Quantity').val(RequistQuantity);
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -4332,7 +4332,7 @@ function validateEditExceedLimit()
|
|||||||
|
|
||||||
if(exp > totavlbud || totalAmount > totavlbud)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4370,7 +4370,7 @@ var totavlbud=avalbudAmt+Sum;
|
|||||||
|
|
||||||
if(exp > totavlbud || totalAmount > totavlbud)
|
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();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4737,37 +4737,37 @@ function validateImport()
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#MaterialCode').val() == "0")
|
else if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Quantity').val() == '')
|
else if($('#Quantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#imBasicPrice').val()=='')
|
else if($('#imBasicPrice').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter Basic Price In Us');
|
swal('Please Enter Basic Price In Us');
|
||||||
$('#imBasicPrice').focus();
|
$('#imBasicPrice').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -5561,11 +5561,11 @@ function DeleteRow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -5683,7 +5683,7 @@ function Budgetcheck()
|
|||||||
//console.log(TotalSum);
|
//console.log(TotalSum);
|
||||||
if(totordring>TotalSum)
|
if(totordring>TotalSum)
|
||||||
{
|
{
|
||||||
alert('You are Exceeding The Budget');
|
swal('You are Exceeding The Budget');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5741,7 +5741,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(document.getElementById('ImportTax').rows.length <= 0)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -5759,7 +5759,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
//$('#SpcialInstruction').val('');
|
//$('#SpcialInstruction').val('');
|
||||||
@ -5769,7 +5769,7 @@ if(validate()&&Budgetcheck())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -5892,7 +5892,7 @@ $('#edittxtAfterFreight').val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpEditFreight').val("0");
|
$('#drpEditFreight').val("0");
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
}
|
}
|
||||||
@ -5940,7 +5940,7 @@ if($('#Rate').val() != '' && $('#MaterialCode').val() != "0" )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpaddFreight').val("0");
|
$('#drpaddFreight').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -5960,14 +5960,14 @@ function calculateFreight(isEdit)
|
|||||||
{ //alert();
|
{ //alert();
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#addtxtFreight').val('') ;
|
$('#addtxtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -5979,7 +5979,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpaddFreight").val();
|
var FreightType =$("#drpaddFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#addtxtFreight').val('');
|
$('#addtxtFreight').val('');
|
||||||
$("#drpaddFreight").focus();
|
$("#drpaddFreight").focus();
|
||||||
}
|
}
|
||||||
@ -6010,7 +6010,7 @@ function calculateFreight(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#addNOOfTrips').val()=='')
|
if($('#addNOOfTrips').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#addNOOfTrips").focus();
|
$("#addNOOfTrips").focus();
|
||||||
$('#addtxtFreight').val(0)
|
$('#addtxtFreight').val(0)
|
||||||
@ -6053,14 +6053,14 @@ function calculateFreight(isEdit)
|
|||||||
// alert('af');
|
// alert('af');
|
||||||
if($('#EditMaterialCode').val() == '')
|
if($('#EditMaterialCode').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#edittxtFreight').val('');
|
$('#edittxtFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#edittxtFreight').val('');
|
$('#edittxtFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -6071,7 +6071,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpeditFreight").val();
|
var FreightType =$("#drpeditFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#edittxtFreight').val('');
|
$('#edittxtFreight').val('');
|
||||||
$("#drpeditFreight").focus();
|
$("#drpeditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -6101,7 +6101,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#editNOOfTrips').val()==''){
|
if($('#editNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#editNOOfTrips").focus();
|
$("#editNOOfTrips").focus();
|
||||||
$('#edittxtFreight').val(0)
|
$('#edittxtFreight').val(0)
|
||||||
@ -6142,7 +6142,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpviewFreight").val();
|
var FreightType =$("#drpviewFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#viewtxtFreight').val('');
|
$('#viewtxtFreight').val('');
|
||||||
$("#drpviewFreight").focus();
|
$("#drpviewFreight").focus();
|
||||||
}
|
}
|
||||||
@ -6172,7 +6172,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#viewNOOfTrips').val()==''){
|
if($('#viewNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#viewNOOfTrips").focus();
|
$("#viewNOOfTrips").focus();
|
||||||
$('#viewtxtFreight').val(0)
|
$('#viewtxtFreight').val(0)
|
||||||
|
|||||||
@ -649,7 +649,7 @@ $("#UOM").val('');
|
|||||||
$("#mypo").on("shown.bs.modal", function(e) {
|
$("#mypo").on("shown.bs.modal", function(e) {
|
||||||
if($("option:selected", $("#CostCenter")).val() == '-1')
|
if($("option:selected", $("#CostCenter")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please select the CostCenter ');
|
swal('Please select the CostCenter ');
|
||||||
e.close();
|
e.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -661,13 +661,13 @@ $("#mypo").on("shown.bs.modal", function(e) {
|
|||||||
|
|
||||||
if ($("#MaterialCode option:selected").val() =='-1' )
|
if ($("#MaterialCode option:selected").val() =='-1' )
|
||||||
{
|
{
|
||||||
alert('Please Select the MaterialCode ');
|
swal('Please Select the MaterialCode ');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(document.getElementById('Quantity').value == '' )
|
if(document.getElementById('Quantity').value == '' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity');
|
swal('Please Enter the Quantity');
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -872,14 +872,14 @@ function Deleterow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -959,14 +959,14 @@ function Deleterow(rowid)
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}});
|
}});
|
||||||
@ -981,7 +981,7 @@ function validateBeforeAdd()
|
|||||||
|
|
||||||
if ($("#CostCenter option:selected").val() =='-1' )
|
if ($("#CostCenter option:selected").val() =='-1' )
|
||||||
{
|
{
|
||||||
alert('Please Select the CostCenterCode ');
|
swal('Please Select the CostCenterCode ');
|
||||||
$("#CostCenter").focus();
|
$("#CostCenter").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -990,7 +990,7 @@ function validateBeforeAdd()
|
|||||||
|
|
||||||
else if( isExceed == '1')
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1038,7 +1038,7 @@ else
|
|||||||
{
|
{
|
||||||
if(document.getElementById('mytable').rows.length < 0)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1057,7 +1057,7 @@ else
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
|
|
||||||
@ -1066,7 +1066,7 @@ else
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1081,24 +1081,24 @@ function validate()
|
|||||||
|
|
||||||
if($("option:selected", $("#CostCenter")).val() == '-1')
|
if($("option:selected", $("#CostCenter")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select CostCenter');
|
swal('Please Select CostCenter');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($("option:selected", $("#MaterialCode")).val() == '-1')
|
else if($("option:selected", $("#MaterialCode")).val() == '-1')
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode');
|
swal('Please Select MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(document.getElementById('mytable').rows.length < 1)
|
else if(document.getElementById('mytable').rows.length < 1)
|
||||||
{
|
{
|
||||||
alert('Please Add Line Item');
|
swal('Please Add Line Item');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(isExceed == 1)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -165,19 +165,19 @@ function vaildateBeforeOpenModal()
|
|||||||
{
|
{
|
||||||
if($('#PODate').val() == '')
|
if($('#PODate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Purchase Order date');
|
swal('Please Enter the Purchase Order date');
|
||||||
$('#PODate').focus();
|
$('#PODate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#drpSupplier').val() == "0")
|
else if($('#drpSupplier').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Supplier details');
|
swal('Please Select the Supplier details');
|
||||||
$('#drpSupplier').focus();
|
$('#drpSupplier').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#DeliveryAddr').val() == '')
|
else if($('#DeliveryAddr').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Delivery Address');
|
swal('Please Enter the Delivery Address');
|
||||||
$('#DeliveryAddr').focus();
|
$('#DeliveryAddr').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -185,47 +185,47 @@ function vaildateBeforeOpenModal()
|
|||||||
{
|
{
|
||||||
if(document.getElementById("Schedule").checked)
|
if(document.getElementById("Schedule").checked)
|
||||||
{
|
{
|
||||||
alert('Please Enter Schedule By');
|
swal('Please Enter Schedule By');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(document.getElementById("Date").checked)
|
else if(document.getElementById("Date").checked)
|
||||||
{
|
{
|
||||||
alert('Please Enter Dispatch Instruction');
|
swal('Please Enter Dispatch Instruction');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if($('#currencytype').val() == '0')
|
else if($('#currencytype').val() == '0')
|
||||||
{
|
{
|
||||||
alert('Please Select the Currency Type');
|
swal('Please Select the Currency Type');
|
||||||
$('#currencytype').focus();
|
$('#currencytype').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#ExchangeRate').val() == '')
|
else if($('#ExchangeRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Exchange Rate');
|
swal('Please Enter the Exchange Rate');
|
||||||
$('#ExchangeRate').focus();
|
$('#ExchangeRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($('#ExchangeRate').val() == 0)
|
else if($('#ExchangeRate').val() == 0)
|
||||||
{
|
{
|
||||||
alert('Please Enter the Exchange Rate');
|
swal('Please Enter the Exchange Rate');
|
||||||
$('#ExchangeRate').focus();
|
$('#ExchangeRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($('#PlaceOforigin').val()== '')
|
else if($('#PlaceOforigin').val()== '')
|
||||||
{
|
{
|
||||||
alert('Please Enter Place Of Origin');
|
swal('Please Enter Place Of Origin');
|
||||||
$('#PlaceOforigin').focus();
|
$('#PlaceOforigin').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($('#PaymentTerms').val()=='')
|
else if($('#PaymentTerms').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Select Payment Terms');
|
swal('Please Select Payment Terms');
|
||||||
$('#PaymentTerms').focus();
|
$('#PaymentTerms').focus();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ function vaildateBeforeOpenModal()
|
|||||||
|
|
||||||
else if($('#Importoption').val()== "0")
|
else if($('#Importoption').val()== "0")
|
||||||
{
|
{
|
||||||
alert('Please Select POType');
|
swal('Please Select POType');
|
||||||
$('#Importoption').focus();
|
$('#Importoption').focus();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -2257,7 +2257,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2357,7 +2357,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -2400,7 +2400,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2483,7 +2483,7 @@ function QtyZerocheck()
|
|||||||
{
|
{
|
||||||
if(($('#Rate').val()=="0")||$('#Quantity').val()=="0"||($('#Rate').val()=='')||$('#Quantity').val()=='')
|
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);
|
$('#txtBasicValue').val(0);
|
||||||
$('#imBasicPrice').val(0);
|
$('#imBasicPrice').val(0);
|
||||||
$('#ExchangeRt').val(0);
|
$('#ExchangeRt').val(0);
|
||||||
@ -2577,7 +2577,7 @@ function EditQtyZerocheck()
|
|||||||
{
|
{
|
||||||
if(($('#EditRate').val()=="0")||$('#EditQuantity').val()=="0"||($('#EditRate').val()=='')||$('#EditQuantity').val()=='')
|
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);
|
$('#EdittxtBasicValue').val(0);
|
||||||
$('#EditimBasicPrice').val(0);
|
$('#EditimBasicPrice').val(0);
|
||||||
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
var txtexchangerate=parseFloat($('#ExchangeRate').val());
|
||||||
@ -2674,7 +2674,7 @@ function validateEditExceedLimit()
|
|||||||
|
|
||||||
if(exp > avalbudAmte || totalAmount > avalbudAmte)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2706,7 +2706,7 @@ var avalbudAmt= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
|
|||||||
|
|
||||||
if(exp > avalbudAmt || totalAmount > avalbudAmt)
|
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();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2868,7 +2868,7 @@ function ExceedQuantityCheck()
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
//$('#Quantity').val(RequistQuantity);
|
//$('#Quantity').val(RequistQuantity);
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -2886,7 +2886,7 @@ return true;
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
//$('#Quantity').val(RequistQuantity);
|
//$('#Quantity').val(RequistQuantity);
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -3381,7 +3381,7 @@ $('#drpFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpFreight').val("0");
|
$('#drpFreight').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -3405,14 +3405,14 @@ function calculateFreight(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -3455,7 +3455,7 @@ function calculateFreight(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()=='')
|
if($('#NOOfTrips').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -3495,14 +3495,14 @@ function calculateFreight(isEdit)
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -3513,7 +3513,7 @@ function calculateFreight(isEdit)
|
|||||||
var FreightType =$("#drpeditFreight").val();
|
var FreightType =$("#drpeditFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpeditFreight").focus();
|
$("#drpeditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -3543,7 +3543,7 @@ function calculateFreight(isEdit)
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#editNOOfTrips').val()==''){
|
if($('#editNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#editNOOfTrips").focus();
|
$("#editNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -3759,13 +3759,13 @@ function validateImport()
|
|||||||
//alert();
|
//alert();
|
||||||
if($('#ReqNo').val() == "0")
|
if($('#ReqNo').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
$('#ReqNo').focus();
|
$('#ReqNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#CostCenter').val() == "0")
|
else if($('#CostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#CostCenter').focus();
|
$('#CostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3777,19 +3777,19 @@ function validateImport()
|
|||||||
}
|
}
|
||||||
else if($('#Quantity').val() == '')
|
else if($('#Quantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#imBasicPrice').val()=='')
|
else if($('#imBasicPrice').val()=='')
|
||||||
{
|
{
|
||||||
alert('Please Enter Basic Price In Us');
|
swal('Please Enter Basic Price In Us');
|
||||||
$('#imBasicPrice').focus();
|
$('#imBasicPrice').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4494,7 +4494,7 @@ function Budgetcheck()
|
|||||||
var TotalSum=avalbudAmte;
|
var TotalSum=avalbudAmte;
|
||||||
if(totordring>TotalSum)
|
if(totordring>TotalSum)
|
||||||
{
|
{
|
||||||
alert('You are Exceeding The Budget');
|
swal('You are Exceeding The Budget');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4535,7 +4535,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(document.getElementById('ImportTax').rows.length <= 0)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4553,7 +4553,7 @@ if(validate()&&Budgetcheck())
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
//$('#SpcialInstruction').val('');
|
//$('#SpcialInstruction').val('');
|
||||||
@ -4563,7 +4563,7 @@ if(validate()&&Budgetcheck())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -4671,7 +4671,7 @@ if (FreightType == "PER TRIP")
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpEditFreight').val("0");
|
$('#drpEditFreight').val("0");
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ $("#Employee").empty();
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the PayOn');
|
swal('Please select the PayOn');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -193,12 +193,12 @@ if(empty($Status))
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -218,7 +218,7 @@ return;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('please Select Status!');
|
swal('please Select Status!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -193,12 +193,12 @@ if(empty($Status))
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -218,7 +218,7 @@ return;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('please Select Status!');
|
swal('please Select Status!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -137,46 +137,46 @@ function vaildateBeforeOpenModal()
|
|||||||
var radioValue = $("input[name='DateRange']:checked").val();
|
var radioValue = $("input[name='DateRange']:checked").val();
|
||||||
if($('#PODate').val() == '')
|
if($('#PODate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Purchase Order date');
|
swal('Please Enter the Purchase Order date');
|
||||||
$('#PODate').focus();
|
$('#PODate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#drpSupplier').val() == "0")
|
else if($('#drpSupplier').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Supplier details');
|
swal('Please Select the Supplier details');
|
||||||
$('#drpSupplier').focus();
|
$('#drpSupplier').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#DeliveryAddr').val() == '')
|
else if($('#DeliveryAddr').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Delivery Address');
|
swal('Please Enter the Delivery Address');
|
||||||
$('#DeliveryAddr').focus();
|
$('#DeliveryAddr').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(radioValue==0 && $('#Deliverydate').val()==''){
|
else if(radioValue==0 && $('#Deliverydate').val()==''){
|
||||||
alert('Please Select the Delivery Date');
|
swal('Please Select the Delivery Date');
|
||||||
$('#Deliverydate').focus();
|
$('#Deliverydate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
|
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
|
||||||
alert('Please Enter the Schedule By');
|
swal('Please Enter the Schedule By');
|
||||||
$('#Deliverydate').focus();
|
$('#Deliverydate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(radioValue==0 && $('#Deliverydate').val()==''){
|
else if(radioValue==0 && $('#Deliverydate').val()==''){
|
||||||
alert('Please Select the Delivery Date');
|
swal('Please Select the Delivery Date');
|
||||||
$('#Deliverydate').focus();
|
$('#Deliverydate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
|
else if(radioValue==1 && $('#Scheduleby').val().trim()==''){
|
||||||
alert('Please Enter the Schedule By');
|
swal('Please Enter the Schedule By');
|
||||||
$('#Deliverydate').focus();
|
$('#Deliverydate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($('#PoTypeOptions').val()==0)
|
else if($('#PoTypeOptions').val()==0)
|
||||||
{
|
{
|
||||||
alert('Please Select POType');
|
swal('Please Select POType');
|
||||||
$('#PoTypeOptions').focus();
|
$('#PoTypeOptions').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -318,7 +318,7 @@ $('#drpSupplier').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the SupplierID');
|
swal('Please select the SupplierID');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,7 +399,7 @@ $("#AvlBudAmt").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the Requisition Number');
|
swal('Please select the Requisition Number');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
id = '';
|
id = '';
|
||||||
@ -436,7 +436,7 @@ $("#txtBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -472,7 +472,7 @@ $("#txtEditBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please select the MaterialCode');
|
swal('Please select the MaterialCode');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,7 +505,7 @@ $("#txtEditBasicValue").val('');
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#PackagingType').val("0");
|
$('#PackagingType').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -538,7 +538,7 @@ $('#EditDiscountType').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#EditDiscountType').val("0");
|
$('#EditDiscountType').val("0");
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
}
|
}
|
||||||
@ -577,7 +577,7 @@ $('#PackagingType').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#PackagingType').val("0");
|
$('#PackagingType').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -771,7 +771,7 @@ $('#drpFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpFreight').val("0");
|
$('#drpFreight').val("0");
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
}
|
}
|
||||||
@ -819,7 +819,7 @@ $('#drpEditFreight').change(function() {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Please Select MaterialCode and Rate Field Value');
|
swal('Please Select MaterialCode and Rate Field Value');
|
||||||
$('#drpEditFreight').val("0");
|
$('#drpEditFreight').val("0");
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
}
|
}
|
||||||
@ -835,14 +835,14 @@ function calculateDiscount(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -855,7 +855,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtDiscount').val('');
|
$('#txtDiscount').val('');
|
||||||
$("#DiscountType").focus();
|
$("#DiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -892,14 +892,14 @@ function calculateDiscount(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -912,7 +912,7 @@ function calculateDiscount(isEdit)
|
|||||||
|
|
||||||
if(DiscountType == "0")
|
if(DiscountType == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the discount Type');
|
swal('Please Select the discount Type');
|
||||||
$('#txtEditDiscount').val('');
|
$('#txtEditDiscount').val('');
|
||||||
$("#EditDiscountType").focus();
|
$("#EditDiscountType").focus();
|
||||||
}
|
}
|
||||||
@ -955,14 +955,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -976,7 +976,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if(PackagingType == "0")
|
if(PackagingType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Packaging Type');
|
swal('Please select the Packaging Type');
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
$("#PackagingType").focus();
|
$("#PackagingType").focus();
|
||||||
}
|
}
|
||||||
@ -990,7 +990,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
|
if($(PackagingCalculation != 0 && '#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtPackaging').val('');
|
$('#txtPackaging').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
|
|
||||||
@ -1034,14 +1034,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1056,7 +1056,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if(PackagingType == "0")
|
if(PackagingType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Packaging Type');
|
swal('Please select the Packaging Type');
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
$("#EditPackagingType").focus();
|
$("#EditPackagingType").focus();
|
||||||
}
|
}
|
||||||
@ -1070,7 +1070,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
if(PackagingCalculation != 0 &&$('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditPackaging').val('');
|
$('#txtEditPackaging').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1113,14 +1113,14 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -1143,7 +1143,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterDiscount').val() == '')
|
if($('#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1158,14 +1158,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterDiscount').val() == '')
|
if($('#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtAfterPackaging').val() == '')
|
else if($('#txtAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#PackagingType').focus();
|
$('#PackagingType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1182,7 +1182,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtAfterPackaging').val() == '')
|
if($('#txtAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#PackagingType').focus();
|
$('#PackagingType').focus();
|
||||||
$('#txtExciseDuty').val('');
|
$('#txtExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1210,13 +1210,13 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1240,7 +1240,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterDiscount').val() == '')
|
if($('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1255,14 +1255,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterDiscount').val() == '')
|
if($('#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#txtEditAfterPackaging').val() == '')
|
else if($('#txtEditAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#EditPackagingType').focus();
|
$('#EditPackagingType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1278,7 +1278,7 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#txtEditAfterPackaging').val() == '')
|
if($('#txtEditAfterPackaging').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Packaging value');
|
swal('Please Enter the Packaging value');
|
||||||
$('#EditPackagingType').focus();
|
$('#EditPackagingType').focus();
|
||||||
$('#txtEditExciseDuty').val('');
|
$('#txtEditExciseDuty').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1310,14 +1310,14 @@ function calculatePackaging(isEdit)
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtVat').val('');
|
$('#txtVat').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtVat').val('');
|
$('#txtVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1332,7 +1332,7 @@ function calculatePackaging(isEdit)
|
|||||||
|
|
||||||
if($('#txtAfterExciseDuty').val() == '')
|
if($('#txtAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtExciseDuty').focus();
|
$('#txtExciseDuty').focus();
|
||||||
$('#txtVat').val('');
|
$('#txtVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1375,14 +1375,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditVat').val('');
|
$('#txtEditVat').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditVat').val('');
|
$('#txtEditVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1398,7 +1398,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
|
|
||||||
if($('#txtEditAfterExciseDuty').val() == '')
|
if($('#txtEditAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtEditAfterExciseDuty').focus();
|
$('#txtEditAfterExciseDuty').focus();
|
||||||
$('#txtEditVat').val('');
|
$('#txtEditVat').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1438,14 +1438,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtCST').val('');
|
$('#txtCST').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtCST').val('');
|
$('#txtCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1462,7 +1462,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
|
|
||||||
if($('#txtAfterExciseDuty').val() == '')
|
if($('#txtAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtExciseDuty').focus();
|
$('#txtExciseDuty').focus();
|
||||||
$('#txtAfterCST').val('');
|
$('#txtAfterCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1499,14 +1499,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditCST').val('');
|
$('#txtEditCST').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditCST').val('');
|
$('#txtEditCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1522,7 +1522,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
|
|
||||||
if($('#txtEditAfterExciseDuty').val() == '')
|
if($('#txtEditAfterExciseDuty').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Excise value');
|
swal('Please Enter the Excise value');
|
||||||
$('#txtEditAfterExciseDuty').focus();
|
$('#txtEditAfterExciseDuty').focus();
|
||||||
$('#txtEditCST').val('');
|
$('#txtEditCST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1562,14 +1562,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtGST').val('');
|
$('#txtGST').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtGST').val('');
|
$('#txtGST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1601,14 +1601,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditGST').val('');
|
$('#txtEditGST').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditGST').val('');
|
$('#txtEditGST').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1644,14 +1644,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtOtherTax').val('');
|
$('#txtOtherTax').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtOtherTax').val('');
|
$('#txtOtherTax').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1684,14 +1684,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditOtherTax').val('');
|
$('#txtEditOtherTax').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditOtherTax').val('');
|
$('#txtEditOtherTax').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1729,14 +1729,14 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
{
|
{
|
||||||
if($('#MaterialCode').val() == "0")
|
if($('#MaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#MaterialCode').focus();
|
$('#MaterialCode').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Rate').val() == '')
|
else if($('#Rate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#Rate').focus();
|
$('#Rate').focus();
|
||||||
$('#txtFreight').val('') ;
|
$('#txtFreight').val('') ;
|
||||||
return false;
|
return false;
|
||||||
@ -1747,7 +1747,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
var FreightType =$("#drpFreight").val();
|
var FreightType =$("#drpFreight").val();
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$("#drpFreight").focus();
|
$("#drpFreight").focus();
|
||||||
// calculateCgstTax();
|
// calculateCgstTax();
|
||||||
@ -1765,7 +1765,7 @@ var ExciseDuty = parseFloat($('#txtAfterExciseDuty').val());
|
|||||||
if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '')
|
if($(freightCalculation != 0 && '#txtAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
//alert(freightCalculation);
|
//alert(freightCalculation);
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$('#DiscountType').focus();
|
$('#DiscountType').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -1801,7 +1801,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#NOOfTrips').val()==''){
|
if($('#NOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#NOOfTrips").focus();
|
$("#NOOfTrips").focus();
|
||||||
$('#txtFreight').val(0)
|
$('#txtFreight').val(0)
|
||||||
@ -1838,14 +1838,14 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
//alert('1');
|
//alert('1');
|
||||||
if($('#EditMaterialCode').val() == "0")
|
if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please Select the Material Code');
|
swal('Please Select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate value');
|
swal('Please Enter the Rate value');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
return false;
|
return false;
|
||||||
@ -1857,7 +1857,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
//alert(FreightType);
|
//alert(FreightType);
|
||||||
if(FreightType == "0")
|
if(FreightType == "0")
|
||||||
{
|
{
|
||||||
alert('Please select Freight Type');
|
swal('Please select Freight Type');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$("#drpEditFreight").focus();
|
$("#drpEditFreight").focus();
|
||||||
}
|
}
|
||||||
@ -1879,7 +1879,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
|
if($(freightCalculation != 0 && '#txtEditAfterDiscount').val() == '')
|
||||||
{
|
{
|
||||||
//alert(freightCalculation);
|
//alert(freightCalculation);
|
||||||
alert('Please Enter the Discount value');
|
swal('Please Enter the Discount value');
|
||||||
$('#txtEditFreight').val('');
|
$('#txtEditFreight').val('');
|
||||||
$('#EditDiscountType').focus();
|
$('#EditDiscountType').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -1913,7 +1913,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
else if(FreightType == '<?php echo PERTRIP;?>')
|
else if(FreightType == '<?php echo PERTRIP;?>')
|
||||||
{
|
{
|
||||||
if($('#EditNOOfTrips').val()==''){
|
if($('#EditNOOfTrips').val()==''){
|
||||||
alert('Please Enter No of Trip');
|
swal('Please Enter No of Trip');
|
||||||
|
|
||||||
$("#EditNOOfTrips").focus();
|
$("#EditNOOfTrips").focus();
|
||||||
$('#txtEditFreight').val(0)
|
$('#txtEditFreight').val(0)
|
||||||
@ -2019,7 +2019,7 @@ AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER;?>;}
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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.');
|
||||||
//$('#Quantity').val(RequistQuantity);
|
//$('#Quantity').val(RequistQuantity);
|
||||||
$('#Quantity').focus();
|
$('#Quantity').focus();
|
||||||
return false;
|
return false;
|
||||||
@ -2036,7 +2036,7 @@ return true;
|
|||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
if(EnterQuantity > 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();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2130,7 +2130,7 @@ function validateEditExceedLimit()
|
|||||||
|
|
||||||
if(basicAmountRate > avalbudAmt)// || totalAmount > avalbudAmt)
|
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();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4122,25 +4122,25 @@ function validateEditRevenueTax()
|
|||||||
{
|
{
|
||||||
if($('#EditCostCenter').val() == "0")
|
if($('#EditCostCenter').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Cost center');
|
swal('Please select the Cost center');
|
||||||
$('#EditCostCenter').focus();
|
$('#EditCostCenter').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditMaterialCode').val() == "0")
|
else if($('#EditMaterialCode').val() == "0")
|
||||||
{
|
{
|
||||||
alert('Please select the Material Code');
|
swal('Please select the Material Code');
|
||||||
$('#EditMaterialCode').focus();
|
$('#EditMaterialCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditQuantity').val() == '')
|
else if($('#EditQuantity').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Quantity value');
|
swal('Please Enter the Quantity value');
|
||||||
$('#EditQuantity').focus();
|
$('#EditQuantity').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#EditRate').val() == '')
|
else if($('#EditRate').val() == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter the Rate of the Item');
|
swal('Please Enter the Rate of the Item');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4266,22 +4266,22 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
|||||||
{
|
{
|
||||||
if(document.getElementById('revenueTax').rows.length < 3)
|
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();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(parseInt(AvlBudAmt) < parseInt(finalBasicAmount)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
else if($('#Otherpayment').val()=='' && $('#PaymentTerms').val()=='PT08'){
|
||||||
alert('Please Enter Payable Terms Description');
|
swal('Please Enter Payable Terms Description');
|
||||||
$('#Otherpayment').focus();
|
$('#Otherpayment').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if($('#insurance').val() == 1 && $('#insuranceno').val() == ''){
|
else if($('#insurance').val() == 1 && $('#insuranceno').val() == ''){
|
||||||
alert('Please Enter Insurance No..!');
|
swal('Please Enter Insurance No..!');
|
||||||
$('#insurance').focus();
|
$('#insurance').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4298,7 +4298,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
$('#txtRowCount').val('');
|
$('#txtRowCount').val('');
|
||||||
$('#txtDeletedRow').val('');
|
$('#txtDeletedRow').val('');
|
||||||
//$('#SpcialInstruction').val('');
|
//$('#SpcialInstruction').val('');
|
||||||
@ -4308,7 +4308,7 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error");
|
swal("Error");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -176,7 +176,7 @@ $('#addspec').click(function(){
|
|||||||
var customer = $('#customer').val();
|
var customer = $('#customer').val();
|
||||||
if(product == -1 || customer == -1)
|
if(product == -1 || customer == -1)
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -196,7 +196,7 @@ function addNewRow()
|
|||||||
|
|
||||||
if(sname == '' || uom =='' || min == '' || max == '')
|
if(sname == '' || uom =='' || min == '' || max == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter all specification');
|
swal('Please Enter all specification');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
var customer = $('#customer').val();
|
var customer = $('#customer').val();
|
||||||
if(product == -1 || customer == -1)
|
if(product == -1 || customer == -1)
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
@ -245,7 +245,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
//console.log(data);
|
//console.log(data);
|
||||||
|
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
var customer = $('#customer').val();
|
var customer = $('#customer').val();
|
||||||
if(product == -1 || customer == -1)
|
if(product == -1 || customer == -1)
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var d='';
|
var d='';
|
||||||
@ -285,7 +285,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
|
|
||||||
success:function(data){
|
success:function(data){
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -197,7 +197,7 @@ $('#addspec').click(function(){
|
|||||||
var customer = $('#customer').val();
|
var customer = $('#customer').val();
|
||||||
if(product == -1 || customer == -1)
|
if(product == -1 || customer == -1)
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -217,7 +217,7 @@ function addNewRow()
|
|||||||
var temp = $('#temp').val();
|
var temp = $('#temp').val();
|
||||||
if(sname == '' || uom =='' || min == '' || max == '' || temp == '')
|
if(sname == '' || uom =='' || min == '' || max == '' || temp == '')
|
||||||
{
|
{
|
||||||
alert('Please Enter all specification');
|
swal('Please Enter all specification');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -254,7 +254,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
var type = $('#ttype').val();
|
var type = $('#ttype').val();
|
||||||
if(product == -1 || customer == -1)
|
if(product == -1 || customer == -1)
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
@ -267,7 +267,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
|
|
||||||
alert(data);
|
swal(data);
|
||||||
window.location = "<?php echo base_url().'quality';?>";
|
window.location = "<?php echo base_url().'quality';?>";
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
var customer = $('#customer').val();
|
var customer = $('#customer').val();
|
||||||
if(product == '' || customer == '')
|
if(product == '' || customer == '')
|
||||||
{
|
{
|
||||||
alert('Please Select Product and Customer.');
|
swal('Please Select Product and Customer.');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var rowid = r;
|
var rowid = r;
|
||||||
@ -310,7 +310,7 @@ $("#specmodel").on("shown.bs.modal", function(e) {
|
|||||||
|
|
||||||
success:function(data){
|
success:function(data){
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
alert(data);
|
swal(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user