/*
 * Axelor Business Solutions
 *
 * Copyright (C) 2018 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.axelor.apps.account.web;


import com.axelor.apps.account.service.app.AppAccountService;
import com.axelor.apps.account.service.debtrecovery.PayerQualityService;
import com.axelor.exception.service.TraceBackService;
import com.axelor.rpc.ActionRequest;
import com.axelor.rpc.ActionResponse;
import com.google.inject.Inject;

public class AppAccountController {

	@Inject
	private PayerQualityService payerQualityService;
	
	@Inject
	private AppAccountService appAccountService;

	public void payerQualityProcess(ActionRequest request, ActionResponse response)  {

		try  {
			payerQualityService.payerQualityProcess();
		}
		catch (Exception e) { TraceBackService.trace(response, e); }
	}
	
	public void generateAccountConfigurations(ActionRequest request, ActionResponse response)  {
		
		appAccountService.generateAccountConfigurations();
		
		response.setReload(true);
		
	}
}

@@ -912,32 +912,64 @@
 aceBackService;%0A
+import com.axelor.inject.Beans;%0A
 import com.axelo
@@ -989,16 +989,16 @@
 equest;%0A
-
 import c
@@ -1100,70 +1100,8 @@
 er %7B
-%0A%0A%09@Inject%0A%09private PayerQualityService payerQualityService;%0A%09
 %0A%09@I
@@ -1250,17 +1250,27 @@
 y  %7B%0A%09%09%09
-p
+Beans.get(P
 ayerQual
@@ -1280,16 +1280,23 @@
 Service.
+class).
 payerQua
@@ -1380,18 +1380,17 @@
 ); %7D%0A%09%7D%0A
-%09
 %0A
+
 %09public 
@@ -1475,19 +1475,17 @@
 nse)  %7B%0A
-%09%09
 %0A
+
 %09%09appAcc
@@ -1529,19 +1529,17 @@
 ions();%0A
-%09%09
 %0A
+
 %09%09respon
@@ -1558,16 +1558,14 @@
 (true);%0A
-%09%09
 %0A%09%7D%0A%7D%0A

Replace injection by Beans.get