OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 156
Line 54... Line 54...
54
                return o1.startDate.compareTo(o2.startDate);
54
                return o1.startDate.compareTo(o2.startDate);
55
            }
55
            }
56
        });
56
        });
57
        for (PriceByQty priceByQty : list) {
57
        for (PriceByQty priceByQty : list) {
58
            if (priceByQty.qty > qty) {
58
            if (priceByQty.qty > qty) {
-
 
59
                if (result == null) {
-
 
60
                    result = priceByQty.price;
-
 
61
                }
59
                break;
62
                break;
60
            }
63
            }
61
            if (result == null || priceByQty.startDate.before(d)) {
64
            if (result == null || priceByQty.startDate.before(d)) {
62
                result = priceByQty.price;
65
                result = priceByQty.price;
63
            }
66
            }