import po validation
This commit is contained in:
parent
8e1e5ac268
commit
3805d5b80d
@ -1002,7 +1002,7 @@ if(!empty($POMaster))
|
|||||||
<label>Quantity</label>
|
<label>Quantity</label>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange()');
|
$data = array('name' => 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event);','onchange'=>'Ratechange(),ExceedEditQuantityCheck()');
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -2166,6 +2166,24 @@ function CalculateCustomduty()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function ExceedEditQuantityCheck()
|
||||||
|
{
|
||||||
|
// RequistQuantity
|
||||||
|
var EnterQuantity = $("#EditQuantity").val()== '' ? "0.00" : parseFloat($("#EditQuantity").val());
|
||||||
|
var ReqQuantity = parseFloat(RequistQuantity);
|
||||||
|
if(EnterQuantity > ReqQuantity)
|
||||||
|
{
|
||||||
|
alert('Your exceeding the Quantity from the Requisition Quantity:'+ RequistQuantity +'.Please adjust the Quantity to proceed further.');
|
||||||
|
$('#EditQuantity').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function EditCalculateCustomduty()
|
function EditCalculateCustomduty()
|
||||||
{
|
{
|
||||||
var txtbasic=0;
|
var txtbasic=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user