| Line 46... |
Line 46... |
| 46 |
/*$("a.generate-debit-note").live('click', function() {
|
46 |
/*$("a.generate-debit-note").live('click', function() {
|
| 47 |
if(confirm("Are you sure?")) {
|
47 |
if(confirm("Are you sure?")) {
|
| 48 |
generateDebitNote($(this).closest('tr').data("id"));
|
48 |
generateDebitNote($(this).closest('tr').data("id"));
|
| 49 |
}
|
49 |
}
|
| 50 |
});*/
|
50 |
});*/
|
| 51 |
$('#store-container').find('a').live('click', function (){
|
51 |
/*$('#store-container').find('a').live('click', function (){
|
| 52 |
fofoId=$(this).data('id');
|
52 |
fofoId=$(this).data('id');
|
| 53 |
doAjaxRequestHandler(context+"/return/inventory/" + fofoId, "GET", function(response){
|
53 |
doAjaxRequestHandler(context+"/return/inventory/" + fofoId, "GET", function(response){
|
| 54 |
inventoryTable.rows().remove().rows.add($(response)).draw(false);
|
54 |
inventoryTable.rows().remove().rows.add($(response)).draw(false);
|
| 55 |
});
|
55 |
});
|
| 56 |
});
|
56 |
});*/
|
| 57 |
$('#inventory-container').find('a').live('click', function (){
|
57 |
$('#inventory-container').find('a').live('click', function (){
|
| 58 |
itemId=$(this).data('id');
|
58 |
itemId=$(this).data('id');
|
| 59 |
doAjaxRequestHandler(context+"/return/inventory/" + fofoId + "/" + itemId, "GET", function(response){
|
59 |
doAjaxRequestHandler(context+"/return/inventory/" + fofoId + "/" + itemId, "GET", function(response){
|
| 60 |
returnsTable.rows().remove().rows.add($(response)).draw(false);
|
60 |
returnsTable.rows().remove().rows.add($(response)).draw(false);
|
| 61 |
});
|
61 |
});
|