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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Binh
erp5
Commits
5ac66463
Commit
5ac66463
authored
Mar 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Drop periodicity, as it does not support exact month additions."
This reverts commit
1ec72363
.
parent
18a5b6c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ERP5/Document/SubscriptionItem.py
product/ERP5/Document/SubscriptionItem.py
+1
-4
No files found.
product/ERP5/Document/SubscriptionItem.py
View file @
5ac66463
...
@@ -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
Products.ERP5Type.DateUtils
import
getNumberOfDayInMonth
from
zLOG
import
LOG
from
zLOG
import
LOG
...
@@ -303,9 +302,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
...
@@ -303,9 +302,7 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin, Periodici
current_date
=
start_date
current_date
=
start_date
id_index
=
0
id_index
=
0
while
current_date
<
stop_date
:
while
current_date
<
stop_date
:
# XXX-Luke: Periodicty usage was dropped as real month additions shall
next_date
=
self
.
getNextPeriodicalDate
(
current_date
)
# be supported, when periodicity floors result to given period precision
next_date
=
current_date
+
getNumberOfDayInMonth
(
current_date
)
if
next_date
>
stop_date
:
if
next_date
>
stop_date
:
next_date
=
stop_date
next_date
=
stop_date
generated_movement
=
newTempMovement
(
self
,
'subscription_%s'
%
id_index
)
generated_movement
=
newTempMovement
(
self
,
'subscription_%s'
%
id_index
)
...
...
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