OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 34... Line 34...
34
    public static String WARNING_STOCK_MIN = "ArticleStockMin";
34
    public static String WARNING_STOCK_MIN = "ArticleStockMin";
35
    public static String BOM_STYLE = "BomStyle";
35
    public static String BOM_STYLE = "BomStyle";
36
    public static String SHOW_PRODUCT_BAR_CODE = "ShowProductBarCode";
36
    public static String SHOW_PRODUCT_BAR_CODE = "ShowProductBarCode";
37
    public static String ITEM_PACKAGING = "ItemPackaging";
37
    public static String ITEM_PACKAGING = "ItemPackaging";
38
    public static String FILTER_BY_FAMILY = "FilterByFamily";
38
    public static String FILTER_BY_FAMILY = "FilterByFamily";
-
 
39
    public static String ACTIVE_CALCUL_M2 = "CalculM2";
39
    public static String STOCK_MULTI_DEPOT = "MultiDepot";
40
    public static String STOCK_MULTI_DEPOT = "MultiDepot";
40
    public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
41
    public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
41
    public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
42
    public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
42
 
43
 
43
    public GestionArticleGlobalPreferencePanel() {
44
    public GestionArticleGlobalPreferencePanel() {
Line 45... Line 46...
45
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
46
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
46
    }
47
    }
47
 
48
 
48
    @Override
49
    @Override
49
    protected void addViews() {
50
    protected void addViews() {
-
 
51
        PrefView<Boolean> viewCalcul = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer le calcul au m2 (L x l)", GestionArticleGlobalPreferencePanel.ACTIVE_CALCUL_M2);
-
 
52
        viewCalcul.setDefaultValue(Boolean.FALSE);
-
 
53
        this.addView(viewCalcul);
50
 
54
 
51
        PrefView<Boolean> viewShowDevise = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer plusieurs devises", AbstractVenteArticleItemTable.ARTICLE_SHOW_DEVISE);
55
        PrefView<Boolean> viewShowDevise = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer plusieurs devises", AbstractVenteArticleItemTable.ARTICLE_SHOW_DEVISE);
52
        viewShowDevise.setDefaultValue(Boolean.FALSE);
56
        viewShowDevise.setDefaultValue(Boolean.FALSE);
53
        this.addView(viewShowDevise);
57
        this.addView(viewShowDevise);
54
 
58