// balance amount
self.balance_amounts(entry)
hashed_entries[hash_] = entry
entries = {**entries, **hashed_entries}
results.add_pending_entries(
[ImportResult(entry.date, [entry], None)
for entry in entries.values()
After Change
n = len(entries[hash_])
entries[hash_].extend(hashed_entries[hash_][n:])
uncleared_entries = defaultdict(list)
for hash_ in entries:
// number of matching cleared entries in journal
n = len(similar_entries_in_journal(entries[hash_][0],
journal.entries,
self.comparator))
// If journal has n cleared entries for this hash, pick remaining
for entry in entries[hash_][n:]:
// add importer name as sorce description to source postings
self._add_description(entry)
// balance amount
self.balance_amounts(entry)
uncleared_entries[hash_].append(entry)
results.add_pending_entries(
[ImportResult(entry.date, [entry], None)