import line item
This commit is contained in:
parent
99bc81ee56
commit
b9c5b30d50
@ -3966,6 +3966,8 @@ return true;
|
|||||||
var avalbudAmte= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
|
var avalbudAmte= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
|
||||||
function validateEditExceedLimit()
|
function validateEditExceedLimit()
|
||||||
{
|
{
|
||||||
|
//alert();
|
||||||
|
// console.log(txtbasic);
|
||||||
//var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
|
//var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
|
||||||
var basicAmountRate = parseFloat($('#EdittxtBasicValue').val());
|
var basicAmountRate = parseFloat($('#EdittxtBasicValue').val());
|
||||||
var totalAmount = parseFloat($('#EditTotalExp').val());
|
var totalAmount = parseFloat($('#EditTotalExp').val());
|
||||||
|
|||||||
@ -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();
|
//exit();
|
||||||
if(validate())
|
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');
|
alert('Please Select Line item to Create PO');
|
||||||
$('#Deliverydt').focus();
|
$('#Deliverydt').focus();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user