Till approval PO can be editble
This commit is contained in:
parent
2865c24930
commit
c81865fe64
@ -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 ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user