Save Changes Bug 780889 - Split-register transactions result in invalid...

price:type "transaction".

Add 'transaction' to the schema and document it in gnc-pricedb.h.
This commit is contained in:
John Ralls 2017-04-03 21:16:43 -07:00
parent 844a6db32b
commit e20009a08d
3 changed files with 7 additions and 4 deletions

View File

@ -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 }
}

View File

@ -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));

View File

@ -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: