Take lines without maturity date as line to pay
In rev 4a726694e1db, I added such constraint. The commit message is not clear but I think it was to prevent comparison in Python between date instance and None.
Now we use SQL for that so such constraint is useless (but we should order null last).