| Line 198... |
Line 198... |
| 198 |
<span style="padding-left:10px">*Inclusive of service tax.</span>
|
198 |
<span style="padding-left:10px">*Inclusive of service tax.</span>
|
| 199 |
</div>
|
199 |
</div>
|
| 200 |
|
200 |
|
| 201 |
</div>
|
201 |
</div>
|
| 202 |
<div style="text-align:center;clear:left">
|
202 |
<div style="text-align:center;clear:left">
|
| 203 |
<div style="font-size:15px;font-weight:bold;padding:5px">Total Amount : <span class="rupee-icon mk_total_amount"></span></div>
|
203 |
<div style="font-size:15px;font-weight:bold;padding:5px">Total Amount : <span class="mk_total_amount"></span></div>
|
| 204 |
<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
|
204 |
<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
|
| 205 |
<br/><br/>
|
205 |
<br/><br/>
|
| 206 |
<b>You will be taken to our Bank's payment gateway for making this payment.</b>
|
206 |
<b>You will be taken to our Bank's payment gateway for making this payment.</b>
|
| 207 |
</div>
|
207 |
</div>
|
| 208 |
</form>
|
208 |
</form>
|
| Line 559... |
Line 559... |
| 559 |
|
559 |
|
| 560 |
#include ( "templates/commonjsfiles.vm" )
|
560 |
#include ( "templates/commonjsfiles.vm" )
|
| 561 |
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
|
561 |
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
|
| 562 |
<script language="javascript" type="text/javascript">
|
562 |
<script language="javascript" type="text/javascript">
|
| 563 |
emiOptions = $action.getJSONEmiSchemes();
|
563 |
emiOptions = $action.getJSONEmiSchemes();
|
| - |
|
564 |
EMI = {};
|
| - |
|
565 |
EMI.discounts = $action.getJSONEmiDiscountSchemes();
|
| 564 |
banks = {};
|
566 |
banks = {};
|
| 565 |
var first = true;
|
567 |
var first = true;
|
| 566 |
jQuery.each(emiOptions, function(index, opt) {
|
568 |
jQuery.each(emiOptions, function(index, opt) {
|
| 567 |
if(typeof banks[opt.bankId] == "undefined") {
|
569 |
if(typeof banks[opt.bankId] == "undefined") {
|
| 568 |
banks[opt.bankId] = {};
|
570 |
banks[opt.bankId] = {};
|
| Line 578... |
Line 580... |
| 578 |
} else {
|
580 |
} else {
|
| 579 |
bankTenure.emiProcessingCharge = Math.ceil((opt.chargeValue * $action.getTotalAmountL())/100);
|
581 |
bankTenure.emiProcessingCharge = Math.ceil((opt.chargeValue * $action.getTotalAmountL())/100);
|
| 580 |
}
|
582 |
}
|
| 581 |
bankTenure.totalAmount = $action.getTotalAmountL() + bankTenure.emiProcessingCharge;
|
583 |
bankTenure.totalAmount = $action.getTotalAmountL() + bankTenure.emiProcessingCharge;
|
| 582 |
bankTenure.monthlyEmi = (Math.round((bankTenure.totalAmount*100)/opt.tenure)/100).toFixed(2);
|
584 |
bankTenure.monthlyEmi = (Math.round((bankTenure.totalAmount*100)/opt.tenure)/100).toFixed(2);
|
| - |
|
585 |
if(opt.id in EMI.discounts){
|
| - |
|
586 |
bankTenure.discountedEmiProcessingCharge = bankTenure.emiProcessingCharge - EMI.discounts[opt.id];
|
| - |
|
587 |
bankTenure.discountedTotalAmount = bankTenure.totalAmount - EMI.discounts[opt.id];
|
| - |
|
588 |
bankTenure.discountedMonthlyEmi = (Math.round((bankTenure.discountedTotalAmount*100)/opt.tenure)/100).toFixed(2);
|
| - |
|
589 |
}
|
| - |
|
590 |
|
| 583 |
bank.emis[opt.id] = bankTenure;
|
591 |
bank.emis[opt.id] = bankTenure;
|
| 584 |
});
|
592 |
});
|
| 585 |
//This code shall be removed when all banks go live
|
593 |
//This code shall be removed when all banks go live
|
| 586 |
banks[1].img = "/images/hdfc-icon.png";
|
594 |
banks[1].img = "/images/hdfc-icon.png";
|
| 587 |
comingSoonBanks = {}
|
595 |
comingSoonBanks = {}
|