Commit 421a8b82 authored by Aurel's avatar Aurel

default payment term to 0 to avoid error when adding to a datetime object


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37408 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00b0a169
......@@ -191,7 +191,7 @@ class BusinessProcess(Path, XMLObject):
reference_date = explanation_cache.getReferenceDate(self, trade_date, reference_date_method_id)
# Computer start_date and stop_date (XXX-JPS this could be cached and accelerated)
start_date = reference_date + trade_model_path.getPaymentTerm() # XXX-JPS Until better naming
start_date = reference_date + trade_model_path.getPaymentTerm(0) # XXX-JPS Until better naming
if delay_mode == 'min':
delay = trade_model_path.getMinDelay()
elif delay_mode == 'max':
......
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