| Line 373... |
Line 373... |
| 373 |
$('#sp').html(PARAMETERS[itemid].SP);
|
373 |
$('#sp').html(PARAMETERS[itemid].SP);
|
| 374 |
$('#mrp').html(PARAMETERS[itemid].MRP);
|
374 |
$('#mrp').html(PARAMETERS[itemid].MRP);
|
| 375 |
$('#saving').html(PARAMETERS[itemid].SAVING);
|
375 |
$('#saving').html(PARAMETERS[itemid].SAVING);
|
| 376 |
$("#item_id").val(itemid);
|
376 |
$("#item_id").val(itemid);
|
| 377 |
}
|
377 |
}
|
| 378 |
$('div.mk_deal').fadeOut('fast');
|
378 |
$('div.mk_deal').hide();
|
| 379 |
$('div.mk_nodeal').show();
|
379 |
$('div.mk_nodeal').show();
|
| 380 |
} else {
|
380 |
} else {
|
| 381 |
var itemp = privateDeals[itemid];
|
381 |
var itemp = privateDeals[itemid];
|
| 382 |
sellingPrice = itemp.dealPojo.dealPrice;
|
382 |
sellingPrice = itemp.dealPojo.dealPrice;
|
| 383 |
var installment = sellingPrice*EMI.interestRate*Math.pow(1+EMI.interestRate,EMI.tenure)/(Math.pow(1+EMI.interestRate,EMI.tenure) - 1);
|
383 |
var installment = sellingPrice*EMI.interestRate*Math.pow(1+EMI.interestRate,EMI.tenure)/(Math.pow(1+EMI.interestRate,EMI.tenure) - 1);
|
| Line 411... |
Line 411... |
| 411 |
html.push('<div style="font-weight:bold;padding-bottom:6px;text-decoration:line-through">' + dealRight +'</div>');
|
411 |
html.push('<div style="font-weight:bold;padding-bottom:6px;text-decoration:line-through">' + dealRight +'</div>');
|
| 412 |
}
|
412 |
}
|
| 413 |
html.push('<div><span class="mk_emi" style="font-size: 14px;">EMIs from <span class="red">Rs.' + (Math.round(installment*100)/100).toFixed(2) +'</span> per month<a style="padding-left:2px" href="javascript:void(0)" id="emi_more1"><img style="vertical-align: middle;" src="/unversioned/images/quesmark.png"></a></span></div>')
|
413 |
html.push('<div><span class="mk_emi" style="font-size: 14px;">EMIs from <span class="red">Rs.' + (Math.round(installment*100)/100).toFixed(2) +'</span> per month<a style="padding-left:2px" href="javascript:void(0)" id="emi_more1"><img style="vertical-align: middle;" src="/unversioned/images/quesmark.png"></a></span></div>')
|
| 414 |
html.push('</div>');
|
414 |
html.push('</div>');
|
| 415 |
html.push('</div>');
|
415 |
html.push('</div>');
|
| 416 |
$('div.mk_nodeal').fadeOut('fast');
|
416 |
$('div.mk_nodeal').hide();
|
| 417 |
$('div.mk_deal').html(html.join('')).show();
|
417 |
$('div.mk_deal').html(html.join('')).show();
|
| 418 |
}
|
418 |
}
|
| 419 |
}
|
419 |
}
|
| 420 |
|
420 |
|
| 421 |
banks = {};
|
421 |
banks = {};
|