Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
iv
erp5
Commits
fcbbd3f8
Commit
fcbbd3f8
authored
9 years ago
by
Jérome Perrin
Browse files
Options
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
Hide 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
section_list.extend(getDependantSectionList(group_value, section))\n
\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
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
destination_section_value=section,\n
resource=section_currency,\n
...
...
This diff is collapsed.
Click to expand it.
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