Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
abc4bb3a
Commit
abc4bb3a
authored
Jan 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Stop generation just bit after current moment."
This reverts commit
cb0da24f
.
parent
5348b48f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
product/ERP5/Document/SubscriptionItem.py
product/ERP5/Document/SubscriptionItem.py
+1
-5
No files found.
product/ERP5/Document/SubscriptionItem.py
View file @
abc4bb3a
...
@@ -39,7 +39,6 @@ from Products.ERP5.mixin.rule import MovementGeneratorMixin
...
@@ -39,7 +39,6 @@ from Products.ERP5.mixin.rule import MovementGeneratorMixin
from
Products.ERP5.mixin.periodicity
import
PeriodicityMixin
from
Products.ERP5.mixin.periodicity
import
PeriodicityMixin
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Base
import
Base
from
DateTime
import
DateTime
from
zLOG
import
LOG
from
zLOG
import
LOG
...
@@ -292,7 +291,6 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
...
@@ -292,7 +291,6 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
price_currency
=
movement
.
getPriceCurrency
()
price_currency
=
movement
.
getPriceCurrency
()
specialise
=
movement
.
getSpecialise
()
specialise
=
movement
.
getSpecialise
()
now
=
DateTime
()
current_date
=
start_date
current_date
=
start_date
id_index
=
0
id_index
=
0
while
current_date
<
stop_date
:
while
current_date
<
stop_date
:
...
@@ -315,11 +313,9 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
...
@@ -315,11 +313,9 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
specialise
=
specialise
,
specialise
=
specialise
,
)
)
result
.
append
(
generated_movement
)
result
.
append
(
generated_movement
)
if
current_date
>
now
:
# generate only one movement in advance from today
break
current_date
=
next_date
current_date
=
next_date
id_index
+=
1
id_index
+=
1
break
return
result
return
result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment