*** empty log message ***
This commit is contained in:
parent
be52e2a9c8
commit
88042027e7
2 changed files with 8 additions and 3 deletions
2
main.cc
2
main.cc
|
|
@ -388,7 +388,7 @@ def vmax(d, val):\n\
|
||||||
else
|
else
|
||||||
walk_entries(journal->entries, *formatter);
|
walk_entries(journal->entries, *formatter);
|
||||||
|
|
||||||
if (command != "P")
|
if (command != "P" && command != "D")
|
||||||
formatter->flush();
|
formatter->flush();
|
||||||
|
|
||||||
// If we are generating a reconcile report, determine the final set
|
// If we are generating a reconcile report, determine the final set
|
||||||
|
|
|
||||||
7
main.py
7
main.py
|
|
@ -112,6 +112,8 @@ elif command == "equity":
|
||||||
command = "E"
|
command = "E"
|
||||||
elif command == "prices":
|
elif command == "prices":
|
||||||
command = "P"
|
command = "P"
|
||||||
|
elif command == "pricesdb":
|
||||||
|
command = "D";
|
||||||
else:
|
else:
|
||||||
print "Unrecognized command:", command
|
print "Unrecognized command:", command
|
||||||
sys.exit (1)
|
sys.exit (1)
|
||||||
|
|
@ -190,6 +192,8 @@ elif command == "P":
|
||||||
return max_val
|
return max_val
|
||||||
|
|
||||||
format = config.prices_format
|
format = config.prices_format
|
||||||
|
elif command == "D":
|
||||||
|
format = config.pricesdb_format
|
||||||
else:
|
else:
|
||||||
format = config.print_format
|
format = config.print_format
|
||||||
|
|
||||||
|
|
@ -437,7 +441,7 @@ if config.comm_as_payee:
|
||||||
|
|
||||||
if command == "e":
|
if command == "e":
|
||||||
walk_transactions (new_entry, handler)
|
walk_transactions (new_entry, handler)
|
||||||
elif command == "P":
|
elif command == "P" or command == "D":
|
||||||
walk_commodities (handler)
|
walk_commodities (handler)
|
||||||
else:
|
else:
|
||||||
walk_entries (journal, handler)
|
walk_entries (journal, handler)
|
||||||
|
|
@ -445,6 +449,7 @@ else:
|
||||||
# Flush the handlers, causing them to output whatever data is still
|
# Flush the handlers, causing them to output whatever data is still
|
||||||
# pending.
|
# pending.
|
||||||
|
|
||||||
|
if command != "P" and command != "D":
|
||||||
handler.flush ()
|
handler.flush ()
|
||||||
|
|
||||||
# For the balance and equity reports, the account totals now need to
|
# For the balance and equity reports, the account totals now need to
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue