Subversion Repositories SmartDukaan

Rev

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

Rev 32528 Rev 33854
Line 77... Line 77...
77
			// Do nothing!
77
			// Do nothing!
78
		}
78
		}
79
	});
79
	});
80
 
80
 
81
 
81
 
-
 
82
	$(document).on('click', ".reset-hard-limit", function () {
-
 
83
		var id = $(this).data('id');
-
 
84
		if (confirm("Are you sure you want to reset hard limit")) {
-
 
85
			doPutAjaxRequestHandler(`${context}/resetHardLimit?id=${id}`, function (response) {
-
 
86
				if (response) {
-
 
87
					alert("Hard Limit reset.");
-
 
88
					var hardLimitInput = $('input[name="hardLimit"]');
-
 
89
					hardLimitInput.prop('disabled', false);
-
 
90
					hardLimitInput.val('false');
-
 
91
					hardLimitInput.prop('disabled', true);
-
 
92
				}
-
 
93
			});
82
 
94
		}
83
 
95
	});
84
 
96
 
85
	$(document).on('click', '.credit-requirement-send', function() {
97
	$(document).on('click', '.credit-requirement-send', function() {
86
		var row = $(this).closest("tr");
98
		var row = $(this).closest("tr");
87
		console.log(row);
99
		console.log(row);
88
		var rowIndex = $(this).closest('tr').prevAll().length;
100
		var rowIndex = $(this).closest('tr').prevAll().length;
Line 95... Line 107...
95
		console.log(securityCheck);
107
		console.log(securityCheck);
96
 
108
 
97
 
109
 
98
		var limit = $(row).find("td:eq(5) input[type='text']").val();
110
		var limit = $(row).find("td:eq(5) input[type='text']").val();
99
		var interest = $(row).find("td:eq(8) input[type='text']").val();
111
		var interest = $(row).find("td:eq(8) input[type='text']").val();
100
		var freedays = $(row).find("td:eq(9) input[type='text']").val();
112
		var freedays = $(row).find("td:eq(10) input[type='text']").val();
101
		var creditDays = $(row).find("td:eq(10) input[type='text']").val();
113
		var creditDays = $(row).find("td:eq(11) input[type='text']").val();
102
 
114
 
103
		console.log(freedays)
115
		console.log(freedays)
104
 
116
 
105
		var sdCreditReq = {};
117
		var sdCreditReq = {};
106
		sdCreditReq['fofoId'] = fofoId
118
		sdCreditReq['fofoId'] = fofoId