Subversion Repositories SmartDukaan

Rev

Rev 8611 | Rev 8861 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8611 Rev 8823
Line 319... Line 319...
319
            #if($payment.getSessionId()) <span>Session Id : $payment.getSessionId()</span><br/>#end
319
            #if($payment.getSessionId()) <span>Session Id : $payment.getSessionId()</span><br/>#end
320
            #if($payment.getSuccessTimestamp() != 0) <span>Success Time : $action.convertDate($payment.getSuccessTimestamp())</span>#end
320
            #if($payment.getSuccessTimestamp() != 0) <span>Success Time : $action.convertDate($payment.getSuccessTimestamp())</span>#end
321
        </div>
321
        </div>
322
        #end
322
        #end
323
    </div>
323
    </div>
-
 
324
		<br><br><br><br><br>					
-
 
325
			#if($action.getRefundEnabledStatus()==2)
-
 
326
				<input id='refundPayment' type='button' value='Refund'><br/>
-
 
327
			#elseif($action.getRefundEnabledStatus()==0)
-
 
328
                <span class='info'>Refund has been processed for this order.</span>
-
 
329
			#end
-
 
330
			
-
 
331
			<form id ="refundPhysicalOrderForm" style="display:none;" action="/crm/user-order-info!refundOrderPayment" type="post">
-
 
332
				<label class="heading">Refund details</label><br />
-
 
333
				<span> Select Refund Method : </span> 
-
 
334
				<br>
-
 
335
				<input id="orderId" name="orderId" value='$order.getId()' type="hidden" />
-
 
336
				<input type = 'radio' id = 'rfdCoupon' name = 'rfdRadio' value = 'rfdCoupon' />Refund by Coupon <br>
-
 
337
				#if($order.isCod()) 
-
 
338
					<input type = 'radio' id = 'rfdCheque' name = 'rfdRadio' value = 'rfdCheque'>Refund by Cheque <br>
-
 
339
				#else 
-
 
340
					<input type = 'radio' id = 'rfdGateway' name = 'rfdRadio' value = 'rfdGateway'>Refund by Gateway
-
 
341
				#end
-
 
342
				<br>
-
 
343
				<div id = 'refundByCoupon' class = "hidden">
-
 
344
    				<span>Coupon Details: </span>
-
 
345
        				<input type="text" id="couponDetails" name="couponDetails"/>
-
 
346
							<br>
-
 
347
        				<span>Refund Amount: </span>
-
 
348
        				<input type="text" id="refundAmountCoupon" name="refundAmountCoupon"/><span style='font-size:11px;padding-left:5px;color:red;'>Enter Numeric Value Only</span>
-
 
349
                </div>
-
 
350
				<div id = 'refundByCheque' class = "hidden">
-
 
351
						<span>Cheque Details: </span>
-
 
352
        				<input type="text" id="chequeDetails"name="chequeDetails"/>
-
 
353
							<br>
-
 
354
        				<span>Refund Amount: </span>
-
 
355
        				<input type="text" id="refundAmountCheque" name="refundAmountCheque"/><span style='font-size:11px;padding-left:5px;color:red;'>Enter Numeric Value Only</span>
-
 
356
                </div>
-
 
357
				<div id = 'refundByGateway' class = "hidden">
-
 
358
						<span>Comments: </span>
-
 
359
        				<input type="text" id="comments" size="30px" name="comments"/>
-
 
360
							<br>
-
 
361
						<span>Refund Amount: </span>
-
 
362
        				<input type="text" id="refundAmountGateway" name="refundAmountGateway"/><span style='font-size:11px;padding-left:5px;color:red;'>Enter Numeric Value Only</span>
-
 
363
               </div>
-
 
364
				<br>
-
 
365
					<div id = 'refundSubmit' >
-
 
366
						<input disabled='disabled' type="submit" value = "Submit" id="refundDetailSubmit"/>
-
 
367
					<input id='cancelRefundRequest' type='button' value='Cancel'>
-
 
368
                    </div>
-
 
369
					
-
 
370
            	</form>
-
 
371
		
-
 
372
		
324
    <div id="orderBottom">
373
    <div id="orderBottom">
325
        <br />
374
        <br />
326
        <br />
375
        <br />
327
        <label class="heading">Shipment updates</label><br />
376
        <label class="heading">Shipment updates</label><br />
328
        <table id="shipment-details">
377
        <table id="shipment-details">
Line 349... Line 398...
349
                #end
398
                #end
350
            </tbody>
399
            </tbody>
351
        </table>
400
        </table>
352
    </div>
401
    </div>
353
#end
402
#end
-
 
403
 
-
 
404
<script type='text/javascript'>
-
 
405
$('input[name=refundAmountCoupon]').keypress(function(e) {
-
 
406
        var a = [];
-
 
407
        var k = e.which;
-
 
408
 
-
 
409
        for (i = 46; i < 58; i++){
-
 
410
    		if(i == 47){
-
 
411
    			continue;
-
 
412
    		}
-
 
413
    		else{
-
 
414
            	a.push(i);
-
 
415
    		}
-
 
416
    	}
-
 
417
 
-
 
418
        if (!(a.indexOf(k)>=0)){
-
 
419
            e.preventDefault();
-
 
420
    	}
-
 
421
    });
-
 
422
 
-
 
423
$('input[name=refundAmountCheque]').keypress(function(e) {
-
 
424
        var a = [];
-
 
425
        var k = e.which;
-
 
426
 
-
 
427
        for (i = 46; i < 58; i++){
-
 
428
    		if(i == 47){
-
 
429
    			continue;
-
 
430
    		}
-
 
431
    		else{
-
 
432
            	a.push(i);
-
 
433
    		}
-
 
434
    	}
-
 
435
 
-
 
436
        if (!(a.indexOf(k)>=0)){
-
 
437
            e.preventDefault();
-
 
438
    	}
-
 
439
    });
-
 
440
	
-
 
441
$('input[name=refundAmountGateway]').keypress(function(e) {
-
 
442
        var a = [];
-
 
443
        var k = e.which;
-
 
444
 
-
 
445
        for (i = 46; i < 58; i++){
-
 
446
    		if(i == 47){
-
 
447
    			continue;
-
 
448
    		}
-
 
449
    		else{
-
 
450
            	a.push(i);
-
 
451
    		}
-
 
452
    	}
-
 
453
 
-
 
454
        if (!(a.indexOf(k)>=0)){
-
 
455
            e.preventDefault();
-
 
456
    	}
-
 
457
    });
-
 
458
	
-
 
459
</script>