* @param listDeduction
* @return
*/
private String [] createDeductionGrid(FicheSt ficheSt){
List<Deduction> listDeduction = ficheSt.getDeductions();
Deduction deduction = null;
String srcDeduction = "";
String srcSumDeduction = "";
double canto = 0.0;
double badge = 0.0;
double grue = 0.0;
double lift = 0.0;
double benne = 0.0;
double nettoyage = 0.0;
double autres = 0.0; // khong co nhan
double prorata = 0.0;
double refacturations = 0.0;//khong co nhan
for (int j = 0; j < listDeduction.size(); j++) {
deduction = listDeduction.get(j);
/*srcDeduction += deduction.getDate() + Constants.SEPRATE + deduction.getCanto() + Constants.SEPRATE +
deduction.getBadge() + Constants.SEPRATE + deduction.getGrue() + Constants.SEPRATE +
deduction.getLift() + Constants.SEPRATE + deduction.getBenne() + Constants.SEPRATE + deduction.getNettoyage() + Constants.SEPRATE +
deduction.getAutres() + Constants.SEPRATE + deduction.getProrata() + Constants.SEPRATE + deduction.getRefacturations() + Constants.SEPRATE;*/
srcDeduction += append(deduction.getDate(),deduction.getCanto(),deduction.getBadge(),deduction.getGrue(),deduction.getLift(),
deduction.getBenne(),deduction.getNettoyage(),deduction.getAutres(),deduction.getProrata(),deduction.getRefacturations());
canto += deduction.getCanto();
badge += deduction.getBadge();
grue += deduction.getGrue();
lift += deduction.getLift();
benne += deduction.getBenne();
nettoyage += deduction.getNettoyage();
autres += deduction.getAutres();
prorata += deduction.getProrata();
refacturations += deduction.getRefacturations();
}
canto = canto * ficheSt.getPrestaCanto();
badge = badge * ficheSt.getPrestaBadge();
grue = grue * ficheSt.getPrestaGrue();
lift = lift * ficheSt.getPrestaLift();