Subversion Repositories SmartDukaan

Rev

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

Rev 33102 Rev 33775
Line 88... Line 88...
88
		function(response) {
88
		function(response) {
89
			$('#' + 'main-content').html(response);
89
			$('#' + 'main-content').html(response);
90
		});
90
		});
91
});
91
});
92
 
92
 
-
 
93
$(document).on('click', ".account-statement", function () {
-
 
94
    doGetAjaxRequestHandler(context + "/account-statement",
-
 
95
        function (response) {
-
 
96
            $('#' + 'main-content').html(response);
-
 
97
        });
-
 
98
});
-
 
99
 
-
 
100
$(document).on('click', '.download-partner-account-statement-report', function () {
-
 
101
    var startDate = getDatesFromPicker('input[name="accountStatementPeriod"]').startDate;
-
 
102
    var endDate = getDatesFromPicker('input[name="accountStatementPeriod"]').endDate;
-
 
103
 
-
 
104
    if (startDate == "" || startDate == undefined) {
-
 
105
        alert("start date is not be empty!!");
-
 
106
        return;
-
 
107
    }
-
 
108
    if (endDate == "" || endDate == undefined) {
-
 
109
 
-
 
110
        alert("end date is not be empty!!");
-
 
111
        return;
-
 
112
    }
-
 
113
    let endPoint = `${context}/account/statement?startDate=${startDate}&endDate=${endDate}`;
-
 
114
    if (typeof partnerId != "undefined") {
-
 
115
        endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
116
    }
-
 
117
    window.location.href = endPoint;
-
 
118
});
-
 
119
$(document).on('click', '.fetch-partner-account-statement-report', function () {
-
 
120
 
-
 
121
    var startDate = getDatesFromPicker('input[name="accountStatementPeriod"]').startDate;
-
 
122
    var endDate = getDatesFromPicker('input[name="accountStatementPeriod"]').endDate;
-
 
123
 
-
 
124
    if (startDate == "" || startDate == undefined) {
-
 
125
        alert("start date is not be empty!!");
-
 
126
        return;
-
 
127
    }
-
 
128
    if (endDate == "" || endDate == undefined) {
-
 
129
 
-
 
130
        alert("end date is not be empty!!");
-
 
131
        return;
-
 
132
    }
-
 
133
 
-
 
134
    doGetAjaxRequestHandler(context + "/account-statement-report?startDate=" + startDate + "&endDate=" + endDate + "&fofoId=" + partnerId,
-
 
135
        function (response) {
-
 
136
            $('.account-statement-conatiner').html(response);
-
 
137
        });
-
 
138
 
-
 
139
});
-
 
140
 
93
 
141
 
94
$(document).on('click', ".partner-collection-summary", function() {
142
$(document).on('click', ".partner-collection-summary", function() {
95
	doGetAjaxRequestHandler(context + "/collectionSummary",
143
	doGetAjaxRequestHandler(context + "/collectionSummary",
96
		function(response) {
144
		function(response) {
97
			$('#' + 'main-content').html(response);
145
			$('#' + 'main-content').html(response);