Commit 197db67b authored by Kevin Deldycke's avatar Kevin Deldycke

Fix bad math if from_date is None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7700 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef8191d8
......@@ -150,7 +150,7 @@ if from_date is not None:\n
\n
previous_balance.edit( \\\n
title = context.Base_translateString("Previous Balance")\n
, date = from_date - 1\n
, date = from_date and (from_date - 1) or None\n
, portal_type = ""\n
, simulation_state_title = ""\n
, debit = previous_total_debit\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment