Subversion Repositories SmartDukaan

Rev

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

Rev 7732 Rev 8821
Line 1026... Line 1026...
1026
        	location.reload();
1026
        	location.reload();
1027
        }
1027
        }
1028
    });
1028
    });
1029
}
1029
}
1030
 
1030
 
-
 
1031
function refundOrderPayment(params) {
-
 
1032
	$.ajax({
-
 
1033
        type : "POST",
-
 
1034
        url : "/crm/user-order-info!refundOrderPayment",
-
 
1035
        data : params,
-
 
1036
        success : function(response) {
-
 
1037
			alert(response);
-
 
1038
			location.reload();
-
 
1039
        },
-
 
1040
        error : function() {
-
 
1041
        	alert("Error in refund");
-
 
1042
        	location.reload();
-
 
1043
        }
-
 
1044
    });
-
 
1045
}
-
 
1046
 
1031
function loadOrdersByMobile(domId) {
1047
function loadOrdersByMobile(domId) {
1032
    orderTable = $('#orders-without-user').dataTable({
1048
    orderTable = $('#orders-without-user').dataTable({
1033
      "aaSorting" : [ [ 1, 'desc' ] ],
1049
      "aaSorting" : [ [ 1, 'desc' ] ],
1034
      "bAutoWidth": false,
1050
      "bAutoWidth": false,
1035
      "aoColumns" : [{ "sWidth": "13%" },//order id
1051
      "aoColumns" : [{ "sWidth": "13%" },//order id