import line item

This commit is contained in:
venbatechnologies@gmail.com 2017-08-03 13:22:24 +05:30
parent 99bc81ee56
commit b9c5b30d50
2 changed files with 78 additions and 2 deletions

View File

@ -3966,6 +3966,8 @@ return true;
var avalbudAmte= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
function validateEditExceedLimit()
{
//alert();
// console.log(txtbasic);
//var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
var basicAmountRate = parseFloat($('#EdittxtBasicValue').val());
var totalAmount = parseFloat($('#EditTotalExp').val());

View File

@ -3825,6 +3825,79 @@ $('#Deliverydt').change(function(){
});
function validate()
{
if($('#PODate').val() == '')
{
alert('Please Enter the Purchase Order date');
$('#PODate').focus();
return false;
}
else if($('#drpSupplier').val() == "0")
{
alert('Please Select the Supplier details');
$('#drpSupplier').focus();
return false;
}
else if($('#DeliveryAddr').val() == '')
{
alert('Please Enter the Delivery Address');
$('#DeliveryAddr').focus();
return false;
}
else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '')
{
alert('Please Enter the Dispatch Instruction');
$('#Dispatch').focus();
return false;
}
else if($('#currencytype').val() == '0')
{
alert('Please Select the Currency Type');
$('#currencytype').focus();
return false;
}
else if($('#ExchangeRate').val() == '')
{
alert('Please Enter the Exchange Rate');
$('#ExchangeRate').focus();
return false;
}
else if($('#PlaceOforigin').val()== '')
{
alert('Please Enter Place Of Origin');
$('#PlaceOforigin').focus();
return false;
}
else if($('#PaymentTerms').val()=='')
{
alert('Please Select Payment Terms');
$('#PaymentTerms').focus();
return false;
}
if(document.getElementById('ImportTax').rows.length <3)
{
// alert();
// die();
alert('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;
}
else
{
return true;
}
}
@ -3853,9 +3926,10 @@ var txtDeletedRow = $('#txtDeletedRow').val();
//exit();
if(validate())
{
if(document.getElementById('ImportTax').rows.length <= 0)
if(document.getElementById('ImportTax').rows.length <3)
{
// alert();
// die();
alert('Please Select Line item to Create PO');
$('#Deliverydt').focus();
return false;