Commit 7bf163fe authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix bug.

parent 7c7a6aa5
......@@ -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:
......
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