package com.axelor.csv.script;

import java.math.BigDecimal;

import com.axelor.apps.hr.service.employee.EmployeeService;
import com.google.inject.Inject;

public class ImportDurationStored {
	
	@Inject
	protected EmployeeService employeeService;
	
	public String getDurationHoursImport(String duration){
		BigDecimal visibleDuration = new BigDecimal(duration);
		BigDecimal durationStored = employeeService.getDurationHours(visibleDuration);
		return durationStored.toString();
	}
}

@@ -115,16 +115,61 @@
 ervice;%0A
+import com.axelor.exception.AxelorException;%0A
 import c
@@ -193,16 +193,16 @@
 Inject;%0A
-
 %0Apublic 
@@ -230,18 +230,17 @@
 tored %7B%0A
-%09
 %0A
+
 %09@Inject
@@ -284,17 +284,16 @@
 ervice;%0A
-%09
 %0A%09public
@@ -339,16 +339,39 @@
 uration)
+ throws AxelorException
 %7B%0A%09%09BigD

fix bug