/*
 * Axelor Business Solutions
 *
 * Copyright (C) 2017 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.csv.script;

import com.axelor.apps.sale.db.SaleOrder;
import com.axelor.apps.sale.service.SaleOrderService;
import com.axelor.exception.AxelorException;
import com.google.inject.Inject;

import java.util.Map;

public class ImportSaleOrder {

	protected SaleOrderService saleOrderService;

	@Inject
	public ImportSaleOrder(SaleOrderService saleOrderService) {
		this.saleOrderService = saleOrderService;
	}

	public Object importAddressStr(Object bean, Map<String, Object> values) {
		assert bean instanceof SaleOrder;

		SaleOrder saleOrder = (SaleOrder) bean;
		saleOrderService.computeAddressStr(saleOrder);
		return saleOrder;
	}

	public Object computeAmt(Object bean, Map<String, Object> values) throws AxelorException {

		assert bean instanceof SaleOrder;

		SaleOrder saleOrder = (SaleOrder) bean;

		SaleOrder saleorders = saleOrderService.computeSaleOrder(saleOrder);

		return saleorders;
	}
}

@@ -1525,30 +1525,14 @@
 %0A%0A%09%09
-SaleOrder saleorders =
+return
  sal
@@ -1577,30 +1577,8 @@
 er);
-%0A%0A%09%09return saleorders;
 %0A%09%7D%0A

Update ImportSaleOrder.java