| 7410 |
amar.kumar |
1 |
|
| 7676 |
amar.kumar |
2 |
|
|
|
3 |
function closeColorBox(){
|
|
|
4 |
$.colorbox.close();
|
|
|
5 |
}
|
|
|
6 |
|
|
|
7 |
$('.link-requiring-warehouse-selection').live('click', function(){
|
|
|
8 |
var linkurl = $(this).attr('href');
|
|
|
9 |
$('<form id = "tempForm" onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');
|
|
|
10 |
|
|
|
11 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "7">Mahipalpur</input>'));
|
|
|
12 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "12">Goregaon</input></br>'));
|
|
|
13 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "13">Biwandi</input>'));
|
| 10864 |
manish.sha |
14 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "16">Mum-Amazon</input><br/>'));
|
|
|
15 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1765">Bangalore</input>'));
|
|
|
16 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1768">Bangalore-SR</input><br/>'));
|
| 12729 |
manish.sha |
17 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "1771">BAN-AMZ/Bangalore</input><br/>'));
|
| 12769 |
manish.sha |
18 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "2857">HR-SORPL/Gurgaon</input><br/>'));
|
| 12729 |
manish.sha |
19 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "2854">HR-FK/Gurgaon</input><br/>'));
|
| 13354 |
manish.sha |
20 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "4699">DL-FK/Mahipalpur-Delhi</input><br/>'));
|
| 13051 |
manish.sha |
21 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "3931">HR-FK/Gurgaon-S</input><br/>'));
|
| 12769 |
manish.sha |
22 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "3298">TG-SORPL/Hyderabad</input><br/>'));
|
| 12729 |
manish.sha |
23 |
$('form#tempForm').append($('<input type = "radio" name = "physicalWarehouseId" value = "3295">HR-AMZ/Mewat</input><br/><br/>'));
|
| 7676 |
amar.kumar |
24 |
$('form#tempForm').append($('<input type = "submit" value = "Submit"/>'));
|
|
|
25 |
|
|
|
26 |
$.colorbox({
|
|
|
27 |
inline : true,
|
|
|
28 |
width : "325px",
|
| 12769 |
manish.sha |
29 |
height : "500px",
|
| 7676 |
amar.kumar |
30 |
opacity : "0.30",
|
|
|
31 |
overlayClose : true,
|
|
|
32 |
escKey : true,
|
|
|
33 |
href : "#tempForm",
|
|
|
34 |
onClosed : function() {
|
|
|
35 |
$('#tempForm').remove();
|
|
|
36 |
}
|
|
|
37 |
});
|
|
|
38 |
event.preventDefault();
|
|
|
39 |
return false;
|
|
|
40 |
|
|
|
41 |
});
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
| 7410 |
amar.kumar |
45 |
function selectWarehouseForPOCreation() {
|
|
|
46 |
$('#warehouse-selector-po-creation').show();
|
|
|
47 |
$.colorbox({
|
|
|
48 |
inline : true,
|
|
|
49 |
width : "325px",
|
| 12769 |
manish.sha |
50 |
height : "500px",
|
| 7410 |
amar.kumar |
51 |
opacity : "0.30",
|
|
|
52 |
overlayClose : true,
|
|
|
53 |
escKey : true,
|
|
|
54 |
href : "#warehouse-selector-po-creation",
|
|
|
55 |
onClosed : function() {
|
|
|
56 |
$("#warehouse-selector-po-creation").hide();
|
|
|
57 |
$('#warehouse-selection-error').html("");
|
|
|
58 |
}
|
|
|
59 |
});
|
|
|
60 |
event.preventDefault();
|
|
|
61 |
return false;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
function selectWarehouseForListingPO() {
|
|
|
65 |
$('#warehouse-selector-po-recieve').show();
|
|
|
66 |
$.colorbox({
|
|
|
67 |
inline : true,
|
|
|
68 |
width : "325px",
|
| 12769 |
manish.sha |
69 |
height : "500px",
|
| 7410 |
amar.kumar |
70 |
opacity : "0.30",
|
|
|
71 |
overlayClose : true,
|
|
|
72 |
escKey : true,
|
|
|
73 |
href : "#warehouse-selector-po-recieve",
|
|
|
74 |
onClosed : function() {
|
|
|
75 |
$("#warehouse-selector-po-recieve").hide();
|
|
|
76 |
$('#warehouse-selection-error').html("");
|
|
|
77 |
}
|
|
|
78 |
});
|
|
|
79 |
event.preventDefault();
|
|
|
80 |
return false;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
function openPOCreationPage() {
|
|
|
84 |
$.colorbox.close();
|
|
|
85 |
warehouseId = $("#warehouse-selector-po-creation input[name='warehouse']:checked").val();
|
|
|
86 |
if(warehouseId != 'undefined') {
|
|
|
87 |
this.location.href = "/inventory/purchase-order/new?warehouseId="+warehouseId;
|
|
|
88 |
} else {
|
|
|
89 |
$('#warehouse-selection-error').html("<span>Please select warehouse</span>");
|
|
|
90 |
}
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
function showOpenPOpage() {
|
|
|
94 |
$.colorbox.close();
|
|
|
95 |
warehouseId = $("#warehouse-selector-po-recieve input[name='warehouse']:checked").val();
|
|
|
96 |
if(warehouseId != 'undefined') {
|
|
|
97 |
this.location.href = "/inventory/purchase-order?warehouseId="+warehouseId;
|
|
|
98 |
} else {
|
|
|
99 |
$('#warehouse-selection-error').html("<span>Please select warehouse</span>");
|
|
|
100 |
}
|
|
|
101 |
}
|