OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 174 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 180
Line 132... Line 132...
132
            return result;
132
            return result;
133
        }
133
        }
134
        return null;
134
        return null;
135
    }
135
    }
136
 
136
 
137
    public static ProductComponent createFromRowArticle(SQLRowAccessor rowArticle, SQLRowAccessor rowValsSource) {
137
    public static ProductComponent createFromRowArticle(SQLRowAccessor rowArticle, BigDecimal qty, SQLRowAccessor rowValsSource) {
138
        SQLRowAccessor rowStock = getStock(rowArticle, rowArticle, rowValsSource);
138
        SQLRowAccessor rowStock = getStock(rowArticle, rowArticle, rowValsSource);
139
 
139
 
140
        return new ProductComponent(rowArticle, BigDecimal.ONE, rowValsSource, rowStock);
140
        return new ProductComponent(rowArticle, qty, rowValsSource, rowStock);
-
 
141
    }
-
 
142
 
-
 
143
    public static ProductComponent createFromRowArticle(SQLRowAccessor rowArticle, SQLRowAccessor rowValsSource) {
-
 
144
        return createFromRowArticle(rowArticle, BigDecimal.ONE, rowValsSource);
141
    }
145
    }
142
 
146
 
143
    public static ProductComponent createFrom(SQLRowAccessor rowVals) {
147
    public static ProductComponent createFrom(SQLRowAccessor rowVals) {
144
        return createFrom(rowVals, 1, rowVals);
148
        return createFrom(rowVals, 1, rowVals);
145
    }
149
    }