| 30828 |
amit.gupta |
1 |
$(function () {
|
|
|
2 |
$(document).on('click', "a.manage-po", function () {
|
|
|
3 |
doGetAjaxRequestHandler(context + "/warehouse/grn", function (response) {
|
|
|
4 |
$("#main-content").html(response);
|
|
|
5 |
});
|
|
|
6 |
});
|
|
|
7 |
$(document).on('click', "button.btn-grn-upload", function () {
|
|
|
8 |
let fileSelector = $('input.grn-upload-file')[0];
|
|
|
9 |
if (fileSelector != undefined && fileSelector.files[0] != undefined) {
|
|
|
10 |
doAjaxUploadRequestHandler(context + "/warehouse/grn", "POST", fileSelector.files[0], function (response) {
|
|
|
11 |
if (response == true) {
|
|
|
12 |
alert("Grn Uploaded successfully");
|
|
|
13 |
}
|
|
|
14 |
});
|
|
|
15 |
}
|
|
|
16 |
});
|
|
|
17 |
});
|