add debugging/ extra info in overview table
This commit is contained in:
parent
1adcdd2e5d
commit
fb1a16e4d1
1 changed files with 7 additions and 2 deletions
|
@ -138,7 +138,7 @@ class Table:
|
|||
if index is None or value is None:
|
||||
return
|
||||
if a_list[index] != "":
|
||||
# bad coupling: thes function assumes where it is called
|
||||
# bad coupling: thes function assumes where it is called
|
||||
self.logger.warning("Several values in same place: '{}' and '{}'".format(
|
||||
a_list[index], value
|
||||
))
|
||||
|
@ -162,7 +162,12 @@ class Table:
|
|||
for split in transaction.splits:
|
||||
account = split.account
|
||||
# todo: improve to account for different currencies
|
||||
set_cell(self.account_columns[account], "{:.2f}".format(split.quantity))
|
||||
# more for debugging to understand when value and quantity are different:
|
||||
if split.value != split.quantity:
|
||||
set_cell(self.account_columns[account], "{:.2f} ({:.2f})".format(split.quantity,
|
||||
split.value))
|
||||
else:
|
||||
set_cell(self.account_columns[account], "{:.2f}".format(split.quantity))
|
||||
# ignore errors for now:
|
||||
time = timespan.TimeSpan.from_split(split)
|
||||
set_cell(self.timespan_columns[account], time.isoformat().replace("/", "/\n"))
|
||||
|
|
Loading…
Reference in a new issue