available buget
This commit is contained in:
parent
f18a9eec75
commit
d301fd173d
@ -2968,7 +2968,7 @@ $("#txtBasicValue").val('');
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var reqq='';
|
||||||
$('#MaterialCode').change(function() {
|
$('#MaterialCode').change(function() {
|
||||||
|
|
||||||
var id = $('#MaterialCode').val();
|
var id = $('#MaterialCode').val();
|
||||||
@ -2993,6 +2993,9 @@ $("#txtBasicValue").val('');
|
|||||||
$("#UOM").val(obj.UOM);
|
$("#UOM").val(obj.UOM);
|
||||||
$("#Quantity").val(obj.Quantity);
|
$("#Quantity").val(obj.Quantity);
|
||||||
RequistQuantity = obj.Quantity;
|
RequistQuantity = obj.Quantity;
|
||||||
|
reqq=RequistQuantity;
|
||||||
|
//RequistQuantity=parseFloat($('#Quantity').val());
|
||||||
|
//console.log(RequistQuantity);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -3248,10 +3251,13 @@ function CalculateCustomduty()
|
|||||||
|
|
||||||
|
|
||||||
function ExceedEditQuantityCheck()
|
function ExceedEditQuantityCheck()
|
||||||
{
|
{ //salert();
|
||||||
// RequistQuantity
|
// RequistQuantity
|
||||||
var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
|
var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
|
||||||
var ReqQuantity = parseFloat(RequistQuantity);
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
|
|
||||||
|
//alert(reqq);
|
||||||
|
//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.');
|
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
|
||||||
@ -4014,6 +4020,9 @@ return true;
|
|||||||
var avalbudAmte= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
|
var avalbudAmte= <?php echo json_encode($AvlAmount, JSON_PRETTY_PRINT) ?>;
|
||||||
var Sum=<?php echo json_encode($SavedSum, JSON_PRETTY_PRINT) ?>;
|
var Sum=<?php echo json_encode($SavedSum, JSON_PRETTY_PRINT) ?>;
|
||||||
// console.log(Sum)
|
// console.log(Sum)
|
||||||
|
|
||||||
|
var totavlbud=avalbudAmte+Sum;
|
||||||
|
console.log(totavlbud);
|
||||||
function validateEditExceedLimit()
|
function validateEditExceedLimit()
|
||||||
{
|
{
|
||||||
//var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
|
//var avalbudAmt = parseFloat($('#EditAvlBudAmt').val());
|
||||||
@ -4026,7 +4035,7 @@ function validateEditExceedLimit()
|
|||||||
exp=basicAmountRate*exchangerate;
|
exp=basicAmountRate*exchangerate;
|
||||||
//console.log(exp);
|
//console.log(exp);
|
||||||
|
|
||||||
if(exp > avalbudAmte || totalAmount > avalbudAmte)
|
if(exp > totavlbud || totalAmount > totavlbud)
|
||||||
{
|
{
|
||||||
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
|
alert('Basic amount is exceeding the Budget Limit.Please adjust the product value.');
|
||||||
$('#EditRate').focus();
|
$('#EditRate').focus();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user