OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 94 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
80 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
13
 
14
 package org.openconcerto.erp.core.supplychain.order.element;
15
 
16
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
17
import org.openconcerto.erp.core.supplychain.order.component.FactureFournisseurSQLComponent;
18
import org.openconcerto.sql.element.SQLComponent;
19
 
20
import java.util.ArrayList;
21
import java.util.HashSet;
22
import java.util.List;
23
import java.util.Set;
24
 
25
public class FactureFournisseurSQLElement extends ComptaSQLConfElement {
26
 
27
    public FactureFournisseurSQLElement() {
28
        super("FACTURE_FOURNISSEUR", "une facture fournisseur", "factures fournisseur");
29
 
30
    }
31
 
32
    protected List<String> getListFields() {
33
        final List<String> l = new ArrayList<String>();
34
        l.add("NUMERO");
35
        l.add("NOM");
36
        l.add("DATE");
37
        l.add("ID_FOURNISSEUR");
38
        l.add("T_HT");
39
        l.add("T_TTC");
40
        l.add("INFOS");
41
        return l;
42
    }
43
 
44
    protected List<String> getComboFields() {
45
        final List<String> l = new ArrayList<String>();
46
        l.add("NUMERO");
47
        l.add("NOM");
48
        l.add("DATE");
49
        return l;
50
    }
51
 
52
    @Override
53
    protected Set<String> getChildren() {
54
        Set<String> set = new HashSet<String>();
55
        set.add("FACTURE_FOURNISSEUR_ELEMENT");
56
        return set;
57
    }
58
 
59
    protected List<String> getPrivateFields() {
60
        final List<String> l = new ArrayList<String>();
61
        l.addAll(super.getPrivateFields());
62
        l.add("ID_MODE_REGLEMENT");
63
        return l;
64
    }
65
 
66
    /*
67
     * (non-Javadoc)
68
     *
69
     * @see org.openconcerto.devis.SQLElement#getComponent()
70
     */
71
    public SQLComponent createComponent() {
72
        return new FactureFournisseurSQLComponent();
73
    }
74
 
75
    @Override
76
    protected String createCode() {
77
        return createCodeFromPackage() + ".invoice.purchase";
78
    }
79
}