Project

General

Profile

« Previous | Next » 

Revision 25d36369

Added by Mikaël Ates over 12 years ago

dossiers: fix the selection of acts before the end date of the invoicing.

View differences:

calebasse/facturation/list_acts.py
48 48
    i = 0
49 49
    for act in acts:
50 50
        # On enlève tous les acts sup au jour de l'end_date
51
        if datetime(act.date.year, act.date.month, act.date.day) <= \
51
        if datetime(act.date.year, act.date.month, act.date.day) > \
52 52
                datetime(end_day.year, end_day.month, end_day.day):
53
            acts = acts[i:]
53
            acts = acts[:i]
54 54
            break
55 55
        i = i + 1
56 56
    if start_day:

Also available in: Unified diff