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
Léo-Paul Géneau
erp5
Commits
7c24c322
Commit
7c24c322
authored
Mar 31, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting_l10n_fr: enable coding style test
parent
a8eb3619
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
29 deletions
+20
-29
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileDialog/your_simulation_state.xml
...AccountingTransactionFileDialog/your_simulation_state.xml
+0
-22
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
...ns/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
+3
-3
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
...ounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
+3
-3
bt5/erp5_accounting_l10n_fr/bt/skip_coding_style_test
bt5/erp5_accounting_l10n_fr/bt/skip_coding_style_test
+0
-1
product/ERP5Type/CodingStyle.py
product/ERP5Type/CodingStyle.py
+14
-0
No files found.
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/AccountingTransactionModule_viewFrenchAccountingTransactionFileDialog/your_simulation_state.xml
View file @
7c24c322
...
...
@@ -58,12 +58,6 @@
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -93,20 +87,4 @@
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<tuple>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:here.Base_getTranslatedWorkflowStateItemList(wf_id = \'accounting_workflow\')
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBalance.py
View file @
7c24c322
...
...
@@ -28,7 +28,7 @@ if ledger is not None:
else
:
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
sum
=
0.0
sum
_
=
0.0
for
accountNumber
in
accounts
:
# we get all acounts strict member of this GAP category
gap
=
context
.
restrictedTraverse
(
"portal_categories/"
+
getURL
(
accountNumber
))
...
...
@@ -36,6 +36,6 @@ for accountNumber in accounts:
result
=
context
.
getPortalObject
().
portal_simulation
.
getInventoryAssetPrice
(
node_uid
=
account
.
getUid
(),
**
kw
)
if
(
result
<
0
and
include_creditor
)
or
\
(
result
>
0
and
include_debtor
):
sum
+=
result
sum
_
+=
result
return
sum
return
sum
_
bt5/erp5_accounting_l10n_fr/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr/FiscalReportCell_getBankAccountBalance.py
View file @
7c24c322
...
...
@@ -27,7 +27,7 @@ if ledger is not None:
else
:
kw
[
'ledger_uid'
]
=
portal_categories
.
ledger
.
restrictedTraverse
(
item
).
getUid
()
sum
=
0.0
sum
_
=
0.0
for
account
in
accounts
:
for
bank
in
context
.
restrictedTraverse
(
request
.
get
(
"organisation"
))
\
.
searchFolder
(
portal_type
=
context
.
getPortalPaymentNodeTypeList
())
:
...
...
@@ -38,5 +38,5 @@ for account in accounts:
**
kw
)
if
(
result
<
0
and
include_creditor
)
or
\
(
result
>
0
and
include_debtor
):
sum
+=
result
return
sum
sum
_
+=
result
return
sum
_
bt5/erp5_accounting_l10n_fr/bt/skip_coding_style_test
deleted
100644 → 0
View file @
a8eb3619
1
\ No newline at end of file
product/ERP5Type/CodingStyle.py
View file @
7c24c322
...
...
@@ -211,6 +211,20 @@ ignored_skin_id_set = {
'OrderMilestone_view'
,
'TradeLine_viewProject'
,
'ProductionDelivery_viewInventory'
,
'FiscalReport_doReport'
,
'FiscalReportCell_creditorAccountsSum'
,
'FiscalReportCell_creditorBankAccountsBalance'
,
'FiscalReportCell_debtorAccountsSum'
,
'FiscalReportCell_debtorBankAccountsBalance'
,
'FiscalReportCell_doGetInventory'
,
'FiscalReportCell_formatCell'
,
'FiscalReportCell_getBalance'
,
'FiscalReportCell_getBankAccountBalance'
,
'FiscalReportCell_getThirdPartyBalance'
,
'FiscalReportCell_getThirdPartyCreditorBalance'
,
'FiscalReportCell_getThirdPartyDebtorBalance'
,
'FiscalReportCell_roundBalance'
,
'GAPCategory_getURLFromId'
,
}
# TODO: ignore officejs skins for now, but these should probably be
...
...
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