OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 76 Rev 141
Line 35... Line 35...
35
    private final SQLTable tableNum = Configuration.getInstance().getRoot().findTable("NUMEROTATION_AUTO");
35
    private final SQLTable tableNum = Configuration.getInstance().getRoot().findTable("NUMEROTATION_AUTO");
36
 
36
 
37
    @Override
37
    @Override
38
    protected void validItem(SQLRowAccessor sqlRowAccessor) {
38
    protected void validItem(SQLRowAccessor sqlRowAccessor) {
39
        // Affectation d'un numero
39
        // Affectation d'un numero
40
        SQLRowValues rowVals = sqlRowAccessor.asRowValues();
40
        SQLRowValues rowVals = sqlRowAccessor.createEmptyUpdateRow();
41
        String nextNumero = NumerotationAutoSQLElement.getNextNumero(SaisieVenteFactureSQLElement.class);
41
        String nextNumero = NumerotationAutoSQLElement.getNextNumero(SaisieVenteFactureSQLElement.class);
42
 
-
 
-
 
42
        rowVals.put("DATE", new Date());
43
        rowVals.put("NUMERO", nextNumero);
43
        rowVals.put("NUMERO", nextNumero);
44
 
44
 
45
        SQLRowValues rowValsNum = new SQLRowValues(tableNum);
45
        SQLRowValues rowValsNum = new SQLRowValues(tableNum);
46
 
46
 
47
        String labelNumberFor = NumerotationAutoSQLElement.getLabelNumberFor(SaisieVenteFactureSQLElement.class);
47
        String labelNumberFor = NumerotationAutoSQLElement.getLabelNumberFor(SaisieVenteFactureSQLElement.class);