OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 151 Rev 156
Line 573... Line 573...
573
        return totalTTC.movePointRight(2).setScale(0, RoundingMode.HALF_UP).intValue();
573
        return totalTTC.movePointRight(2).setScale(0, RoundingMode.HALF_UP).intValue();
574
    }
574
    }
575
 
575
 
576
    public TotalCalculator getTotalCalculator() {
576
    public TotalCalculator getTotalCalculator() {
577
        final SQLTable tableElt = ((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete().findTable("SAISIE_VENTE_FACTURE_ELEMENT");
577
        final SQLTable tableElt = ((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete().findTable("SAISIE_VENTE_FACTURE_ELEMENT");
578
        final TotalCalculator calc = new TotalCalculator("T_PA_HT", "T_PV_HT", null);
578
        final TotalCalculator calc = new TotalCalculator("T_PA_HT", "T_PV_HT", null, null);
579
        final String val = DefaultNXProps.getInstance().getStringProperty("ArticleService");
579
        final String val = DefaultNXProps.getInstance().getStringProperty("ArticleService");
580
        final Boolean bServiceActive = Boolean.valueOf(val);
580
        final Boolean bServiceActive = Boolean.valueOf(val);
581
        calc.setServiceActive(bServiceActive != null && bServiceActive);
581
        calc.setServiceActive(bServiceActive != null && bServiceActive);
582
        final int size = this.items.size();
582
        final int size = this.items.size();
583
        for (int i = 0; i < size; i++) {
583
        for (int i = 0; i < size; i++) {