Commit 43772e2a authored by Arnaud Fontaine's avatar Arnaud Fontaine

fixup! erp5_accounting_l10n_fr: the French Fiscal Report (FEC) can be...

fixup! erp5_accounting_l10n_fr: the French Fiscal Report (FEC) can be generated for different ledgers
parent 802e6b85
......@@ -29,7 +29,7 @@ if ledger is not None:
if isinstance(ledger, (tuple, list)):
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, (tuple, list)):
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, (tuple, list)):
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, (tuple, list)):
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