| 9242 |
kshitij.so |
1 |
#set ($itemDetail = $action.fetchItemDetail())
|
| 9725 |
kshitij.so |
2 |
#set ($mpDetail = $action.fetchMarketplaceDetail())
|
| 14780 |
manish.sha |
3 |
#set ($sdItem = $action.fetchSdItem())
|
| 9242 |
kshitij.so |
4 |
<style>
|
|
|
5 |
* { font-family: Verdana; font-size: 96%; }
|
|
|
6 |
label {
|
|
|
7 |
float: left;
|
|
|
8 |
}
|
|
|
9 |
|
|
|
10 |
#upload > table {
|
|
|
11 |
color: #747474;
|
|
|
12 |
width: 100%;
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
#upload tbody {
|
|
|
17 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
|
|
18 |
font-weight: bold;
|
|
|
19 |
}
|
|
|
20 |
|
| 9725 |
kshitij.so |
21 |
.mpUpload > table {
|
|
|
22 |
color: #747474;
|
|
|
23 |
width: 100%;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
.mpUpload tbody {
|
|
|
28 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
|
|
29 |
font-weight: bold;
|
|
|
30 |
}
|
|
|
31 |
|
| 9242 |
kshitij.so |
32 |
.detail {
|
|
|
33 |
background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
|
|
|
34 |
border-bottom: 1px solid #B3C1DB;
|
|
|
35 |
border-right: 1px solid #CED9EC;
|
|
|
36 |
color: #1F3D71;
|
|
|
37 |
height: 25px;
|
|
|
38 |
padding: 10px 0 0 24px;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
.value {
|
|
|
42 |
border-bottom: 1px solid #B3C1DB;
|
|
|
43 |
border-right: 1px solid #CED9EC;
|
|
|
44 |
height: 24px;
|
|
|
45 |
text-align: center;
|
|
|
46 |
color: #747474;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
select {
|
|
|
50 |
padding-top: 2px;
|
|
|
51 |
vertical-align: middle;
|
|
|
52 |
direction: ltr;
|
|
|
53 |
font-weight: bold;
|
|
|
54 |
width: 50%;
|
|
|
55 |
height: 22px;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
input {
|
|
|
59 |
font-size: 12px;
|
|
|
60 |
text-align: center;
|
|
|
61 |
width: 50%;
|
|
|
62 |
font-weight: bold;
|
|
|
63 |
}
|
| 9725 |
kshitij.so |
64 |
.top-header {
|
|
|
65 |
background-color: #2789C1;
|
|
|
66 |
display: block;
|
|
|
67 |
height: 27px;
|
|
|
68 |
width: 100%;
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
input[type="text"][readonly] {
|
|
|
72 |
background-color: #D1D1D1;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
input[type="text"][disabled] {
|
|
|
76 |
background-color: #D1D1D1;
|
|
|
77 |
}
|
| 9734 |
kshitij.so |
78 |
|
|
|
79 |
.border-highlight{
|
|
|
80 |
border : 3px solid #00BFFF;
|
|
|
81 |
}
|
| 9923 |
kshitij.so |
82 |
|
|
|
83 |
.border-highlight-green{
|
|
|
84 |
border : 3px solid green;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
.border-highlight-red{
|
|
|
88 |
border : 3px solid red;
|
|
|
89 |
}
|
| 9242 |
kshitij.so |
90 |
</style>
|
|
|
91 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
|
|
92 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
|
|
93 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
|
|
94 |
<script type="text/javascript">
|
|
|
95 |
$(document).ready(function() {
|
|
|
96 |
$('#cancelbutton').click(function(e) {
|
|
|
97 |
window.location.href = '/Support/snapdeal-list';
|
|
|
98 |
});
|
|
|
99 |
});
|
|
|
100 |
</script>
|
|
|
101 |
<script type="text/javascript">
|
| 9923 |
kshitij.so |
102 |
$('select').change(function(){
|
|
|
103 |
var optionValue = $(this).val();
|
|
|
104 |
var selectType = parseInt($(this).attr('selectType'));
|
|
|
105 |
switch(selectType)
|
|
|
106 |
{
|
|
|
107 |
case 1:
|
|
|
108 |
if (optionValue=='True'){
|
|
|
109 |
$(this).removeClass().addClass('border-highlight-red');
|
|
|
110 |
}
|
|
|
111 |
else{
|
|
|
112 |
$(this).removeClass();
|
|
|
113 |
}
|
|
|
114 |
break;
|
|
|
115 |
case 2:
|
|
|
116 |
if (optionValue=='False'){
|
|
|
117 |
$(this).removeClass().addClass('border-highlight-red');
|
|
|
118 |
}
|
|
|
119 |
else{
|
|
|
120 |
$(this).removeClass();
|
|
|
121 |
}
|
|
|
122 |
break;
|
|
|
123 |
case 3:
|
|
|
124 |
if (optionValue=='True'){
|
|
|
125 |
$(this).removeClass().addClass('border-highlight-green');
|
|
|
126 |
}
|
|
|
127 |
else{
|
|
|
128 |
$(this).removeClass();
|
|
|
129 |
}
|
|
|
130 |
break;
|
|
|
131 |
}
|
|
|
132 |
});
|
|
|
133 |
</script>
|
|
|
134 |
<script type="text/javascript">
|
| 14780 |
manish.sha |
135 |
function calculateStuffVOI()
|
|
|
136 |
{
|
|
|
137 |
$('input#minPosTpVoi').removeClass("border-highlight");
|
|
|
138 |
$('input#minPosSpVoi').removeClass("border-highlight");
|
|
|
139 |
$('input#transferPriceVOI').removeClass("border-highlight");
|
|
|
140 |
$('input#serviceTaxVOI').removeClass("border-highlight");
|
|
|
141 |
$('input#commissionVoi').removeClass("border-highlight");
|
|
|
142 |
$('input#marginVOI').removeClass();
|
|
|
143 |
$('input#marginPerVOI').removeClass();
|
|
|
144 |
var itemWeight=$('#itemWeight').val();
|
|
|
145 |
itemWeight = +itemWeight+.05;
|
|
|
146 |
console.log(itemWeight);
|
|
|
147 |
var packagingCost=$('#packagingCost').val();
|
|
|
148 |
if (itemWeight==0){
|
|
|
149 |
var courierCost =40;
|
|
|
150 |
}
|
|
|
151 |
else{
|
|
|
152 |
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
|
|
|
153 |
var courierCost = 40;
|
|
|
154 |
for (var i=0;i<slabs;i++)
|
|
|
155 |
{
|
|
|
156 |
courierCost = courierCost + 30;
|
|
|
157 |
}
|
|
|
158 |
}
|
|
|
159 |
console.log(courierCost);
|
|
|
160 |
//courierCost = ((courierCost+0)*1.1236).toFixed(2);
|
|
|
161 |
var voiSellingPrice=$('#voiSellingPrice').val();
|
| 14862 |
manish.sha |
162 |
var courierCostSnapdeal=$('#courierCostMarketplaceVoi').val();
|
| 14780 |
manish.sha |
163 |
var nlc=$('#maxNlc').val();
|
|
|
164 |
var otherCost=$('#otherCost').val();
|
|
|
165 |
var othCost=parseFloat(otherCost);
|
|
|
166 |
var pc=parseFloat(packagingCost);
|
|
|
167 |
if ( voiSellingPrice==null || voiSellingPrice=="" || isNaN(voiSellingPrice) || nlc==null || nlc=="" || isNaN(nlc)){
|
|
|
168 |
$('input#courierCostVoi').val('0.00');
|
|
|
169 |
$('input#serviceTaxVoi').val('0.00');
|
|
|
170 |
$('input#commissionVoi').val('0.00');
|
|
|
171 |
}
|
|
|
172 |
else{
|
|
|
173 |
var serviceTaxRate=$('#serviceTaxRate').val();
|
|
|
174 |
console.log(serviceTaxRate)
|
|
|
175 |
var stRate = serviceTaxRate/100;
|
| 14862 |
manish.sha |
176 |
var com=$('#commissionRateVoi').val();
|
| 14780 |
manish.sha |
177 |
var comRate=(com/100);
|
|
|
178 |
console.log(comRate);
|
|
|
179 |
var pgVal=$('#pgFee').val();
|
|
|
180 |
var pgFeeRate=pgVal/100;
|
|
|
181 |
console.log(pgVal);
|
|
|
182 |
var emiFeeRate=$('#emiFee').val();
|
|
|
183 |
console.log(emiFeeRate);
|
|
|
184 |
var emiFee=emiFeeRate/100;
|
|
|
185 |
var closingFee=parseFloat($('#closingFee').val());
|
|
|
186 |
var returnProvision=parseFloat($('#returnProvision').val());
|
|
|
187 |
console.log(returnProvision);
|
|
|
188 |
console.log(closingFee);
|
|
|
189 |
console.log(pgFeeRate);
|
| 14862 |
manish.sha |
190 |
console.log(courierCostSnapdeal);
|
| 14780 |
manish.sha |
191 |
var margin=$('#margin').val();
|
|
|
192 |
var vatRate=$('#vat').val();
|
|
|
193 |
if ( vatRate==null || vatRate=="" || isNaN(vatRate)){
|
|
|
194 |
jAlert('Please enter VAT Rate for item','ERROR');
|
|
|
195 |
$('input#voiSellingPrice').val('0.00');
|
|
|
196 |
return false;
|
|
|
197 |
}
|
|
|
198 |
var vat=vatRate/100;
|
|
|
199 |
if (pgFeeRate*parseFloat(voiSellingPrice)>=20){
|
|
|
200 |
var commisionPrice=((comRate+pgFeeRate)*parseFloat(voiSellingPrice)).toFixed(2);
|
|
|
201 |
}
|
|
|
202 |
else{
|
|
|
203 |
var commisionPrice=(comRate*parseFloat(voiSellingPrice)+20).toFixed(2);
|
|
|
204 |
console.log("Default pg fee block");
|
|
|
205 |
}
|
|
|
206 |
console.log(+courierCost);
|
| 14862 |
manish.sha |
207 |
var ourTp=(parseFloat(voiSellingPrice)-parseFloat(voiSellingPrice)*(1+stRate)*((comRate)+emiFee)-((+courierCostSnapdeal+closingFee)*(1+stRate))-(Math.max(20,pgFeeRate*parseFloat(voiSellingPrice))*(1+stRate)));
|
| 14780 |
manish.sha |
208 |
var vatValue=(((voiSellingPrice/(1+vat))-(nlc/(1+vat)))*vat).toFixed(2);
|
| 15024 |
manish.sha |
209 |
var inHouseCost=(+vatValue+pc+((returnProvision/100)*voiSellingPrice)+othCost);
|
| 14780 |
manish.sha |
210 |
var lowestTp=(+nlc+inHouseCost).toFixed(2);
|
|
|
211 |
if (pgFeeRate*parseFloat(voiSellingPrice)>=20){
|
| 14862 |
manish.sha |
212 |
var lowestSp=(+nlc+(+courierCostSnapdeal+closingFee)*(1+stRate)*(1+vat)+(pc+othCost)*(1+vat))/(1-(comRate+emiFee+pgFeeRate)*(1+stRate)*(1+vat)-(returnProvision/100)*(1+vat));
|
| 14780 |
manish.sha |
213 |
}
|
|
|
214 |
else{
|
| 14862 |
manish.sha |
215 |
var lowestSp=(+nlc+(+courierCostSnapdeal+closingFee+20)*(1+stRate)*(1+vat)+(pc+othCost)*(1+vat))/(1-(comRate+emiFee)*(1+stRate)*(1+vat)-(returnProvision/100)*(1+vat));
|
| 14780 |
manish.sha |
216 |
}
|
|
|
217 |
ourTp = (parseFloat(ourTp)).toFixed(2);
|
|
|
218 |
$('input#minPosTpVoi').val(lowestTp);
|
|
|
219 |
$('input#minPosSpVoi').val(parseFloat(lowestSp).toFixed(2));
|
|
|
220 |
$('input#transferPriceVOI').val(ourTp);
|
| 14862 |
manish.sha |
221 |
var serviceTax=(stRate*(+commisionPrice+(+courierCostSnapdeal))).toFixed(2);
|
| 14780 |
manish.sha |
222 |
lowest_possible_tp=parseFloat(lowestTp);
|
|
|
223 |
newMargin=(ourTp-lowest_possible_tp).toFixed(2);
|
|
|
224 |
marginPercentage=(((ourTp-lowest_possible_tp)/voiSellingPrice)*100).toFixed(2);
|
|
|
225 |
$('input#marginPerVOI').val(marginPercentage);
|
|
|
226 |
$('input#marginVOI').val(newMargin);
|
|
|
227 |
$('input#voiSellingPrice').val(voiSellingPrice);
|
|
|
228 |
$('input#courierCostVoi').val(courierCost);
|
|
|
229 |
$('input#commissionVoi').val(commisionPrice);
|
|
|
230 |
$('input#serviceTaxVOI').val(serviceTax);
|
|
|
231 |
$('input#minPosTpVoi').addClass("border-highlight");
|
|
|
232 |
$('input#minPosSpVoi').addClass("border-highlight");
|
|
|
233 |
$('input#transferPriceVOI').addClass("border-highlight");
|
|
|
234 |
$('input#serviceTaxVOI').addClass("border-highlight");
|
|
|
235 |
$('input#commissionVoi').addClass("border-highlight");
|
|
|
236 |
$('input#marginVOI').addClass("border-highlight");
|
|
|
237 |
$('input#marginPerVOI').addClass("border-highlight");
|
|
|
238 |
if (ourTp-lowest_possible_tp < 0){
|
|
|
239 |
$('input#marginVOI').removeClass().addClass("border-highlight-red");
|
|
|
240 |
$('input#marginPerVOI').addClass("border-highlight-red");
|
|
|
241 |
}
|
|
|
242 |
}
|
|
|
243 |
}
|
|
|
244 |
</script>
|
|
|
245 |
<script type="text/javascript">
|
| 9242 |
kshitij.so |
246 |
function calculateStuff()
|
|
|
247 |
{
|
| 9923 |
kshitij.so |
248 |
$('input#minPosTp').removeClass();
|
|
|
249 |
$('input#minPosSp').removeClass();
|
|
|
250 |
$('input#transferPrice').removeClass();
|
|
|
251 |
$('input#serviceTax').removeClass();
|
|
|
252 |
$('input#commission').removeClass();
|
|
|
253 |
$('input#margin').removeClass();
|
|
|
254 |
$('input#marginPer').removeClass();
|
| 9725 |
kshitij.so |
255 |
var itemWeight=$('#itemWeight').val();
|
| 12133 |
kshitij.so |
256 |
var packagingCost=$('#packagingCost').val();
|
|
|
257 |
console.log(packagingCost);
|
|
|
258 |
console.log(typeof packagingCost);
|
| 9823 |
vikram.rag |
259 |
itemWeight = +itemWeight+.05;
|
| 9242 |
kshitij.so |
260 |
if (itemWeight==0){
|
|
|
261 |
var courierCost =45;
|
|
|
262 |
}
|
|
|
263 |
else{
|
|
|
264 |
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
|
|
|
265 |
var courierCost = 45;
|
|
|
266 |
for (var i=0;i<slabs;i++)
|
|
|
267 |
{
|
|
|
268 |
courierCost = courierCost + 35;
|
|
|
269 |
}
|
|
|
270 |
}
|
| 9725 |
kshitij.so |
271 |
//courierCost = ((courierCost+0)*1.1236).toFixed(2);
|
|
|
272 |
var sellingPrice=$('#sellingPrice').val();
|
| 11095 |
kshitij.so |
273 |
var courierCostSnapdeal=$('#courierCostMarketplace').val();
|
| 9725 |
kshitij.so |
274 |
var nlc=$('#maxNlc').val();
|
|
|
275 |
var otherCost=$('#otherCost').val();
|
|
|
276 |
var othCost=parseFloat(otherCost);
|
| 12133 |
kshitij.so |
277 |
var pc=parseFloat(packagingCost);
|
|
|
278 |
console.log(pc)
|
|
|
279 |
console.log(typeof pc);
|
| 9725 |
kshitij.so |
280 |
if ( sellingPrice==null || sellingPrice=="" || isNaN(sellingPrice) || nlc==null || nlc=="" || isNaN(nlc)){
|
| 9242 |
kshitij.so |
281 |
$('input#courierCost').val('0.00');
|
|
|
282 |
$('input#commission').val('0.00');
|
|
|
283 |
$('input#serviceTax').val('0.00');
|
| 9734 |
kshitij.so |
284 |
$('input#transferPrice').val('0.00');
|
|
|
285 |
$('input#minPosTp').val('0.00');
|
|
|
286 |
$('input#minPosSp').val('0.00');
|
| 9242 |
kshitij.so |
287 |
}
|
| 9725 |
kshitij.so |
288 |
else{
|
| 9780 |
kshitij.so |
289 |
var serviceTaxRate=$('#serviceTaxRate').val();
|
|
|
290 |
var stRate = serviceTaxRate/100;
|
| 10287 |
kshitij.so |
291 |
var com=$('#commissionRate').val();
|
|
|
292 |
var pgFee=$('#pgFee').val();
|
|
|
293 |
var comRate=(com/100);
|
|
|
294 |
console.log(comRate);
|
|
|
295 |
console.log(pgFee);
|
| 11095 |
kshitij.so |
296 |
console.log(courierCostSnapdeal);
|
| 10287 |
kshitij.so |
297 |
var pgFeeRate=pgFee/100;
|
| 9780 |
kshitij.so |
298 |
var emiFeeRate=$('#emiFee').val();
|
|
|
299 |
var emiFee=emiFeeRate/100;
|
|
|
300 |
var closingFee=parseFloat($('#closingFee').val());
|
|
|
301 |
var returnProvision=parseFloat($('#returnProvision').val());
|
| 9725 |
kshitij.so |
302 |
var margin=$('#margin').val();
|
|
|
303 |
var vatRate=$('#vat').val();
|
|
|
304 |
var vat=vatRate/100;
|
| 10287 |
kshitij.so |
305 |
if (pgFeeRate*parseFloat(sellingPrice)>=20){
|
|
|
306 |
var commisionPrice=((comRate+pgFeeRate)*sellingPrice).toFixed(2);
|
|
|
307 |
}
|
|
|
308 |
else{
|
|
|
309 |
var commisionPrice=(comRate*sellingPrice+20).toFixed(2);
|
|
|
310 |
}
|
| 11095 |
kshitij.so |
311 |
var ourTp=(parseFloat(sellingPrice)-parseFloat(sellingPrice)*(1+stRate)*((comRate)+emiFee)-((+courierCostSnapdeal+closingFee)*(1+stRate))-(Math.max(20,pgFeeRate*parseFloat(sellingPrice))*(1+stRate)));
|
| 10287 |
kshitij.so |
312 |
console.log(ourTp);
|
| 9725 |
kshitij.so |
313 |
var vatValue=(((sellingPrice/(1+vat))-(nlc/(1+vat)))*vat).toFixed(2);
|
| 12133 |
kshitij.so |
314 |
var inHouseCost=(+vatValue+pc+((returnProvision/100)*sellingPrice)+othCost);
|
| 9780 |
kshitij.so |
315 |
console.log(inHouseCost);
|
| 9725 |
kshitij.so |
316 |
var lowestTp=(+nlc+inHouseCost).toFixed(2);
|
| 10287 |
kshitij.so |
317 |
if (pgFeeRate*parseFloat(sellingPrice)>=20){
|
| 12133 |
kshitij.so |
318 |
var lowestSp=(+nlc+(+courierCostSnapdeal+closingFee)*(1+stRate)*(1+vat)+(pc+othCost)*(1+vat))/(1-(comRate+emiFee+pgFeeRate)*(1+stRate)*(1+vat)-(returnProvision/100)*(1+vat));
|
| 10287 |
kshitij.so |
319 |
}
|
|
|
320 |
else{
|
| 12133 |
kshitij.so |
321 |
var lowestSp=(+nlc+(+courierCostSnapdeal+closingFee+20)*(1+stRate)*(1+vat)+(pc+othCost)*(1+vat))/(1-(comRate+emiFee)*(1+stRate)*(1+vat)-(returnProvision/100)*(1+vat));
|
| 10287 |
kshitij.so |
322 |
}
|
| 9725 |
kshitij.so |
323 |
ourTp = (parseFloat(ourTp)).toFixed(2);
|
|
|
324 |
$('input#minPosTp').val(lowestTp);
|
| 9734 |
kshitij.so |
325 |
$('input#minPosSp').val(parseFloat(lowestSp).toFixed(2));
|
| 9725 |
kshitij.so |
326 |
$('input#transferPrice').val(ourTp);
|
| 11095 |
kshitij.so |
327 |
var serviceTax=(stRate*(+commisionPrice+(+courierCostSnapdeal))).toFixed(2);
|
| 9725 |
kshitij.so |
328 |
lowest_possible_tp=parseFloat(lowestTp);
|
|
|
329 |
newMargin=(ourTp-lowest_possible_tp).toFixed(2);
|
|
|
330 |
marginPercentage=(((ourTp-lowest_possible_tp)/sellingPrice)*100).toFixed(2);
|
|
|
331 |
$('input#marginPer').val(marginPercentage);
|
|
|
332 |
$('input#margin').val(newMargin);
|
| 9242 |
kshitij.so |
333 |
$('input#sellingPrice').val(sellingPrice);
|
|
|
334 |
$('input#courierCost').val(courierCost);
|
|
|
335 |
$('input#commission').val(commisionPrice);
|
|
|
336 |
$('input#serviceTax').val(serviceTax);
|
| 9734 |
kshitij.so |
337 |
$('input#minPosTp').addClass("border-highlight");
|
|
|
338 |
$('input#minPosSp').addClass("border-highlight");
|
|
|
339 |
$('input#transferPrice').addClass("border-highlight");
|
|
|
340 |
$('input#serviceTax').addClass("border-highlight");
|
|
|
341 |
$('input#commission').addClass("border-highlight");
|
|
|
342 |
$('input#margin').addClass("border-highlight");
|
|
|
343 |
$('input#marginPer').addClass("border-highlight");
|
| 9923 |
kshitij.so |
344 |
if (ourTp-lowest_possible_tp < 0){
|
|
|
345 |
$('input#margin').removeClass().addClass("border-highlight-red");
|
|
|
346 |
$('input#marginPer').addClass("border-highlight-red");
|
| 9242 |
kshitij.so |
347 |
}
|
| 9725 |
kshitij.so |
348 |
}
|
| 14780 |
manish.sha |
349 |
calculateStuffVOI();
|
| 9923 |
kshitij.so |
350 |
}
|
| 9242 |
kshitij.so |
351 |
</script>
|
| 9478 |
kshitij.so |
352 |
<script type="text/javascript">
|
|
|
353 |
$('#getMxNlc').live('click', function(){
|
| 9725 |
kshitij.so |
354 |
var itemId=$('#itemId').val();
|
|
|
355 |
var warehouseId=$('#warehouseId').val();
|
| 9825 |
kshitij.so |
356 |
var sellingPrice=$('#sellingPrice').val();
|
|
|
357 |
if ( warehouseId==null || warehouseId=="" || isNaN(warehouseId)){
|
|
|
358 |
jAlert('Please enter valid warehouse id', 'ERROR');
|
|
|
359 |
return false;
|
|
|
360 |
}
|
|
|
361 |
if (sellingPrice==0 || sellingPrice=="" || isNaN(sellingPrice)){
|
|
|
362 |
jAlert('Illegal Entry In Selling Price', 'ERROR');
|
|
|
363 |
return false;
|
|
|
364 |
}
|
| 9478 |
kshitij.so |
365 |
jQuery.ajax({
|
|
|
366 |
type : "GET",
|
| 9825 |
kshitij.so |
367 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId+"&sellingPrice="+sellingPrice,
|
| 9478 |
kshitij.so |
368 |
beforeSend: function(){
|
|
|
369 |
$('#ajax-spinner').show();
|
|
|
370 |
},
|
|
|
371 |
complete: function(){
|
|
|
372 |
$('#ajax-spinner').hide();
|
|
|
373 |
},
|
|
|
374 |
success : function(json){
|
|
|
375 |
var parsedData = JSON.parse(json);
|
|
|
376 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
| 9825 |
kshitij.so |
377 |
$('input#vat').val(parsedData.VatRate);
|
| 9734 |
kshitij.so |
378 |
calculateStuff();
|
| 9478 |
kshitij.so |
379 |
},
|
|
|
380 |
error : function() {
|
| 9725 |
kshitij.so |
381 |
$('input#warehouseId').val('');
|
| 9780 |
kshitij.so |
382 |
$('input#maxNlc').val('');
|
| 9725 |
kshitij.so |
383 |
alert("Unable to get max nlc possibly wrong warehouse");
|
| 9478 |
kshitij.so |
384 |
},
|
|
|
385 |
});
|
|
|
386 |
return false;
|
|
|
387 |
});
|
|
|
388 |
</script>
|
| 9725 |
kshitij.so |
389 |
<script type="text/javascript">
|
|
|
390 |
$(".top-header").click(function(){
|
|
|
391 |
$(".product-detail").slideToggle("slow");
|
|
|
392 |
});
|
|
|
393 |
</script>
|
|
|
394 |
<script type="text/javascript">
|
|
|
395 |
$(".top-header-inventory").click(function(){
|
|
|
396 |
$(".inventory-details").slideToggle("slow");
|
|
|
397 |
});
|
|
|
398 |
</script>
|
|
|
399 |
<script type="text/javascript">
|
|
|
400 |
$(".top-header-marketplace").click(function(){
|
|
|
401 |
$(".mp-detail").slideToggle("slow");
|
|
|
402 |
});
|
|
|
403 |
</script>
|
|
|
404 |
<!--Product details-->
|
|
|
405 |
<div class="top-header">
|
|
|
406 |
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
|
|
|
407 |
Product Details
|
|
|
408 |
</h2>
|
|
|
409 |
</div>
|
| 15427 |
kshitij.so |
410 |
<div class="product-detail" style="display: block; min-height: 730px;">
|
| 9242 |
kshitij.so |
411 |
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
|
|
|
412 |
<div class="left" style="float: left; width: 48%;">
|
|
|
413 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
|
|
414 |
<thead>
|
|
|
415 |
</thead>
|
|
|
416 |
<tbody>
|
|
|
417 |
<tr>
|
|
|
418 |
<td class="detail">Item Id</td>
|
| 12133 |
kshitij.so |
419 |
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItem_id()' type="text" readonly/></td>
|
| 9242 |
kshitij.so |
420 |
</tr>
|
|
|
421 |
<tr>
|
|
|
422 |
<td class="detail">Warehouse Id</td>
|
|
|
423 |
<td class="value">
|
| 9478 |
kshitij.so |
424 |
<input id="warehouseId" name="warehouseId" value='$itemDetail.getWarehouseId()' style="width:25%; type="text" />
|
|
|
425 |
<input type="button" id="getMxNlc" value="Get Max Nlc" style="width:25%;">
|
|
|
426 |
</td>
|
| 9242 |
kshitij.so |
427 |
</tr>
|
|
|
428 |
<tr>
|
| 9780 |
kshitij.so |
429 |
<td class="detail">Max NLC</td>
|
|
|
430 |
<td class="value"><input id="maxNlc" name="maxNlc" value='$itemDetail.getMaxNlc()'type="text" readonly/></td>
|
|
|
431 |
</tr>
|
|
|
432 |
<tr>
|
| 9568 |
kshitij.so |
433 |
<td class="detail">Weight</td>
|
|
|
434 |
<td class="value">
|
|
|
435 |
<input id="weight" name="weight" value='$itemDetail.getWeight()' type="text" readonly/>
|
|
|
436 |
</td>
|
|
|
437 |
</tr>
|
|
|
438 |
<tr>
|
| 9242 |
kshitij.so |
439 |
<td class="detail">Snapdeal Selling Price</td>
|
|
|
440 |
<td class="value">
|
| 9725 |
kshitij.so |
441 |
<input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text" onkeyup="calculateStuff()"></td>
|
| 9242 |
kshitij.so |
442 |
</tr>
|
|
|
443 |
<tr>
|
| 14780 |
manish.sha |
444 |
<td class="detail">Snapdeal VOI Selling Price</td>
|
|
|
445 |
<td class="value">
|
|
|
446 |
<input id="voiSellingPrice" name="voiSellingPrice" value='$sdItem.getVoiSellingPrice()'type="text" onkeyup="calculateStuff()"></td>
|
|
|
447 |
</tr>
|
|
|
448 |
<tr>
|
| 9242 |
kshitij.so |
449 |
<td class="detail">Transfer Price</td>
|
| 9725 |
kshitij.so |
450 |
<td class="value"><input id="transferPrice" name="transferPrice" value='$itemDetail.getTransferPrice()'type="text" readonly/></td>
|
| 9242 |
kshitij.so |
451 |
</tr>
|
|
|
452 |
<tr>
|
| 14780 |
manish.sha |
453 |
<td class="detail">Transfer Price VOI</td>
|
|
|
454 |
<td class="value"><input id="transferPriceVOI" name="transferPriceVOI" value='$sdItem.getTransferPriceVoi()' type="text" readonly/></td>
|
|
|
455 |
</tr>
|
|
|
456 |
<tr>
|
| 9242 |
kshitij.so |
457 |
<td class="detail">Webiste MRP</td>
|
| 9725 |
kshitij.so |
458 |
<td class="value"><input id="webisteMrp" name="webisteMrp" value='$itemDetail.getMrp()'type="text" disabled/></td>
|
| 9242 |
kshitij.so |
459 |
</tr>
|
|
|
460 |
<tr>
|
|
|
461 |
<td class="detail">Webiste Selling Price</td>
|
| 9725 |
kshitij.so |
462 |
<td class="value"><input id="webisteSellingPrice" name="webisteSellingPrice" value='$itemDetail.getWebsiteSellingPrice()'type="text" disabled/></td>
|
| 9242 |
kshitij.so |
463 |
</tr>
|
|
|
464 |
<tr>
|
| 9725 |
kshitij.so |
465 |
<td class="detail">Other Cost</td>
|
| 12133 |
kshitij.so |
466 |
<td class="value">
|
|
|
467 |
<input id="otherCost" name="otherCost" value='$mpDetail.getOtherCost()' type="text" onkeyup="calculateStuff()" style="width:20%;"/>
|
|
|
468 |
<span style="font-weight:bold;color:black;">Packaging Cost</span>
|
|
|
469 |
<input id="packagingCost" name="packagingCost" value='$mpDetail.getPackagingCost()' type="text" style="width:20%;" readonly/>
|
|
|
470 |
</td>
|
| 9725 |
kshitij.so |
471 |
</tr>
|
|
|
472 |
<tr>
|
|
|
473 |
<td class="detail">Minimum Possible SP (Calculated)</td>
|
|
|
474 |
<td class="value"><input id="minPosSp" name="minPosSp" value='$mpDetail.getMinimumPossibleSp()'type="text" readonly/></td>
|
|
|
475 |
</tr>
|
|
|
476 |
<tr>
|
|
|
477 |
<td class="detail">Minimum Possible TP (Calculated)</td>
|
|
|
478 |
<td class="value">
|
|
|
479 |
<input id="minPosTp" name="minPosTp" value='$mpDetail.getMinimumPossibleTp()' type="text" readonly/>
|
| 9242 |
kshitij.so |
480 |
</td>
|
|
|
481 |
</tr>
|
| 9725 |
kshitij.so |
482 |
<tr>
|
| 14780 |
manish.sha |
483 |
<td class="detail">Minimum Possible SP VOI(Calculated)</td>
|
|
|
484 |
<td class="value"><input id="minPosSpVoi" name="minPosSpVoi" value='$sdItem.getMinimumPossibleSpVoi()' type="text" readonly/></td><!--Inventory details end-->
|
|
|
485 |
</tr>
|
|
|
486 |
<tr>
|
|
|
487 |
<td class="detail">Minimum Possible TP VOI(Calculated)</td>
|
|
|
488 |
<td class="value">
|
|
|
489 |
<input id="minPosTpVoi" name="minPosTpVoi" value='$sdItem.getMinimumPossibleTpVoi()' type="text" readonly/>
|
|
|
490 |
</td>
|
|
|
491 |
</tr>
|
|
|
492 |
<tr>
|
| 9725 |
kshitij.so |
493 |
<td class="detail">Last Updated SP</td>
|
|
|
494 |
<td class="value">
|
|
|
495 |
<input id="currentSp" name="currentSp" value='$mpDetail.getCurrentSp()' type="text" readonly/>
|
|
|
496 |
</td>
|
|
|
497 |
</tr>
|
|
|
498 |
<tr>
|
|
|
499 |
<td class="detail">Last Updated TP</td>
|
|
|
500 |
<td class="value">
|
|
|
501 |
<input id="currentTp" name="currentTp" value='$mpDetail.getCurrentTp()'type="text" readonly/></td>
|
|
|
502 |
</tr>
|
|
|
503 |
#set ($margin = $mpDetail.getCurrentTp() - $mpDetail.getMinimumPossibleTp())
|
| 9923 |
kshitij.so |
504 |
#if ($margin < 0)
|
|
|
505 |
#set ($cls = 'border-highlight-red')
|
|
|
506 |
#else
|
|
|
507 |
#set ($cls='')
|
|
|
508 |
#end
|
| 14780 |
manish.sha |
509 |
#set ($marginVoi = $sdItem.getTransferPriceVoi() - $sdItem.getMinimumPossibleTpVoi())
|
|
|
510 |
#if ($marginVoi < 0)
|
|
|
511 |
#set ($cls = 'border-highlight-red')
|
|
|
512 |
#else
|
|
|
513 |
#set ($cls='')
|
|
|
514 |
#end
|
|
|
515 |
|
| 9725 |
kshitij.so |
516 |
<tr>
|
|
|
517 |
<td class="detail">Margin</td>
|
| 9923 |
kshitij.so |
518 |
<td class="value"><input id="margin" name="margin" class='$cls' value='$action.getRoundOfValue("$margin")'type="text" style="width:20%;" disabled/>
|
| 9734 |
kshitij.so |
519 |
#if($mpDetail.getCurrentSp()==0)
|
|
|
520 |
#set ($marginPercentage = 0)
|
|
|
521 |
#else
|
|
|
522 |
#set ($marginPercentage = ($margin/$mpDetail.getCurrentSp()*100))
|
|
|
523 |
#end
|
|
|
524 |
#set($roundMarginPer = $action.getRoundOfValue("$marginPercentage"))
|
| 9923 |
kshitij.so |
525 |
<span style="font-weight:bold;color:black;">Margin %</span><input id="marginPer" class='$cls' name="marginPer" value='$roundMarginPer' type="text" style="width:20%;" disabled/></td>
|
| 9725 |
kshitij.so |
526 |
</tr>
|
|
|
527 |
<tr>
|
| 14780 |
manish.sha |
528 |
<td class="detail">Margin VOI</td>
|
|
|
529 |
<td class="value"><input id="marginVOI" name="marginVOI" class='$cls' value='$action.getRoundOfValue("$marginVoi")' type="text" style="width:20%;" disabled/>
|
|
|
530 |
#if($sdItem.getVoiSellingPrice()==0)
|
|
|
531 |
#set ($marginPerVoi = 0)
|
|
|
532 |
#else
|
|
|
533 |
#set ($marginPerVoi = ($marginVoi/$sdItem.getVoiSellingPrice()*100))
|
|
|
534 |
#end
|
|
|
535 |
#set($roundMarginPerVoi = $action.getRoundOfValue("$marginPerVoi"))
|
|
|
536 |
<span style="font-weight:bold;color:black;">Margin %</span><input id="marginPerVOI" class='$cls' name="marginPerVOI" value='$roundMarginPerVoi' type="text" style="width:20%;" disabled/></td>
|
|
|
537 |
</td>
|
|
|
538 |
</tr>
|
|
|
539 |
<tr>
|
| 9725 |
kshitij.so |
540 |
<td class="detail">Last Updated Inventory</td>
|
|
|
541 |
<td class="value"><input id="lastUpdatedInventory" name="lastUpdatedInventory" value='$itemDetail.getLastUpdatedInventory()' type="text" disabled></td>
|
|
|
542 |
</tr>
|
|
|
543 |
<tr>
|
|
|
544 |
<td class="detail">Last Updated Inventory TimeStamp</td>
|
|
|
545 |
#if ($itemDetail.getLastUpdatedInventoryTimestamp()==0)
|
|
|
546 |
<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='Not Available' type="text" disabled/></td>
|
|
|
547 |
#else
|
|
|
548 |
<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='$action.getLastUpdatedInventoryTimestamp()' type="text" disabled/></td>
|
|
|
549 |
#end
|
|
|
550 |
</tr>
|
| 9923 |
kshitij.so |
551 |
<tr>
|
|
|
552 |
<td class="detail">Last Updated Price Timestamp</td>
|
| 9725 |
kshitij.so |
553 |
#if ($mpDetail.getLastCheckedTimestamp()==0)
|
|
|
554 |
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='Not Available' type="text" disabled/></td>
|
|
|
555 |
#else
|
|
|
556 |
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='$action.getLastCheckedTimestamp()' type="text" disabled/></td>
|
|
|
557 |
#end
|
|
|
558 |
</tr>
|
| 9923 |
kshitij.so |
559 |
<tr>
|
|
|
560 |
<td class="detail">Maximum Selling Price</td>
|
|
|
561 |
<td class="value">
|
|
|
562 |
<input id="maxSp" name="maxSp" value='$mpDetail.getMaximumSellingPrice()' type="text"></td>
|
|
|
563 |
</tr>
|
| 14780 |
manish.sha |
564 |
<tr>
|
| 14862 |
manish.sha |
565 |
<td class="detail">SUPC Code</td>
|
|
|
566 |
#if($itemDetail.getSupc())
|
|
|
567 |
<td class="value"><input id="supc" name="supc" value='$itemDetail.getSupc()' type="text"></td>
|
|
|
568 |
#else
|
|
|
569 |
<td class="value"><input id="supc" name="supc" value='' type="text"></td>
|
|
|
570 |
#end
|
| 14780 |
manish.sha |
571 |
</tr>
|
| 15425 |
kshitij.so |
572 |
<tr>
|
|
|
573 |
<td class ="detail"></td>
|
|
|
574 |
<td class ="value"></td>
|
|
|
575 |
</tr>
|
| 9242 |
kshitij.so |
576 |
</tbody>
|
|
|
577 |
</table>
|
|
|
578 |
</div>
|
|
|
579 |
<div class="left" style="float: right; width: 48%;">
|
|
|
580 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
|
|
581 |
<thead>
|
|
|
582 |
</thead>
|
|
|
583 |
<tbody>
|
|
|
584 |
<tr>
|
| 9923 |
kshitij.so |
585 |
<td class="detail">Last N Day Sale</td>
|
|
|
586 |
#set($nDaySale=$action.getLastNDaySaleForItem("$itemDetail.getItem_id()","5"))
|
|
|
587 |
<td class="value">
|
|
|
588 |
<input id="lastNDaySale" name="lastNDaySale" value='$action.getnDaySale()' type="text" disabled/></td>
|
|
|
589 |
</tr>
|
|
|
590 |
<tr>
|
|
|
591 |
<td class="detail">Average Sale</td>
|
|
|
592 |
<td class="value">
|
|
|
593 |
<input id="avgSale" name="avgSale" value='$action.getAvgSale()' type="text" disabled/></td>
|
|
|
594 |
</tr>
|
|
|
595 |
<tr>
|
| 9725 |
kshitij.so |
596 |
<td class="detail">Suppress Pricing Feed</td>
|
|
|
597 |
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
|
| 9923 |
kshitij.so |
598 |
<select name="isSuppressPriceFeed" selectType="1" class="border-highlight-red"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9725 |
kshitij.so |
599 |
#else
|
| 9923 |
kshitij.so |
600 |
<select name="isSuppressPriceFeed" selectType="1"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9725 |
kshitij.so |
601 |
#end
|
|
|
602 |
</td>
|
|
|
603 |
</tr>
|
|
|
604 |
<tr>
|
| 14780 |
manish.sha |
605 |
<td class="detail">Suppress VOI Pricing Feed</td>
|
|
|
606 |
<td class="value">#if ($sdItem.isSuppressVoiPriceFeed())
|
|
|
607 |
<select name="isSuppressVoiPriceFeed" selectType="1" class="border-highlight-red"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
608 |
#else
|
|
|
609 |
<select name="isSuppressVoiPriceFeed" selectType="1"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
610 |
#end
|
|
|
611 |
</td>
|
|
|
612 |
</tr>
|
|
|
613 |
<tr>
|
| 9242 |
kshitij.so |
614 |
<td class="detail">Suppress Inventory Feed</td>
|
|
|
615 |
<td class="value">#if ($itemDetail.isSuppressInventoryFeed())
|
| 9923 |
kshitij.so |
616 |
<select name="isSuppressInventoryFeed" selectType="1" class="border-highlight-red"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9242 |
kshitij.so |
617 |
#else
|
| 9923 |
kshitij.so |
618 |
<select name="isSuppressInventoryFeed" selectType="1"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9242 |
kshitij.so |
619 |
#end
|
|
|
620 |
</td>
|
|
|
621 |
</tr>
|
|
|
622 |
<tr>
|
|
|
623 |
<td class="detail">Snapdeal Listed</td>
|
|
|
624 |
<td class="value">#if ($itemDetail.isIsListedOnSnapdeal())
|
| 9923 |
kshitij.so |
625 |
<select name="isListedOnSnapdeal" selectType="2"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9242 |
kshitij.so |
626 |
#else
|
| 9923 |
kshitij.so |
627 |
<select name="isListedOnSnapdeal" selectType="2" class="border-highlight-red"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9242 |
kshitij.so |
628 |
#end
|
|
|
629 |
</td>
|
|
|
630 |
</tr>
|
|
|
631 |
<tr>
|
| 14780 |
manish.sha |
632 |
<td class="detail">Snapdeal VOI Listed</td>
|
|
|
633 |
<td class="value">#if ($sdItem.isIsVoiListed())
|
|
|
634 |
<select name="isVoiListedOnSnapdeal" selectType="2"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
635 |
#else
|
|
|
636 |
<select name="isVoiListedOnSnapdeal" selectType="2" class="border-highlight-red"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
637 |
#end
|
|
|
638 |
</td>
|
|
|
639 |
</tr>
|
|
|
640 |
<tr>
|
| 9725 |
kshitij.so |
641 |
<td class="detail">Auto Increment</td>
|
|
|
642 |
<td class="value">#if ($mpDetail.isAutoIncrement())
|
| 9923 |
kshitij.so |
643 |
<select name="isAutoIncrement" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9725 |
kshitij.so |
644 |
#else
|
| 9923 |
kshitij.so |
645 |
<select name="isAutoIncrement" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9725 |
kshitij.so |
646 |
#end
|
|
|
647 |
</td>
|
|
|
648 |
</tr>
|
|
|
649 |
<tr>
|
|
|
650 |
<td class="detail">Auto Decrement</td>
|
|
|
651 |
<td class="value">#if ($mpDetail.isAutoDecrement())
|
| 9923 |
kshitij.so |
652 |
<select name="isAutoDecrement" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9725 |
kshitij.so |
653 |
#else
|
| 9923 |
kshitij.so |
654 |
<select name="isAutoDecrement" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9725 |
kshitij.so |
655 |
#end
|
|
|
656 |
</td>
|
|
|
657 |
</tr>
|
|
|
658 |
<tr>
|
|
|
659 |
<td class="detail">Auto Favourite</td>
|
|
|
660 |
<td class="value">#if ($mpDetail.isAutoFavourite())
|
| 9923 |
kshitij.so |
661 |
<select name="isAutoFavourite" class="border-highlight-green"><option selected="selected" value="True">Active</option></select>
|
| 9725 |
kshitij.so |
662 |
#else
|
|
|
663 |
<select name="isAutoFavourite"><option selected="selected" value="False">InActive</option></select>
|
|
|
664 |
#end
|
|
|
665 |
</td>
|
|
|
666 |
</tr>
|
|
|
667 |
<tr>
|
|
|
668 |
<td class="detail">Manual Favourite</td>
|
|
|
669 |
<td class="value">#if ($mpDetail.isManualFavourite())
|
| 9923 |
kshitij.so |
670 |
<select name="isManualFavourite" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 9725 |
kshitij.so |
671 |
#else
|
| 9923 |
kshitij.so |
672 |
<select name="isManualFavourite" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 9725 |
kshitij.so |
673 |
#end
|
|
|
674 |
</td>
|
|
|
675 |
</tr>
|
|
|
676 |
<tr>
|
|
|
677 |
<td class="detail">Commission %</td>
|
|
|
678 |
<td class="value"><input id="commissionRate" name="commissionRate" value='$mpDetail.getCommission()'type="text" disabled/></td>
|
|
|
679 |
</tr>
|
|
|
680 |
<tr>
|
| 14862 |
manish.sha |
681 |
<td class="detail">Commission VOI %</td>
|
|
|
682 |
<td class="value"><input id="commissionRateVoi" name="commissionRateVoi" value='$sdItem.getCommissionPercentageVoi()'type="text" onkeyup="calculateStuff()" /></td>
|
|
|
683 |
</tr>
|
|
|
684 |
<tr>
|
| 9242 |
kshitij.so |
685 |
<td class="detail">Exception Price</td>
|
|
|
686 |
<td class="value"><input id="exceptionPrice" name="exceptionPrice" value='$itemDetail.getExceptionPrice()'type="text"/></td>
|
|
|
687 |
</tr>
|
|
|
688 |
<tr>
|
|
|
689 |
<td class="detail">Commission</td>
|
|
|
690 |
<td class="value"><input id="commission" name="commission" value='$itemDetail.getCommission()'type="text" readonly/></td>
|
|
|
691 |
</tr>
|
|
|
692 |
<tr>
|
| 14780 |
manish.sha |
693 |
<td class="detail">Commission VOI</td>
|
|
|
694 |
<td class="value"><input id="commissionVoi" name="commissionVoi" value='$sdItem.getCommissionVoi()'type="text" readonly/></td>
|
|
|
695 |
</tr>
|
| 15429 |
kshitij.so |
696 |
<tr>
|
|
|
697 |
<td class="detail">Return Provision</td>
|
|
|
698 |
<td class="value">
|
| 15425 |
kshitij.so |
699 |
<input id="returnProvision" name="returnProvision" value='$mpDetail.getReturnProvision()' type="text" readonly/>
|
|
|
700 |
</td>
|
|
|
701 |
</tr>
|
| 14780 |
manish.sha |
702 |
<tr>
|
| 9242 |
kshitij.so |
703 |
<td class="detail">Service Tax</td>
|
|
|
704 |
<td class="value"><input id="serviceTax" name="serviceTax" value='$itemDetail.getServiceTax()'type="text" readonly/></td>
|
|
|
705 |
</tr>
|
|
|
706 |
<tr>
|
| 14780 |
manish.sha |
707 |
<td class="detail">Service Tax VOI</td>
|
|
|
708 |
<td class="value"><input id="serviceTaxVOI" name="serviceTaxVOI" value='$sdItem.getServiceTaxVoi()' type="text" readonly/></td>
|
|
|
709 |
</tr>
|
|
|
710 |
<tr>
|
| 9242 |
kshitij.so |
711 |
<td class="detail">Courier Cost</td>
|
| 11095 |
kshitij.so |
712 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" style="width:20%;" readonly/>
|
|
|
713 |
<span style="font-weight:bold;color:black;">Snapdeal</span>
|
|
|
714 |
<input id="courierCostMarketplace" name="courierCostMarketplace" value='$itemDetail.getCourierCostMarketplace()'type="text" style="width:20%;" onkeyup="calculateStuff()">
|
|
|
715 |
</td>
|
| 9242 |
kshitij.so |
716 |
</tr>
|
|
|
717 |
<tr>
|
| 14780 |
manish.sha |
718 |
<td class="detail">Courier Cost VOI</td>
|
| 14862 |
manish.sha |
719 |
<td class="value"><input id="courierCostVoi" name="courierCostVoi" value='$sdItem.getCourierCostVoi()' type="text" style="width:20%;" readonly/>
|
|
|
720 |
<span style="font-weight:bold;color:black;">Snapdeal VOI</span>
|
|
|
721 |
<input id="courierCostMarketplaceVoi" name="courierCostMarketplaceVoi" value='$sdItem.getCourierCostMarketplaceVoi()'type="text" style="width:20%;" onkeyup="calculateStuff()">
|
| 14780 |
manish.sha |
722 |
</td>
|
|
|
723 |
</tr>
|
|
|
724 |
<tr>
|
| 9725 |
kshitij.so |
725 |
<td class="detail">VAT %</td>
|
| 9825 |
kshitij.so |
726 |
<td class="value"><input id="vat" name="vat" value='$mpDetail.getVat()' type="text" onkeyup="calculateStuff()"></td>
|
| 9725 |
kshitij.so |
727 |
</tr>
|
|
|
728 |
<tr>
|
| 9478 |
kshitij.so |
729 |
<td class="detail">Item Id @ Snapdeal</td>
|
| 9479 |
kshitij.so |
730 |
#if($itemDetail.getSkuAtSnapdeal())
|
|
|
731 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSkuAtSnapdeal()' type="text"></td>
|
| 9478 |
kshitij.so |
732 |
#else
|
|
|
733 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='' type="text"></td>
|
|
|
734 |
#end
|
|
|
735 |
</tr>
|
|
|
736 |
<tr>
|
| 14780 |
manish.sha |
737 |
<td class="detail">Item Id @ Snapdeal VOI</td>
|
|
|
738 |
#if($sdItem.getVoiSkuAtSnapdeal())
|
|
|
739 |
<td class="value"><input id="sdVoiItemCode" name="sdVoiItemCode" value='$sdItem.getVoiSkuAtSnapdeal()' type="text"></td>
|
|
|
740 |
#else
|
|
|
741 |
<td class="value"><input id="sdVoiItemCode" name="sdVoiItemCode" value='' type="text"></td>
|
|
|
742 |
#end
|
|
|
743 |
</tr>
|
|
|
744 |
<tr>
|
| 9242 |
kshitij.so |
745 |
<td class="detail">Action</td>
|
|
|
746 |
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
|
|
|
747 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
|
|
748 |
</td>
|
|
|
749 |
</tr>
|
|
|
750 |
<tr class="detail" style="display:none;"></td>
|
|
|
751 |
<td>
|
| 9780 |
kshitij.so |
752 |
<input id="itemWeight" name="itemWeight" value='$itemDetail.getWeight()' type="text"/>
|
| 9242 |
kshitij.so |
753 |
</td>
|
|
|
754 |
</tr>
|
| 9780 |
kshitij.so |
755 |
<tr class="detail" style="display:none;"></td>
|
|
|
756 |
<td>
|
|
|
757 |
<input id="emiFee" name="emiFee" value='$mpDetail.getEmiFee()' type="text" disabled/>
|
|
|
758 |
</td>
|
|
|
759 |
</tr>
|
|
|
760 |
<tr class="detail" style="display:none;"></td>
|
|
|
761 |
<td>
|
|
|
762 |
<input id="closingFee" name="closingFee" value='$mpDetail.getClosingFee()' type="text" disabled/>
|
|
|
763 |
</td>
|
|
|
764 |
</tr>
|
|
|
765 |
<tr class="detail" style="display:none;"></td>
|
|
|
766 |
<td>
|
|
|
767 |
<input id="serviceTaxRate" name="serviceTaxRate" value='$mpDetail.getServiceTax()' type="text" disabled/>
|
|
|
768 |
</td>
|
| 10287 |
kshitij.so |
769 |
<td>
|
|
|
770 |
<input id="pgFee" name="pgFee" value='$mpDetail.getPgFee()' type="text" disabled/>
|
|
|
771 |
</td>
|
| 9780 |
kshitij.so |
772 |
</tr>
|
| 9242 |
kshitij.so |
773 |
</tbody>
|
|
|
774 |
</table>
|
|
|
775 |
</div>
|
|
|
776 |
</form>
|
| 9725 |
kshitij.so |
777 |
</div>
|
|
|
778 |
<!--product details end-->
|
|
|
779 |
<!--Inventory details -->
|
| 14780 |
manish.sha |
780 |
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
| 9725 |
kshitij.so |
781 |
<div class="top-header-inventory">
|
|
|
782 |
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
|
|
|
783 |
Inventory Details
|
|
|
784 |
</h2>
|
|
|
785 |
</div>
|
|
|
786 |
<div class="inventory-details">
|
|
|
787 |
<table id="inventory-info" style="width: 100%">
|
|
|
788 |
<thead>
|
|
|
789 |
<tr>
|
| 9734 |
kshitij.so |
790 |
<th>Id</th>
|
| 9725 |
kshitij.so |
791 |
<th>Warehouse Desc</th>
|
| 9734 |
kshitij.so |
792 |
<th>Warehouse Location</th>
|
| 9725 |
kshitij.so |
793 |
<th>Warehouse Type</th>
|
|
|
794 |
<th>Inventory Type</th>
|
|
|
795 |
<th>Availability</th>
|
|
|
796 |
<th>Reserved</th>
|
| 9734 |
kshitij.so |
797 |
<th>Ebay Held</th>
|
|
|
798 |
<th>Flipkart Held</th>
|
|
|
799 |
<th>Snapdeal Held</th>
|
| 9725 |
kshitij.so |
800 |
</tr>
|
|
|
801 |
</thead>
|
|
|
802 |
<tbody>
|
|
|
803 |
#set($itemInventory = $action.getItemInventory("$itemDetail.getItem_id()"))
|
|
|
804 |
#set($availability = $itemInventory.getAvailability())
|
|
|
805 |
#set($reserved = $itemInventory.getReserved())
|
|
|
806 |
#set($held = $itemInventory.getHeld())
|
| 9734 |
kshitij.so |
807 |
#foreach( $keyAvailable in $availability.keySet() )
|
|
|
808 |
#if($keyAvailable!=16)
|
|
|
809 |
<tr style="border: 1px">
|
|
|
810 |
#set($whObj = $action.getWarehouse("$keyAvailable","$itemDetail.getItem_id()"))
|
|
|
811 |
#set($holdInventoryMap = $action.getHoldInventoryMapForItem())
|
| 9725 |
kshitij.so |
812 |
#set($warehouseCheck="False")
|
|
|
813 |
#if ($whObj.getWarehouseType()=="OURS" && $whObj.getInventoryType()=="GOOD")
|
|
|
814 |
#set($warehouseCheck="True")
|
|
|
815 |
#end
|
| 9825 |
kshitij.so |
816 |
#set($index = $whObj.getLocation().lastIndexOf(","))
|
|
|
817 |
#set($index = $index+1)
|
| 9734 |
kshitij.so |
818 |
<td style="text-align:center;width:5%;">$keyAvailable</td>
|
|
|
819 |
<td style="text-align:center;width:10%;">$whObj.getDisplayName()</td>
|
| 9825 |
kshitij.so |
820 |
<td style="text-align:center;width:10%;">$whObj.getLocation().substring($index)</td>
|
| 9725 |
kshitij.so |
821 |
<td style="text-align:center;width:10%;">$whObj.getWarehouseType()</td>
|
| 9825 |
kshitij.so |
822 |
<td style="text-align:center;width:8%;">$whObj.getInventoryType()</td>
|
|
|
823 |
<td style="text-align:center;width:8%;">$availability.get($keyAvailable)</td>
|
|
|
824 |
<td style="text-align:center;width:8%;">$reserved.get($keyAvailable)</td>
|
|
|
825 |
<td style="text-align:center;width:8%;">#if($$holdInventoryMap.get(6))$holdInventoryMap.get(6)#{else}0#end</td>
|
|
|
826 |
<td style="text-align:center;width:8%;">#if($$holdInventoryMap.get(8))$holdInventoryMap.get(8)#{else}0#end</td>
|
| 9725 |
kshitij.so |
827 |
<td style="text-align:center;">
|
|
|
828 |
#if ($warehouseCheck=="True")
|
| 9734 |
kshitij.so |
829 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='#if($holdInventoryMap.get(7))$holdInventoryMap.get(7)#{else}0#end' type="text" style="width:20%;"/>
|
|
|
830 |
<input type="button" class="changeHeld" value="Update" warehouse_id="$keyAvailable" item_id="$itemDetail.getItem_id()" style="width:20%;margin-left:10px;">
|
| 9725 |
kshitij.so |
831 |
#else
|
| 9734 |
kshitij.so |
832 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='#if($holdInventoryMap.get(7))$holdInventoryMap.get(7)#{else}0#end' type="text" style="width:20%;" readonly/>
|
|
|
833 |
<input type="button" value="Update" style="width:20%;margin-left:10px;" disabled/>
|
| 9725 |
kshitij.so |
834 |
#end
|
|
|
835 |
</td>
|
|
|
836 |
</tr>
|
| 9734 |
kshitij.so |
837 |
#end
|
|
|
838 |
#end
|
| 9725 |
kshitij.so |
839 |
</tbody>
|
|
|
840 |
</table>
|
|
|
841 |
</div>
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|