Subversion Repositories SmartDukaan

Rev

Rev 32686 | Rev 33727 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32686 Rev 32912
Line 672... Line 672...
672
    });
672
    });
673
 
673
 
674
 
674
 
675
    $(document).on('click', '.resolvedQtyMismatchRequest', function () {
675
    $(document).on('click', '.resolvedQtyMismatchRequest', function () {
676
        var id = $(this).data("id");
676
        var id = $(this).data("id");
677
 
-
 
678
        var invoiceId = $(this).data("invoiceid");
677
        var invoiceId = $(this).data("invoiceid");
679
 
-
 
680
        var requestId = $(this).data("requestid");
-
 
681
        var requestId = $(this).data("requestid");
678
        var requestId = $(this).data("requestid");
682
 
679
 
683
 
680
 
684
        var mismatch = $(this).data("mismatch");
681
        var mismatch = $(this).data("mismatch");
685
 
682
 
Line 1047... Line 1044...
1047
        $('.grnRequestItemContainer').html(response);
1044
        $('.grnRequestItemContainer').html(response);
1048
 
1045
 
1049
    });
1046
    });
1050
}
1047
}
1051
 
1048
 
-
 
1049
function removeInvoice(invoiceId) {
-
 
1050
    if(confirm(`Are your sure want to delete invoiceId ${invoiceId}`)) {
-
 
1051
        doGetAjaxRequestHandler(`${context}/removeInvoice?invoiceId=${invoiceId}`, function (response) {
-
 
1052
            $('#open-invoices').DataTable().row("#"+invoiceId).remove().draw();
-
 
1053
            alert("Invoice Removed");
-
 
1054
        });
-
 
1055
    }
-
 
1056
}
-
 
1057
 
-
 
1058
function removeGrnRequest(invoiceId) {
-
 
1059
    if(confirm(`Are your sure want to remove grn request for invoiceId ${invoiceId}`)) {
-
 
1060
        doGetAjaxRequestHandler(`${context}/removeGrnRequest?invoiceId=${invoiceId}`, function (response) {
-
 
1061
            $('#' + domId).html(response);
-
 
1062
            alert("Grn Request Removed");
-
 
1063
        });
-
 
1064
    }
-
 
1065
}
-
 
1066
 
1052
 
1067