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
Carlos Ramos Carreño
erp5
Commits
d3f2e431
Commit
d3f2e431
authored
Mar 18, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting py3
parent
37de71c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Alarm_checkPayableAndReceivableAccountGrouped.py
...counting/Alarm_checkPayableAndReceivableAccountGrouped.py
+3
-3
bt5/erp5_accounting/TestTemplateItem/portal_components/test.erp5.testAccounting.py
...emplateItem/portal_components/test.erp5.testAccounting.py
+1
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Alarm_checkPayableAndReceivableAccountGrouped.py
View file @
d3f2e431
...
@@ -35,7 +35,7 @@ search_params = dict(
...
@@ -35,7 +35,7 @@ search_params = dict(
for
brain
in
portal
.
portal_simulation
.
getInventoryList
(
**
search_params
):
for
brain
in
portal
.
portal_simulation
.
getInventoryList
(
**
search_params
):
if
round
(
brain
.
total_price
,
precision
)
==
0
:
if
round
(
brain
.
total_price
,
precision
)
==
0
:
print
'%s has a 0 balance but some not grouped transactions.'
%
brain
.
mirror_section_relative_url
print
(
'%s has a 0 balance but some not grouped transactions.'
%
brain
.
mirror_section_relative_url
)
if
fixit
:
if
fixit
:
tr
=
brain
.
getObject
().
getParentValue
()
tr
=
brain
.
getObject
().
getParentValue
()
grouped_line_list
=
tr
.
AccountingTransaction_guessGroupedLines
()
grouped_line_list
=
tr
.
AccountingTransaction_guessGroupedLines
()
...
@@ -51,9 +51,9 @@ for brain in portal.portal_simulation.getInventoryList(**search_params):
...
@@ -51,9 +51,9 @@ for brain in portal.portal_simulation.getInventoryList(**search_params):
portal_type
=
portal
.
getPortalAccountingMovementTypeList
(),
portal_type
=
portal
.
getPortalAccountingMovementTypeList
(),
grouping_reference
=
None
,)
if
not
line
.
getObject
().
getGroupingReference
()])
grouping_reference
=
None
,)
if
not
line
.
getObject
().
getGroupingReference
()])
if
grouped_line_list
:
if
grouped_line_list
:
print
'FIXED'
,
grouped_line_list
print
(
'FIXED %s'
%
grouped_line_list
)
else
:
else
:
print
'NOT FIXED'
print
(
'NOT FIXED'
)
active_result
=
ActiveResult
(
active_result
=
ActiveResult
(
summary
=
context
.
getTitle
(),
summary
=
context
.
getTitle
(),
...
...
bt5/erp5_accounting/TestTemplateItem/portal_components/test.erp5.testAccounting.py
View file @
d3f2e431
...
@@ -4330,7 +4330,7 @@ class TestTransactions(AccountingTestCase):
...
@@ -4330,7 +4330,7 @@ class TestTransactions(AccountingTestCase):
dict
(
source_value
=
self
.
account_module
.
receivable
,
dict
(
source_value
=
self
.
account_module
.
receivable
,
source_credit
=
100.000001
)))
source_credit
=
100.000001
)))
invoice
.
newContent
(
portal_type
=
'Invoice Line'
,
quantity
=
1
,
price
=
100
)
invoice
.
newContent
(
portal_type
=
'Invoice Line'
,
quantity
=
1
,
price
=
100
)
self
.
assertRaises
(
invoice
.
AccountingTransaction_roundDebitCredit
)
self
.
assertRaises
(
Exception
,
invoice
.
AccountingTransaction_roundDebitCredit
)
def
test_roundDebitCredit_when_payable_is_different_total_price
(
self
):
def
test_roundDebitCredit_when_payable_is_different_total_price
(
self
):
invoice
=
self
.
_makeOne
(
invoice
=
self
.
_makeOne
(
...
...
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