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: ...@@ -29,7 +29,7 @@ if ledger is not None:
if isinstance(ledger, (tuple, list)): if isinstance(ledger, (tuple, list)):
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, (tuple, list)): if isinstance(ledger, (tuple, list)):
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, (tuple, list)): if isinstance(ledger, (tuple, list)):
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, (tuple, list)): if isinstance(ledger, (tuple, list)):
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