*** empty log message ***

This commit is contained in:
John Wiegley 2005-02-09 10:07:40 +00:00
parent 193a801c03
commit f3c736006c
4 changed files with 9 additions and 2 deletions

View file

@ -44,6 +44,7 @@ config_t::config_t()
prices_format = ("%[%Y/%m/%d %H:%M:%S %Z] %-8A " prices_format = ("%[%Y/%m/%d %H:%M:%S %Z] %-8A "
"%10t %10(@vmin(t)) %10(@vmax(t)) %12T\n"); "%10t %10(@vmin(t)) %10(@vmax(t)) %12T\n");
#endif #endif
pricesdb_format = "P %[%Y/%m/%d %H:%M:%S] %A %t\n";
show_collapsed = false; show_collapsed = false;
show_subtotal = false; show_subtotal = false;
@ -981,6 +982,7 @@ void export_config()
.def_readwrite("write_xact_format", &config_t::write_xact_format) .def_readwrite("write_xact_format", &config_t::write_xact_format)
.def_readwrite("equity_format", &config_t::equity_format) .def_readwrite("equity_format", &config_t::equity_format)
.def_readwrite("prices_format", &config_t::prices_format) .def_readwrite("prices_format", &config_t::prices_format)
.def_readwrite("pricesdb_format", &config_t::pricesdb_format)
.def_readwrite("date_format", &config_t::date_format) .def_readwrite("date_format", &config_t::date_format)
.def_readwrite("sort_string", &config_t::sort_string) .def_readwrite("sort_string", &config_t::sort_string)
.def_readwrite("amount_expr", &config_t::amount_expr) .def_readwrite("amount_expr", &config_t::amount_expr)

View file

@ -40,6 +40,7 @@ struct config_t
std::string write_xact_format; std::string write_xact_format;
std::string equity_format; std::string equity_format;
std::string prices_format; std::string prices_format;
std::string pricesdb_format;
std::string date_format; std::string date_format;
std::string sort_string; std::string sort_string;
std::string amount_expr; std::string amount_expr;

View file

@ -329,7 +329,7 @@ void format_t::format(std::ostream& out_str, const details_t& details) const
break; break;
case element_t::SOURCE: case element_t::SOURCE:
if (details.entry) { if (details.entry && details.entry->journal) {
int idx = details.entry->src_idx; int idx = details.entry->src_idx;
for (strings_list::iterator i = details.entry->journal->sources.begin(); for (strings_list::iterator i = details.entry->journal->sources.begin();
i != details.entry->journal->sources.end(); i != details.entry->journal->sources.end();

View file

@ -248,6 +248,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
command = "E"; command = "E";
else if (command == "prices") else if (command == "prices")
command = "P"; command = "P";
else if (command == "pricesdb")
command = "D";
else if (command == "reconcile") else if (command == "reconcile")
command = "R"; command = "R";
else else
@ -317,6 +319,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
format = &config.equity_format; format = &config.equity_format;
else if (command == "P") else if (command == "P")
format = &config.prices_format; format = &config.prices_format;
else if (command == "D")
format = &config.pricesdb_format;
else if (command == "w") else if (command == "w")
format = &config.write_xact_format; format = &config.write_xact_format;
else else
@ -368,7 +372,7 @@ def vmax(d, val):\n\
if (command == "e") if (command == "e")
walk_transactions(new_entry->transactions, *formatter); walk_transactions(new_entry->transactions, *formatter);
else if (command == "P") else if (command == "P" || command == "D")
walk_commodities(commodity_t::commodities, *formatter); walk_commodities(commodity_t::commodities, *formatter);
else if (command == "R") else if (command == "R")
reconcile_account(*journal, *journal->master, value_t(long(0))); reconcile_account(*journal, *journal->master, value_t(long(0)));