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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
fcbbd3f8
Commit
fcbbd3f8
authored
Sep 14, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: fix a bug when closing accounting period the same day as daylight saving time switch
parent
5fac6732
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml
..._accounting/AccountingPeriod_createBalanceTransaction.xml
+6
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml
View file @
fcbbd3f8
...
@@ -116,9 +116,14 @@ if group_value is not None:\n
...
@@ -116,9 +116,14 @@ if group_value is not None:\n
section_list.extend(getDependantSectionList(group_value, section))\n
section_list.extend(getDependantSectionList(group_value, section))\n
\n
\n
def createBalanceTransaction(section):\n
def createBalanceTransaction(section):\n
balance_date = at_date + 1\n
# We discard hours, minutes and seconds and at the same time, make sure the date\n
# is in its "normal timezone". For example, when at_date is the day of a dailight saving\n
# time switch, we want this date to be in the new timezone.\n
balance_date = DateTime(balance_date.year(), balance_date.month(), balance_date.day())\n
return portal.accounting_module.newContent(\n
return portal.accounting_module.newContent(\n
portal_type=\'Balance Transaction\',\n
portal_type=\'Balance Transaction\',\n
start_date=
(at_date + 1).earliestTime()
,\n
start_date=
balance_date
,\n
title=context.getTitle() or Base_translateString(\'Balance Transaction\'),\n
title=context.getTitle() or Base_translateString(\'Balance Transaction\'),\n
destination_section_value=section,\n
destination_section_value=section,\n
resource=section_currency,\n
resource=section_currency,\n
...
...
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