OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 132 | Rev 180 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 132 Rev 177
Line 174... Line 174...
174
        SQLElement eltModeRegl = Configuration.getInstance().getDirectory().getElement("MODE_REGLEMENT");
174
        SQLElement eltModeRegl = Configuration.getInstance().getDirectory().getElement("MODE_REGLEMENT");
175
        SQLRow row = eltModeRegl.getTable().getRow(idModeRegl);
175
        SQLRow row = eltModeRegl.getTable().getRow(idModeRegl);
176
        int aJ = row.getInt("AJOURS");
176
        int aJ = row.getInt("AJOURS");
177
        int nJ = row.getInt("LENJOUR");
177
        int nJ = row.getInt("LENJOUR");
178
        if (aJ + nJ == 0) {
178
        if (aJ + nJ == 0) {
179
            if (row.getBoolean("DATE_FACTURE")) {
179
            if (!row.getBoolean("COMPTANT") && row.getBoolean("DATE_FACTURE")) {
180
                return Configuration.getInstance().getTranslator().getLabelFor(row.getTable().getField("DATE_FACTURE"));
180
                return Configuration.getInstance().getTranslator().getLabelFor(row.getTable().getField("DATE_FACTURE"));
181
            } else {
181
            } else {
182
                return " ";
182
                return " ";
183
            }
183
            }
184
        }
184
        }