OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 177
Line 162... Line 162...
162
    /*
162
    /*
163
     * (non-Javadoc)
163
     * (non-Javadoc)
164
     * 
164
     * 
165
     * @see org.openconcerto.devis.BaseSQLElement#getListFields()
165
     * @see org.openconcerto.devis.BaseSQLElement#getListFields()
166
     */
166
     */
-
 
167
    @Override
167
    protected List<String> getListFields() {
168
    protected List<String> getListFields() {
168
        List<String> l = new ArrayList<String>();
169
        List<String> l = new ArrayList<String>();
169
        l.add("ID_SAISIE_VENTE_FACTURE");
170
        l.add("ID_SAISIE_VENTE_FACTURE");
170
 
-
 
171
            l.add("CODE");
171
        l.add("CODE");
172
            l.add("NOM");
172
        l.add("NOM");
173
            l.add("DESCRIPTIF");
173
        l.add("DESCRIPTIF");
174
            String articleAdvanced = DefaultNXProps.getInstance().getStringProperty("ArticleModeVenteAvance");
174
        String articleAdvanced = DefaultNXProps.getInstance().getStringProperty("ArticleModeVenteAvance");
175
            Boolean bArticleAdvanced = Boolean.valueOf(articleAdvanced);
175
        Boolean bArticleAdvanced = Boolean.valueOf(articleAdvanced);
176
            if (bArticleAdvanced) {
176
        if (bArticleAdvanced) {
177
                l.add("PRIX_METRIQUE_VT_1");
177
            l.add("PRIX_METRIQUE_VT_1");
178
                l.add("ID_MODE_VENTE_ARTICLE");
178
            l.add("ID_MODE_VENTE_ARTICLE");
179
            }
179
        }
180
            if (UserRightsManager.getCurrentUserRights().haveRight(AbstractVenteArticleItemTable.SHOW_PRIX_ACHAT_CODE)) {
180
        if (UserRightsManager.getCurrentUserRights().haveRight(AbstractVenteArticleItemTable.SHOW_PRIX_ACHAT_CODE)) {
181
                l.add("PA_HT");
181
            l.add("PA_HT");
182
            }
182
        }
183
            l.add("PV_HT");
183
        l.add("PV_HT");
184
        l.add("QTE");
184
        l.add("QTE");
185
        if (getTable().contains("ID_ECO_CONTRIBUTION")) {
185
        if (getTable().contains("ID_ECO_CONTRIBUTION")) {
186
            l.add("ID_ECO_CONTRIBUTION");
186
            l.add("ID_ECO_CONTRIBUTION");
187
            l.add("ECO_CONTRIBUTION");
187
            l.add("ECO_CONTRIBUTION");
188
            l.add("T_ECO_CONTRIBUTION");
188
            l.add("T_ECO_CONTRIBUTION");