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
......@@ -29,7 +29,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple):
ledger_uid = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else:
ledger_uid = portal_categories.ledger.restrictedTraverse(item).getUid()
ledger_uid = portal_categories.ledger.restrictedTraverse(ledger).getUid()
else:
ledger_uid = None
......
......@@ -26,7 +26,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid()
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(ledger).getUid()
sum_ = 0.0
for accountNumber in accounts:
......
......@@ -25,7 +25,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
else:
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(item).getUid()
kw['ledger_uid'] = portal_categories.ledger.restrictedTraverse(ledger).getUid()
sum_ = 0.0
for account in accounts:
......
......@@ -30,7 +30,7 @@ if ledger is not None:
if isinstance(ledger, list) or isinstance(ledger, tuple):
kw['ledger_uid'] = [portal_categories.ledger.restrictedTraverse(item).getUid() for item in ledger]
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
......
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