Commit 40aad952 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix typo (cbe50b0f): erp5_accounting_l10n_fr: the French Fiscal Report (FEC)...

Fix typo (cbe50b0f): erp5_accounting_l10n_fr: the French Fiscal Report (FEC) can be generated for different ledgers.
parent afb0a546
Pipeline #36106 failed with stage
in 0 seconds
...@@ -29,7 +29,7 @@ if ledger is not None: ...@@ -29,7 +29,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple): if isinstance(ledger, list) or isinstance(ledger, tuple):
ledger_uid = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger] ledger_uid = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else: else:
ledger_uid = portal_categories.ledger.restrictedTraverse(item).getUid() ledger_uid = portal_categories.ledger.restrictedTraverse(ledger).getUid()
else: else:
ledger_uid = None ledger_uid = None
......
...@@ -26,7 +26,7 @@ if ledger is not None: ...@@ -26,7 +26,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple): if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger] kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else: else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid() kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(ledger).getUid()
sum_ = 0.0 sum_ = 0.0
for accountNumber in accounts: for accountNumber in accounts:
......
...@@ -25,7 +25,7 @@ if ledger is not None: ...@@ -25,7 +25,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple): if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger] kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else: else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid() kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(ledger).getUid()
sum_ = 0.0 sum_ = 0.0
for account in accounts: for account in accounts:
......
...@@ -30,7 +30,7 @@ if ledger is not None: ...@@ -30,7 +30,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple): if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger] kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else: else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid() kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(ledger).getUid()
# Find accounts that can be expanded according category membership # Find accounts that can be expanded according category membership
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment