diff --git a/src/doc/xml/gnucash-v2.rnc b/src/doc/xml/gnucash-v2.rnc index 7a66c92db3..752b03a3c6 100644 --- a/src/doc/xml/gnucash-v2.rnc +++ b/src/doc/xml/gnucash-v2.rnc @@ -199,7 +199,7 @@ Price = element price { # from the doc string of gnc_price_class_init in src/engine/gnc-pricedb.c - element price:type { "bid" | "ask" | "last" | "nav" | "unknown" }?, + element price:type { "bid" | "ask" | "last" | "nav" | "transaction" | "unknown" }?, element price:value { GncNumeric } } diff --git a/src/engine/gnc-pricedb.c b/src/engine/gnc-pricedb.c index f777f5f67f..37aee847d9 100644 --- a/src/engine/gnc-pricedb.c +++ b/src/engine/gnc-pricedb.c @@ -225,7 +225,8 @@ gnc_price_class_init(GNCPriceClass *klass) "Quote type", "The quote type is a string describing the " "type of a price quote. Types possible now " - "are 'bid', 'ask', 'last', 'nav' and 'unknown'.", + "are 'bid', 'ask', 'last', 'nav', 'transaction', " + "and 'unknown'.", NULL, G_PARAM_READWRITE)); diff --git a/src/engine/gnc-pricedb.h b/src/engine/gnc-pricedb.h index 5c3a62533f..304aee5f03 100644 --- a/src/engine/gnc-pricedb.h +++ b/src/engine/gnc-pricedb.h @@ -116,8 +116,10 @@ GType gnc_pricedb_get_type(void); many strings in users' databases, so this string must be translated on output instead of always being used in untranslated form). - - type: the type of quote - types possible right now are bid, ask, - last, nav, and unknown. + - type: the type of quote - types possible right now are bid, ask, last, + nav, transaction, and unknown. 'Transaction' is set when the price is + created from an amount and value in a Split and is not available for users + to set via the GUI. \par Implementation Details: