Dépôt officiel du code source de l'ERP OpenConcerto
/trunk/OpenConcerto/src/org/openconcerto/erp/core/humanresources/payroll/report/FichePayeSheetXML.java |
---|
18,6 → 18,8 |
import org.openconcerto.sql.Configuration; |
import org.openconcerto.sql.model.SQLRow; |
import java.util.Calendar; |
public class FichePayeSheetXML extends AbstractSheetXMLWithDate { |
public static final String TEMPLATE_ID = "FichePaye"; |
39,8 → 41,12 |
public String getName() { |
SQLRow rowSal = row.getForeign("ID_SALARIE"); |
SQLRow rowMois = row.getForeign("ID_MOIS"); |
return ("FichePaye_" + rowSal.getString("CODE") + "_" + rowMois.getString("NOM") + "_" + row.getString("ANNEE")); |
Calendar du = row.getDate("DU"); |
String suffix = ""; |
if (du != null && du.get(Calendar.DAY_OF_MONTH) != 1) { |
suffix = "_" + du.get(Calendar.DAY_OF_MONTH); |
} |
return ("FichePaye_" + rowSal.getString("CODE") + suffix + "_" + rowMois.getString("NOM") + "_" + row.getString("ANNEE")); |
} |
} |