Till approval PO can be editble

This commit is contained in:
gandhimathi Bharathirajan 2017-07-30 04:30:36 +05:30
parent 2865c24930
commit c81865fe64

View File

@ -325,9 +325,24 @@ function validate()
<script>
// $(function() {
function removeHidden()
{
var rowcount = $("#txtRowCount").val();
for(k=1;k<=rowcount ; k++)
{
$("#MaterialCode"+k).remove();
$("#txtQuantityAsPerInvoice"+k).remove();
$("#OrderedQuantity"+k).remove();
$("#txtReceivedQuantity"+k).remove();
$("#txtRemarks"+k).remove();
$("#txtPendingQty"+k).remove();
}
}
$('#PONO').change(function() {
$("#IGRappend").empty();
removeHidden();
$("#IGRappend").empty();
$('#txtRowCount').val('');
var id = $('#PONO').val();
var status= '';
@ -481,8 +496,8 @@ function validateReceivedQuantity(Rowid){
var OrderedQty =parseFloat($("#Quantity_1"+Rowid).text());
var r =$("#Remark"+Rowid).val();
// alert(RecQty);
//alert(InvoiceQty);
if((InvoiceQty+RecQty) > OrderedQty){
alert("Advised Quantity is exceeding the Ordered Quantity.Please Contact Purchase Team for further Process ")